stack-of-tasks / install-sot

Bash script to install the repositories of Stack Of Tasks
0 stars 7 forks source link

Issue installing sot - BOOST_FILESYSTEM_VERSION #28

Open chcorbato opened 7 years ago

chcorbato commented 7 years ago

Hi,

When installing sot according to the instructions I run into an issue with the BOOST_FILESYSTEM_VERSION:

[ 33%] Building CXX object src/CMakeFiles/jrl-dynamics-urdf.dir/parser.cc.o
cd /home/chcorbato/devel/sot_ws/src/jrl/jrl_dynamics_urdf/_build-RELEASE/src && /usr/bin/c++   -DBOOST_FILESYSTEM_VERSION=2 -Djrl_dynamics_urdf_EXPORTS -O3 -pipe -fomit-frame-pointer -ggdb3 -DNDEBUG  -pedantic -Wno-long-long -Wall -Wextra -Wcast-align -Wcast-qual -Wformat -Wwrite-strings -Wconversion -O3 -DNDEBUG -fPIC -I/home/chcorbato/devel/sot_ws/src/jrl/jrl_dynamics_urdf/_build-RELEASE -I/home/chcorbato/devel/sot_ws/src/jrl/jrl_dynamics_urdf/_build-RELEASE/include -I/home/chcorbato/devel/sot_ws/src/jrl/jrl_dynamics_urdf/include -isystem /home/chcorbato/devel/sot_ws/install/include -isystem /opt/ros/indigo/include     -I/home/chcorbato/devel/sot_ws/install/include -I/home/chcorbato/devel/sot_ws/install/include -I/opt/ros/indigo/include -I/opt/ros/indigo/include -o CMakeFiles/jrl-dynamics-urdf.dir/parser.cc.o -c /home/chcorbato/devel/sot_ws/src/jrl/jrl_dynamics_urdf/src/parser.cc
In file included from /usr/include/boost/filesystem/path.hpp:24:0,
                 from /usr/include/boost/filesystem/fstream.hpp:21,
                 from /home/chcorbato/devel/sot_ws/src/jrl/jrl_dynamics_urdf/src/parser.cc:22:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
 #   error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
     ^
make[2]: *** [src/CMakeFiles/jrl-dynamics-urdf.dir/parser.cc.o] Error 1
make[2]: Target `src/CMakeFiles/jrl-dynamics-urdf.dir/build' not remade because of errors.
make[2]: Leaving directory `/home/chcorbato/devel/sot_ws/src/jrl/jrl_dynamics_urdf/_build-RELEASE'
make[1]: *** [src/CMakeFiles/jrl-dynamics-urdf.dir/all] Error 2
make[1]: Target `all' not remade because of errors.
make[1]: Leaving directory `/home/chcorbato/devel/sot_ws/src/jrl/jrl_dynamics_urdf/_build-RELEASE'
make: *** [all] Error 2
make: Target `default_target' not remade because of errors

I worked it around it by changing the version to BOOST_FILESYSTEM_VERSION=3 in line 51 ${HOME}/devel/INSTALLATION_DIR_NAME/src/jrl/jrl_dynamics_urdf/CMakeLists.txt

Maybe the need for BOOST_FILESYSTEM_VERSION=2 could checked for before in the installation script if actually needed.