-
Notifications
You must be signed in to change notification settings - Fork 1
Generate Project Files and Build
Open command line in the directory NaoTHSoccer/Make
and run
- VisualStudio 2010:
premake4 vs2010
- QTCreator:
premake4 qtc
- Make:
premake4 gmake
- Nao:
premake4 --platform=Nao gmake
Note: Alternatively you might use one of the prepared *.sh or *.bat scripts.
After you've generated the project files, a new directory NaoTHSoccer/build
has been created.
This directory contains all the generated project files as well as the intermediate build results.
The final results of a compilation, i.e., executables or libs, will end up in the directory NaoTHSoccer/dist
which will be automatically created.
Depending on the IDE you use, open the directory and load the project files NaoTH.sln
for Visual Studio or all of the *.creator
files for the QTCreator.
In the directory NaoTHSoccer/build
run the command
make -R config=optdebugnao
This will build both binaries which you need to run the code on the Nao: NaoRobot and NaoSMAL. To build only one of them, e.g., NaoRobot, use
make -R config=optdebugnao NaoRobot
The configuration optdebugnao
produces -O2
optimized binaries. In case you want to debug you binary with gdb and need the debug symbols use the option debugnao
.