Update your SDK - northern-bites/nbites GitHub Wiki

To compile our code for the robots you need to have the most recent version of NaoQi supported by our team. You can update your NaoQi by navigating to the scripts directory in util/

cd $NBITES_DIR/util/scripts

then executing update_naoqi.sh with the most recent version of NaoQi as a parameter. The current version of NaoQi used can be found here. To execute the script enter this in the terminal:

./update_naoqi.sh [NAOQI VERSION]

You will be prompted to enter your password for sudo permissions. After the script has exited follow its instructions and RESTART YOUR TERMINAL. This is because the script edits your bash configuration file and the changes will not take effect until the next the terminal is started.

Understanding update_naoqi.sh

To understand what the update script does you can either look at the script directly or read the old instructions here:

Download the latest SDK and toolchain from the server, link here. You will want both naoqi-sdk-...-.tar.gz and nbites-atom-toolchain-...-tar.gz.

Extract the SDK file and move it to nbites/lib. In other words, run, in the directory where you downloaded the file

$> tar -xvzf [filename].tar.gz

Then move the file using

$> mv [extracted file] [path-to-nbites]/nbites/lib/

Then edit your nbites.bash (in /util/scripts) so that the line

export AL_DIR=[some_path]/nbites/lib/naoqi-sdk-X.XX.XX-linux

contains the right version number (X.XX.XX is the version number).

Extract the toolchain file and move it to nbites/lib/atomtoolchain. It must be named nbites/lib/atomtoolchain for the build system to find it.