E.g. you’re taking over an existing project and want to use NetBeans for it going forwards Follow the instructions on this page, but jumping here once you get to the New NetBeans Project steps. Creating A New NetBeans Project Menu > File > New Project > Select ‘C/C++ Project with Existing Sources’ Selet the folder that […]
Category: NetBeans Windows
Breakpoints
Delete all breakpoints Menu > Window > Debugging > Breakpoints Then right-click in the Breakpoints window and select Disable All or "Delete All".
Troubleshooting
Can't connect via Netbeans See the Troubleshooting Remote Host Connections tips here. Debugging execution allways stops but there's no breakpoint there? Try clearing all breakpoints (there may be old ones pointing to dead code) Menu > Window > Debugging > Breakpoints. Right-click in the Breakpoints window and select Disable All. "GDB has unexpectedly stopped with return 1" […]
Getting the project files
Get the project files from the RPi? To find out where NetBeans copies the files to on the RPi look in the 'Output' window for "Entering directory", e.g.: make[1]: Entering directory '/root/.netbeans/remote/192.168.1.183/dell-m4600-win7-Windows-x86_64/C/_PROJECTS/SomeFolderName/Apps/MyApp/MyAppName' Note that if you look for this location using the GUI file manager you will need to select the menu option View > Show hidden […]
Adding Libraries
Adding A Library To A NetBeans Project For example the bcm2835 library for the IO pins. Include the library header file #include <bcm2835.h> When you compile you the compiler also needs to include the library so the libraries object file is added to the final compilation. Right click the project > Properties > Build > Linker > In […]
.Creating A New Project
Compatability We’re still using this in 2023 with NetBeans IDE 11.0 with no problems. See here for the netbeans 11 setup. Enabling Running Remote Projects in NetBeans As Root User By default the root account is disabled in Raspbian, but for an application to access the IO pins it needs root user privileges. There are ways to […]
.Installing NetBeans For C++ Remote Development on A Raspberry Pi
THIS IS OUR PREFERRED WINDOWS DEVELOPMENT IDE FOR THE RASPBERRY PI The reason – you program on your nice fast Windows PC but under the bonnet it copies the files and uses the RPi to actually compile the project which, whilst a bit slower than using a high spec PC, solves all the issues of platform […]