Score:1

Netbeans 12.4 C/C++

de flag

I need to build C/C++ projects on Netbeans 12.4 with Ubuntu 18.04. There have been a long list of failures - trying earlier versions of Netbeans and even Eclipse. I can't find a simple tutorial / example for using the Lightweight C/C++.

Here is what I have done so far:

  1. Install Netbeans 12.4 with sudo apt install netbeans. This loaded java 11 jdk.

  2. Wrote and tested the usual Java Hello World.

  3. Installed build essentials with sudo apt install build-essential

  4. checked that gcc, make, and gdb are accessible.

  5. tried to start a C/C++ project as follows:

    1. New Project -> C/C++ / Lightweight C/C++ Project

    2. Next-> project path set to /home/david/NetBeansProjects

    3. Next-> Compile Commands: ... and I'm stuck. It seems to want the tool set to use, but I can't find it.

Any pointers appreciated.

N0rbert avatar
zw flag
How did you get Netbeans 12.4 installed on 18.04 LTS? Its repositories provide only [version 10](https://packages.ubuntu.com/focal/netbeans).
dms489 avatar
de flag
I installed Netbeans 12.4 with one line: sudo apt install netbeans. This was a massive install including java 11 jdk, but resulting in the presence of this apparently unusable Lightweight C/C++.
dms489 avatar
de flag
Today, the same commands are giving me Netbeans 10.0. This thing is out of control (sigh!). If you try to run a Java test program, it has a bunch of untracceable errors.
Score:2
zw flag

To get full C/C++ support in NetBeans you have to enable plugin which was shipped with 8.x NetBeans family by doing the following:

  1. Launch NetBeans

  2. Go to ToolsPlugins

  3. Open Settings tab and check set NetBeans 8.2 Plugin Portal as Active

  4. Switch to Available plugins tab, click on Check for Newest and select C/C++ for installation by right mouse click on it

    C/C++ selected to install using 8.2 plugin portal

  5. Wait for plugins installation and restart NetBeans

  6. Launch NetBeans again, go to FileNew project, choose C/C++ and then you will see the following:

    new C/C++ project

  7. Compile and enjoy.

Note: I have tested above method using NetBeans 12.4 (installed using Ubuntu Make by umake ide netbeans).

Useful tutorial from NetBeans: C/C++ Projects Quick Start Tutorial .

dms489 avatar
de flag
Not sure I'd call it useful, since it omits the tremendously helpful info about installing the plugin.
Nicholas Stommel avatar
sy flag
Thank you so much for your post, I didn't know I needed to enable the Netbeans 8.2 Plugin Portal.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.