Build the Boost library
Use the following commands to download the Boost library:
$ cd $BASEDIR $ wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.bz2 $ tar xf boost_1_64_0.tar.bz2
Build the Boost library using the instructions in the Boost getting started guide. Arm has tested version 1.64, but other versions might work.
Include the following flags to build the Boost library:
link=static cxxflags=-fPIC --with-filesystem --with-test --with-log --with-program_options --prefix=path/to/installation/prefix
For example, to build version 1.64 of the Boost library, use the following commands:
$ cd $BASEDIR/boost_1_64_0 $ ./bootstrap.sh $ ./b2 --build-dir=$BASEDIR/boost_1_64_0/build toolset=gcc link=static cxxflags=-fPIC --with-filesystem --with-test --with-log --with-program_options install --prefix=$BASEDIR/boost
Boost provides free, peer-reviewed, and portable C++ source libraries that work well with the C++ Standard Library.
Note: The 20.11 release of Arm NN removes Boost from the runtime. However, you must use Boost to run unit tests. You do not require the Boost library if you do not run unit tests. For more information on running unit tests, see the Test your build section.
If you have already installed
libboost-all-dev package in your environment, you can skip this section and move to the Build the Google Protocol Buffers library section.
To build the Boost library, take the following steps: