FS+ Planner packaged for deployment into simulators
- Boost >= 1.68, with suppot for Python3, C++14 and unicode
Download latest version of Boost from here
Boost needs to be especifically configured to target the desired version of Python and make sure that we're not using Python 2.x
./bootstrap.sh --with-python=/usr/bin/python3 --with-python-root=/usr
the above configured correctly Boost.build
tool b2
in my 16.04
system. Specifying --with-python-version=3.5
resulted in an invalid
configuration, as Python interaces were compiling against libpython2
.
The build command used was
./b2 --build-dir=/tmp/build-boost --enable-unicode=ucs4 stage
Note that the UCS4 implementation of unicode used by Python 3.x. This I spotted on Stackoverflow
Also, be aware that Boost.Python and user code may need recompiled to match the Python's CPU architecture and UCS-2 or UCS-4 unicode configurations.
and this gist.
NOTE: I had to let know b2
that I wanted a build with C++11
features
enabled. I used this command
echo "using gcc : 5.4 : /the/path/to/g++-5.4 : <cxxflags>-std=c++11 ;" > ./tools/build/src/user-config.jam
as per this advice on Stackoverflow.
NOTE #2: if the client code is being compiled with c++-14 support (as is the case) for
FS
then it is safest to compiled the boost libraries also with c++-14 enabled. For that, instead
of the command above use instead
echo "using gcc : 5.4 : /the/path/to/g++-5.4 : <cxxflags>-std=c++14 ;" > ./tools/build/src/user-config.jam
See here for more details on the issue (which is acknowledged by boost as bug).