5.3. Compiling boost manually¶
The top-level CMakeLists.txt of Tudat Bundle, downloads, extracts, configures, builds and installs Boost for you. Although this process is completely automated it can happen that it fails somewhere doing the former.
If the automated process fails, it is necessary to take note of where it fails please copy the output of CMake for specifics.
In case it fails perform the following steps:
- Find the Boost version TudatBundle is trying to build.
- Open tudatBundle/CMakeLists.txt
- Look for the uncommented (without a # in front) instance of set(BoostVersion 1.XX.0).
- Pick the version corresponding to your version. Do not select beta.
- It doesn’t matter which archive type you select, generally pick .tar.bz2 for Linux and OS X and .zip for Windows.
- Unpack the folder somewhere, for instance /home/user/boost or c:boost.
- Open terminal emulator and go to the Boost folder.
- Run bootstrap:
- Linux and OS X: ./bootstrap.sh –with-toolset=gcc
- Windows: .bootstrap.bat gcc
- If successful, run bjam2:
- Linux and OS X: ./b2 toolset=gcc link=static threading=multi –build-dir=Build stage variant=release –layout=tagged cxxflags=-std=c++11 –with-filesystem –with-system –with-thread –with-regex –with-date_time –with-test
- Windows: .b2.exe toolset=gcc link=static threading=multi –build-dir=Build stage variant=release –layout=tagged cxxflags=-std=c++11 –with-filesystem –with-system –with-thread –with-regex –with-date_time –with-test
- In case of errors try, to identify if bjam fails for each module or only for select modules.
- Re-run the b2 command several times, each time with only one thread and a different –with-[module] argument.
- If you have made changes to your configuration it is important to clean your cache.
- Navigate to your build folder.