Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoking "make -j16 -l16" failed when building the grid map #400

Open
TangYanYee opened this issue Sep 21, 2023 · 1 comment
Open

Invoking "make -j16 -l16" failed when building the grid map #400

TangYanYee opened this issue Sep 21, 2023 · 1 comment
Labels
ros1 Affects ROS 1

Comments

@TangYanYee
Copy link

Currently we are using ros noetic on the ubuntu LTS 20 version. May anyone face the same problem and willing to share how to fix?
Thanks for help!!

The error msg:
[ 98%] Built target octomap_to_gridmap_demo
/usr/bin/ld: CMakeFiles/normal_filter_comparison_demo.dir/src/normal_filter_comparison_node.cpp.o: in function pluginlib::ClassLoader<filters::FilterBase<grid_map::GridMap> >::getCatkinLibraryPaths[abi:cxx11]()': normal_filter_comparison_node.cpp:(.text._ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE21getCatkinLibraryPathsB5cxx11Ev[_ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE21getCatkinLibraryPathsB5cxx11Ev]+0x296): undefined reference to boost::filesystem::detail::path_algorithms::append_v3(boost::filesystem::path&, char const*, char const*)'
/usr/bin/ld: CMakeFiles/normal_filter_comparison_demo.dir/src/normal_filter_comparison_node.cpp.o: in function pluginlib::ClassLoader<filters::FilterBase<grid_map::GridMap> >::getPackageFromPluginXMLFilePath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': normal_filter_comparison_node.cpp:(.text._ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x89): undefined reference to boost::filesystem::detail::path_algorithms::find_parent_path_size(boost::filesystem::path const&)'
/usr/bin/ld: normal_filter_comparison_node.cpp:(.text._ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x10a): undefined reference to boost::filesystem::detail::path_algorithms::append_v3(boost::filesystem::path&, char const*, char const*)' /usr/bin/ld: normal_filter_comparison_node.cpp:(.text._ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1ea): undefined reference to boost::filesystem::detail::path_algorithms::append_v3(boost::filesystem::path&, char const*, char const*)'
/usr/bin/ld: normal_filter_comparison_node.cpp:(.text._ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x294): undefined reference to boost::filesystem::detail::path_algorithms::filename_v3(boost::filesystem::path const&)' /usr/bin/ld: normal_filter_comparison_node.cpp:(.text._ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x32f): undefined reference to boost::filesystem::detail::path_algorithms::find_parent_path_size(boost::filesystem::path const&)'
/usr/bin/ld: normal_filter_comparison_node.cpp:(.text._ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x524): undefined reference to boost::filesystem::detail::path_algorithms::append_v3(boost::filesystem::path&, char const*, char const*)' collect2: error: ld returned 1 exit status make[2]: *** [grid_map/grid_map_demos/CMakeFiles/normal_filter_comparison_demo.dir/build.make:356: /home/linuxlaitang/catkin_ws/devel/lib/grid_map_demos/normal_filter_comparison_demo] Error 1 make[1]: *** [CMakeFiles/Makefile2:5323: grid_map/grid_map_demos/CMakeFiles/normal_filter_comparison_demo.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /usr/bin/ld: CMakeFiles/filters_demo.dir/src/FiltersDemo.cpp.o: in function pluginlib::ClassLoader<filters::FilterBase<grid_map::GridMap> >::getCatkinLibraryPathsabi:cxx11':
FiltersDemo.cpp:(.text._ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE21getCatkinLibraryPathsB5cxx11Ev[_ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE21getCatkinLibraryPathsB5cxx11Ev]+0x296): undefined reference to boost::filesystem::detail::path_algorithms::append_v3(boost::filesystem::path&, char const*, char const*)' /usr/bin/ld: CMakeFiles/filters_demo.dir/src/FiltersDemo.cpp.o: in function pluginlib::ClassLoader<filters::FilterBase<grid_map::GridMap> >::getPackageFromPluginXMLFilePath(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)':
FiltersDemo.cpp:(.text._ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x89): undefined reference to boost::filesystem::detail::path_algorithms::find_parent_path_size(boost::filesystem::path const&)' /usr/bin/ld: FiltersDemo.cpp:(.text._ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x10a): undefined reference to boost::filesystem::detail::path_algorithms::append_v3(boost::filesystem::path&, char const*, char const*)'
/usr/bin/ld: FiltersDemo.cpp:(.text._ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x1ea): undefined reference to boost::filesystem::detail::path_algorithms::append_v3(boost::filesystem::path&, char const*, char const*)' /usr/bin/ld: FiltersDemo.cpp:(.text._ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x294): undefined reference to boost::filesystem::detail::path_algorithms::filename_v3(boost::filesystem::path const&)'
/usr/bin/ld: FiltersDemo.cpp:(.text._ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x32f): undefined reference to boost::filesystem::detail::path_algorithms::find_parent_path_size(boost::filesystem::path const&)' /usr/bin/ld: FiltersDemo.cpp:(.text._ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN9pluginlib11ClassLoaderIN7filters10FilterBaseIN8grid_map7GridMapEEEE31getPackageFromPluginXMLFilePathERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x524): undefined reference to boost::filesystem::detail::path_algorithms::append_v3(boost::filesystem::path&, char const*, char const*)'
collect2: error: ld returned 1 exit status
make[2]: *** [grid_map/grid_map_demos/CMakeFiles/filters_demo.dir/build.make:371: /home/linuxlaitang/catkin_ws/devel/lib/grid_map_demos/filters_demo] Error 1
make[1]: *** [CMakeFiles/Makefile2:5357: grid_map/grid_map_demos/CMakeFiles/filters_demo.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
Invoking "make -j16 -l16" failed

@Welcome666Hzz
Copy link

Welcome666Hzz commented Oct 21, 2023

Hello, I also encountered this problem, I solved it through the following steps:First uninstall the Boost library,(sudo rm -r -f /usr/local/include/boost*
sudo rm -f /usr/local/lib/libboost*) and then compile catkin_make again. Then install the Boost1.70.0 library again and compile without error

@Ryanf55 Ryanf55 added the ros1 Affects ROS 1 label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ros1 Affects ROS 1
Projects
None yet
Development

No branches or pull requests

3 participants