Linking error while building catkin- Kinetic source installation

asked 2017-10-27 07:09:52 -0600

YusraAzhar gravatar image

Can anyone please help me resolve this error, when I build catkin with the following command:

./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release

It gives me this Error:

[ 77%] Linking CXX executable /root/ros_catkin_ws/devel_isolated/rospack/bin/rospack
/root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::program_options::to_internal(std::string const&)'
/root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::program_options::arg'
/root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::program_options::validate(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, std::string*, int)'
/root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to 

`boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)'
/root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::program_options::detail::cmdline::cmdline(std::vector<std::string, std::allocator<std::string> > const&)'
/root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool) const'
/root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const'
collect2: error: ld returned 1 exit status
CMakeFiles/rospackexe.dir/build.make:103: recipe for target '/root/ros_catkin_ws/devel_isolated/rospack/bin/rospack' failed
make[2]: *** [/root/ros_catkin_ws/devel_isolated/rospack/bin/rospack] Error 1


   CMakeFiles/Makefile2:264: recipe for target 'CMakeFiles/rospackexe.dir/all' failed
    make[1]: *** [CMakeFiles/rospackexe.dir/all] Error 2

    make[1]: *** Waiting for unfinished jobs....
    /root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::program_options::to_internal(std::string const&)'
    /root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::program_options::arg'
    /root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so: und

efined reference to `boost::program_options::validate(boost::any&, std::vector<std::string, std::allocator<std::string> > 

const&, std::string*, int)'

/root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)'
/root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::program_options::detail::cmdline::cmdline(std::vector<std::string, std::allocator<std::string> > const&)'
/root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::string, std::allocator<std::string> > const&, bool) const'
/root/ros_catkin_ws/devel_isolated/rospack/lib/librospack.so: undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const'

collect2: error: ld returned 1 exit status
CMakeFiles/rosstackexe.dir/build.make:103: recipe for target '/root/ros_catkin_ws/devel_isolated/rospack/bin/rosstack' failed
make[2]: *** [/root/ros_catkin_ws/devel_isolated/rospack/bin/rosstack] Error 1
CMakeFiles/Makefile2:227: recipe for target 'CMakeFiles/rosstackexe.dir/all' failed
make[1]: *** [CMakeFiles/rosstackexe.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'rospack': 
  Command '['/root/ros_catkin_ws/install_isolated/env.sh', 'make', '-j4', '-l4']' returned non-zero exit status 2
edit retag flag offensive close merge delete