Building nbcross - northern-bites/nbites GitHub Wiki

nbcross is the tool we use to run vision code on the computer so we can run vision algorithms on our computer instead of solely on the robot.

This page assumes you've built man and you have the tool open.

cd to ~/nbites/src/nbcross

Run make config

In the same way you set CMake options before, set the BUILD_PROTOBUFS option to ON and CMAKE_BUILD_TYPE to release

Press c to configure and g to generate. If you're doing this for the first time, generation will fail. Run the last two steps again.

Once you've successfully generated the CMake options, run make build_nbcross

This will compile everything locally. It will take a while.

Once it has finished compiling, run make config again. Turn BUILD_PROTOBUFS to OFF. Press c and g to configure and generate.

Run make nbcross to start nbcross. From now on, you will only have to cd to src/nbcross and run make nbcross to start nbcross from now on.

Optional but recommended

In order for you to run nbcross or nbtool from anywhere cd nbites/src/nbtool/scripts then run ./install_nbtool_scripts.sh now you can type nbtool or nbcross from anywhere and launch those programs!