-
Notifications
You must be signed in to change notification settings - Fork 1
NaoTH Setup
nik edited this page Jan 7, 2014
·
12 revisions
Build Tools
External Dependencies
Simulators
Known Issues
- Installing Microsoft Visual Studio 2010 and Microsoft Visual Studio 2010 Service Pack 1
- Note: The project is optimized for VS2010, it is therefore recommended to use it.
- Cygwin (needed to cross compile for the real robot):
- If you like to use linux like ssh+sftp connection, you can install Cygwin too, but its not needed to cross compile for the Nao anymore
- Get cygwin
- Install cygwin, for example to
C:\cygwin
- Also install the package openssh: The Open SSH server and client programs
- For convinience: Install the mintty: Terminal emulator with native Windows look and feel shell package, too.
- Install the following software with your package manager of your distribution
- Java (JDK) 6 or 7
- gcc and g++
- make
- zlib:
sudo apt-get install zlib1g-dev
- download QtCreator IDE from
- Download and install NetBeans
- http://www.netbeans.org
- Note: NetBeans is used for our Java-based projects, such as RobotControl, Motion Editor, XabslEditor.
- Download the XabslEditor (Behavior Editor) from
- https://launchpad.net/xabsleditor
- Note: this is needed to modify and compile behavior for Nao.
- Download premake4 version 4.4 beta 4 from
http://industriousone.com/premake/download
and put it somewhere, where it could be found by the command line, e.g., in windows you could copy it inc:\cygwin\bin
or in/usr/bin/
on linux.
- (Linux - Ubuntu 12.10 64 Bit)
-
For Upgrade: In repository execute
bzr clean-tree --ignored
- download the full naoth tool chain and extract it to your project directory
NaoTHToolChain_Ubuntu64.tar.xz - (unpack with:tar -xkJf <Archiv>
) - set up the pathes and compile libs
-
easy: run the
setup.sh
, say yes to everything. - custom: see point 3.
-
easy: run the
- switch to
<repository>/NaoTHSoccer/Make
- run
premake4 qtc
to generate your Qt Creator project files
Note: the generated project files are in<repository>/NaoTHSoccer/build
- Chmod 755 the generate.qtc.sh file and run it.
- run generateMakefile.sh to generate the project's makefiles
- In the makefile created in the build/ folder, look for the PROJECTS line (near the top). Comment out all projects but NaoTHSoccer, NaoTHCommons and LogSimulator.
- open the file and
NaoTHSoccer.creator
andLogSimulator.creator
- run
- now you are ready to compile and run the project
- newer glib versions may cause deprecated-declaration warnings. Add -Wno-deprecated-declarations to buildoptions in
<repository>/NaoTHSoccer/Make/premake4.lua
(line 109)
- newer glib versions may cause deprecated-declaration warnings. Add -Wno-deprecated-declarations to buildoptions in
- (optinal) Manual Path configuration
There are two possibilities to configure the needed paths: environment variables or config file. To set up the manual math configuration with a config file follow these steps:
- download the template file projectconfig.user.lua
- copy it to the
<repository>/NaoTHSoccer/Make
- if a path is set to
nil
inprojectconfig.user.lua
it will be ignored, so, you have to set only those which you really need - Note: you have to copy this file to every repository
The real compiling for the project, hopefully, is actually done with:
- Go to dnt/
- Run naoqisdk.sh to get the Nao libraries.
- Go into NaoTHSoccer/Make
- Run premake4 --platform=Nao gmake
- Go in NaoTHSoccer/build
- Run make -R config=optdebugnao
Now in NaoTHSoccer/dist you should have the stuff you need. Now with NetBeans you can compile NaoSCP, which you can then use to transfer executables and all into the NAO.