ROS compiling problem using boost_1_44

asked 2014-12-17 13:20:54 -0500

lnnx2006 gravatar image

Hello everyone,

I uncounted a problem when I was installing ROS from source. I got the following error when I executed command:

sudo ./src/catkin/bin/catkin_make_isolated --cmake-args -DBOOST_ROOT=/home/exbot/boost_1_44_0_gcc_4_4 -DBoost_NO_SYSTEM_PATHS=ON -DCMAKE_C_COMPILER=/usr/bin/gcc-4.4 -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.4

I used my pre-built include/lib files of boost 1.44. I have to use boost 1.44 in order to link against the same version of boost that is used in MATLAB R2012a.

Here is the error:

==> Processing catkin package: 'qt_gui_cpp'
==> Building with env: '/home/exbot/roscatkin_ws/devel_isolated/pluginlib/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/exbot/roscatkin_ws/build_isolated/qt_gui_cpp'
==> make -j4 -l4 in '/home/exbot/roscatkin_ws/build_isolated/qt_gui_cpp'
[  3%] Building CXX object src/qt_gui_cpp/CMakeFiles/qt_gui_cpp.dir/recursive_plugin_provider.cpp.o
In file included from /home/exbot/roscatkin_ws/src/qt_gui_core/qt_gui_cpp/include/qt_gui_cpp/ros_pluginlib_plugin_provider_for_plugin_providers.h:37,
                 from /home/exbot/roscatkin_ws/src/qt_gui_core/qt_gui_cpp/include/qt_gui_cpp/recursive_plugin_provider.h:37,
                 from /home/exbot/roscatkin_ws/src/qt_gui_core/qt_gui_cpp/src/qt_gui_cpp/recursive_plugin_provider.cpp:33:
/home/exbot/roscatkin_ws/src/qt_gui_core/qt_gui_cpp/include/qt_gui_cpp/ros_pluginlib_plugin_provider.h: In member function ‘QList<qt_gui_cpp::PluginDescriptor*> qt_gui_cpp::RosPluginlibPluginProvider<T>::discover_descriptors(QObject*) [with T = qt_gui_cpp::PluginProvider]’:
/home/exbot/roscatkin_ws/src/qt_gui_core/qt_gui_cpp/src/qt_gui_cpp/recursive_plugin_provider.cpp:52:   instantiated from here
/home/exbot/roscatkin_ws/src/qt_gui_core/qt_gui_cpp/include/qt_gui_cpp/ros_pluginlib_plugin_provider.h:147: error: conversion from ‘boost::filesystem2::basic_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::filesystem2::path_traits>’ to non-scalar type ‘std::string’ requested
make[2]: *** [src/qt_gui_cpp/CMakeFiles/qt_gui_cpp.dir/recursive_plugin_provider.cpp.o] Error 1
make[1]: *** [src/qt_gui_cpp/CMakeFiles/qt_gui_cpp.dir/all] Error 2
make: *** [all] Error 2
<== Failed to process package 'qt_gui_cpp': 
  Command '/home/exbot/roscatkin_ws/devel_isolated/pluginlib/env.sh make -j4 -l4' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/exbot/roscatkin_ws/build_isolated/qt_gui_cpp && /home/exbot/roscatkin_ws/devel_isolated/pluginlib/env.sh make -j4 -l4

Command failed, exiting.

My system: Ubuntu 12.04 64 ROS: Hydro

Is there anyone who can help me fix this? Thanks in advance!

edit retag flag offensive close merge delete