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:
Install Netbeans 12.4 with
sudo apt install netbeans
. This loaded java 11 jdk.Wrote and tested the usual Java Hello World.
Installed build essentials with
sudo apt install build-essential
checked that gcc, make, and gdb are accessible.
tried to start a C/C++ project as follows:
New Project -> C/C++ / Lightweight C/C++ Project
Next-> project path set to /home/david/NetBeansProjects
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.
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:
Launch NetBeans
Go to Tools → Plugins
Open Settings tab and check set NetBeans 8.2 Plugin Portal as Active
Switch to Available plugins tab, click on Check for Newest and select C/C++ for installation by right mouse click on it
Wait for plugins installation and restart NetBeans
Launch NetBeans again, go to File → New project, choose C/C++ and then you will see the following:
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 .