ug4
|
The page is an install guide for the usage of Netbeans for ug. Currently tested with Netbeans 7.2 on Mac OS.
{folder} {revision} {status}
. You can either checkout ug4 with NetBeans or do it manually. It is also possible to use the version you checked out previously, e.g., with Eclipse. If you have checked out ug already skip this paragraph and go directly to Create the ug4 project in Netbeans.
To use NetBeans for checkout, choose Team -> Subversion -> Checkout. In the following dialogs you must specify the SVN repository, your username etc. TODO: link me to the corresponding docu... After the checkout NetBeans will ask you whether to create a new project. Just follow Create the ug4 project in Netbeans.
ug4 will be built automatically for the first time. You can select Run -> Build Project to build it manually or use the "hammer" symbol.
If you use build flags, you must tell Netbeans to recognize them. Specially, if you do not use UG_PARALLEL
, all Parallel Code will not be highlighted but regarded as dead code. So, add it to the Environment:
ug4
-> Choose Properties UG_PARALLEL
You might also want to add that for C Code Assistance.
Unfortunately, Netbeans can not create other cmake configurations automatically. So you have to create your folder ug4/release_build yourself and execute cmake there. Then
^(nbproject|externals|unit_tests|build_debug|build_release)$
as ignored folders. If you still have memory problems, consider disabling code assistance by removing "." from Source Folders.For debugging, do the same in Project Properties -> Debug, where Debug command is the same as your run command, and Working Directory is the same as Run Directory.
To run ug4, select Run -> Run Project or the "play" button.
To debug ug4, select Debug -> Debug Project or the "play" button with 1 square 3 symbols. You can set breakpoints in files by clicking on the line numbers.
We created an own plugin which provides code completion for the ug4 registry functions/classes: Go here (ugIDE) for further details.