Skip to content

Generate Project Files and Build

GiorgosMethe edited this page Apr 20, 2013 · 1 revision

Generate Project Files

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.

Build##

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.

Build for your local machine

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.

Build for Nao

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.