39
edits
Slawekmikula (talk | contribs) (start changing NetBeans building/editing page) |
Slawekmikula (talk | contribs) (Finishing modification of IDE debug/run example using NetBeans) |
||
| Line 37: | Line 37: | ||
Click Finish. NetBeans will attempt to build the project, which will fail, as no dependencies have been set. Ignore it, the project will still be set-up. Repeat above steps for the simgear code. Finally, you should see all projects neatly structured in NetBeans: | Click Finish. NetBeans will attempt to build the project, which will fail, as no dependencies have been set. Ignore it, the project will still be set-up. Repeat above steps for the simgear code. Finally, you should see all projects neatly structured in NetBeans: | ||
[[File: | [[File:Netbeans-projects.png|NetBeans project listing]] | ||
== Disable code indexing == | == Disable code indexing == | ||
| Line 47: | Line 47: | ||
== Debugging using Gdb/Netbeans as a IDE == | == Debugging using Gdb/Netbeans as a IDE == | ||
Examplary configuration for easy debugging FlightGear source code inside IDE using GDB as a backend can be configured in various ways. This screens shows how to configure two projects 'simgear' and 'flightgear' to compile with the debug flags inside the IDE and be able to execute it or debug directly inside IDE. This is a great way to extend FlightGear and help fixing bugs for people not very experienced with the GDB commandline interface. It has all features of the debug inside IDE as graphical watches, breakpoints etc. | |||
{{Note| Following settings are set according to one user directory structure and his compile/debug options. Please refer to the latest compile/debug options in SimGear/FlightGear in order to set them correctly. }} | |||
In order to configure it, this settings has to be set in one user environment in order to successfully compile it and debug. | |||
* Simgear | |||
SimGear source configuration | |||
[[File:Netbeans-simgear src.png|NetBeans config - simgear source configuration]] | |||
Simgear prebuild (CMAKE) options | |||
[[File:Netbeans-simgear prebuild.png|NetBeans config - simgear prebuild (CMAKE) options]] | |||
Simgear build options | |||
[[File:Netbeans-simgear build.png|NetBeans config - simgear build options]] | |||
Simgear compile options | |||
[[File:Netbeans-simgear compile.png|NetBeans config - simgear compile options]] | |||
Simgear make options | |||
[[File:Netbeans-simgear make.png|NetBeans config - simgear make options]] | |||
* FlightGear | |||
FlightGear source configuration | |||
[[File:Netbeans-fg config src.png|NetBeans config - flightgear source configuration]] | |||
FlightGear prebuild (CMAKE) options | |||
[[File:Netbeans-fg config prebuild.png|NetBeans config - flightgear prebuild (CMAKE) options]] | |||
FlightGear build options | |||
[[File:Netbeans-fg config build.png|NetBeans config - flightgear build options ]] | |||
FlightGear make options | |||
[[File:Netbeans-fg config make.png|NetBeans config - flightgear make options]] | |||
FlightGear compile options | |||
[[File:Netbeans-fg config compile.png|NetBeans config - flightgear compile options ]] | |||
And setting regarding debug and run sessions: | |||
FlightGear debug options | |||
[[File:Netbeans-fg config debug.png|NetBeans config - flightgear debug options]] | |||
FlightGear run options | |||
[[File:Netbeans-fg config run.png|NetBeans config - flightgear run options]] | |||
After this settings one can run/debug FlightGear source code inside the IDE :) | |||
[[Category:Howto|Build FlightGear with NetBeans using CMake]] | [[Category:Howto|Build FlightGear with NetBeans using CMake]] | ||
[[Category:Development|Build FlightGear with NetBeans using CMake]] | [[Category:Development|Build FlightGear with NetBeans using CMake]] | ||
edits