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

boost dependency problem with ROS 2 humble and Ubuntu 22.04 #234

Open
SirTobias opened this issue Aug 10, 2023 · 0 comments
Open

boost dependency problem with ROS 2 humble and Ubuntu 22.04 #234

SirTobias opened this issue Aug 10, 2023 · 0 comments

Comments

@SirTobias
Copy link

SirTobias commented Aug 10, 2023

Hi,

I am using ROS 2 Humble (from source) on Ubuntu 22.04 and try to compile moveit2, which leads me to the following undefined reference considering boost:

cd ros2_moveit source ~/ros2_humble/install/setup.bash

Colcon build:
colcon build --event-handlers desktop_notification- status- --cmake-args -DCMAKE_BUILD_TYPE=Release

Starting >>> ament_cmake_core
Starting >>> rosidl_cli
Starting >>> generate_parameter_library_py
Starting >>> gtest_vendor
Starting >>> launch
Starting >>> domain_coordinator
Starting >>> google_benchmark_vendor
Starting >>> osrf_testing_tools_cpp
Finished <<< gtest_vendor [1.07s]                                                                                                   
Starting >>> gmock_vendor
Finished <<< google_benchmark_vendor [1.12s]
Finished <<< ament_cmake_core [1.20s]                                                                                               
Starting >>> ament_cmake_libraries
Starting >>> ament_cmake_export_libraries
Starting >>> ament_cmake_python
Starting >>> ament_cmake_include_directories
Starting >>> ament_cmake_export_definitions
Starting >>> ament_cmake_export_include_directories
Starting >>> ament_cmake_export_link_flags
Starting >>> ament_cmake_version
Starting >>> test_interface_files
Finished <<< osrf_testing_tools_cpp [1.32s]                                                                                                    
Starting >>> test_osrf_testing_tools_cpp
Finished <<< gmock_vendor [0.40s]                                                                                                              
Finished <<< ament_cmake_include_directories [0.49s]                                                                                           
Finished <<< ament_cmake_libraries [0.54s]
Finished <<< ament_cmake_export_libraries [0.56s]
Finished <<< ament_cmake_export_definitions [0.55s]
Finished <<< ament_cmake_version [0.55s]                                                                                                       
Finished <<< ament_cmake_python [0.61s]
Starting >>> ament_cmake_test
Starting >>> ament_cmake_export_dependencies
Starting >>> ament_cmake_export_targets
Starting >>> ament_cmake_export_interfaces
Starting >>> ament_cmake_target_dependencies
Finished <<< ament_cmake_export_link_flags [0.65s]                                                                                              
Finished <<< test_interface_files [0.65s]
Finished <<< ament_cmake_export_include_directories [0.70s]
Finished <<< test_osrf_testing_tools_cpp [0.66s]                                                                                                
Finished <<< ament_cmake_export_dependencies [0.37s]                                                                                           
Finished <<< ament_cmake_export_targets [0.38s]
Finished <<< ament_cmake_export_interfaces [0.40s]
Finished <<< ament_cmake_target_dependencies [0.41s]
--- stderr: rosidl_cli                                                                                                                         
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< rosidl_cli [2.35s]
--- stderr: domain_coordinator
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< domain_coordinator [2.34s]
--- stderr: generate_parameter_library_py
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< generate_parameter_library_py [2.39s]
--- stderr: launch                                                                  
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< launch [2.40s]
Starting >>> moveit_configs_utils
Starting >>> launch_xml
Starting >>> launch_yaml
Finished <<< ament_cmake_test [1.41s]                                                                                                        
Starting >>> ament_cmake_gtest
Starting >>> ament_cmake_pytest
Starting >>> ament_cmake_google_benchmark
Starting >>> ament_cmake_nose
Starting >>> ament_cmake_vendor_package
Finished <<< ament_cmake_gtest [0.29s]                                                                                                            
Starting >>> ament_cmake_gen_version_h
Starting >>> ament_cmake_gmock
Finished <<< ament_cmake_pytest [0.34s]
Finished <<< ament_cmake_nose [0.34s]
Finished <<< ament_cmake_vendor_package [0.44s]                                                                
Finished <<< ament_cmake_gmock [0.25s]
Finished <<< ament_cmake_gen_version_h [0.36s]                                                                 
Starting >>> ament_cmake
Finished <<< ament_cmake_google_benchmark [0.68s]                                                              
Starting >>> performance_test_fixture
Finished <<< ament_cmake [0.17s]                                                                                                            
Starting >>> rosidl_adapter
Starting >>> rosidl_typesupport_interface
Starting >>> tcb_span
Starting >>> tl_expected
Starting >>> moveit_common
Starting >>> moveit_resources_panda_description                                                                
Starting >>> moveit_resources_fanuc_description
Starting >>> ament_cmake_ros
Starting >>> moveit_resources_pr2_description
Starting >>> moveit_resources_prbt_support
Starting >>> python_cmake_module
Starting >>> mimick_vendor
--- stderr: moveit_configs_utils                                                                                
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< moveit_configs_utils [1.97s]
Starting >>> ament_cmake_auto
Finished <<< performance_test_fixture [0.51s]                                                                               
--- stderr: launch_yaml
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< launch_yaml [2.07s]
--- stderr: launch_xml
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< launch_xml [2.10s]
Starting >>> launch_testing                                                                                                                    
Finished <<< ament_cmake_ros [0.90s]                                                                                                           
Finished <<< moveit_common [0.94s]
Finished <<< tl_expected [0.97s]
Finished <<< moveit_resources_panda_description [0.97s]
Finished <<< moveit_resources_fanuc_description [0.96s]
Finished <<< rosidl_typesupport_interface [1.04s]
Finished <<< tcb_span [1.05s]                                                                                                                     
Finished <<< python_cmake_module [0.98s]
Starting >>> moveit_resources_panda_moveit_config
Starting >>> moveit_resources_fanuc_moveit_config
Finished <<< moveit_resources_prbt_support [1.02s]
Starting >>> rsl
Finished <<< moveit_resources_pr2_description [1.06s]
Finished <<< mimick_vendor [1.04s]                                                                                                   
Finished <<< ament_cmake_auto [0.94s]
Finished <<< rosidl_adapter [1.35s]                                                             
Finished <<< moveit_resources_fanuc_moveit_config [0.29s]                                                             
Starting >>> rosidl_parser
Finished <<< moveit_resources_panda_moveit_config [0.32s]
Starting >>> moveit_resources
Finished <<< rsl [0.44s]                                                                                                                      
Starting >>> parameter_traits                                                                                              
Finished <<< moveit_resources [0.18s]
Finished <<< parameter_traits [0.16s]                                                                                      
Starting >>> generate_parameter_library
Finished <<< generate_parameter_library [0.14s]                                                                                        
Starting >>> generate_parameter_library_example
Starting >>> generate_parameter_module_example
Finished <<< rosidl_parser [1.16s]                                                                                                               
Starting >>> rosidl_cmake
--- stderr: launch_testing                                                                                             
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< launch_testing [2.11s]
Starting >>> launch_testing_ament_cmake
Starting >>> launch_pytest
Starting >>> test_launch_testing
Finished <<< generate_parameter_library_example [1.17s]                                                                                
Finished <<< launch_testing_ament_cmake [0.49s]                                                                  
Starting >>> rcutils
Finished <<< rosidl_cmake [0.64s]                                                                                                       
Finished <<< test_launch_testing [0.63s]
Finished <<< rcutils [0.94s]                                                                                                      
Starting >>> rosidl_runtime_c
Starting >>> rcpputils
--- stderr: launch_pytest                                                                                                                      
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< launch_pytest [1.64s]
Finished <<< rosidl_runtime_c [0.32s]                                                                                                       
Starting >>> rosidl_runtime_cpp
Starting >>> rosidl_typesupport_introspection_c
Starting >>> rosidl_generator_c
Finished <<< rcpputils [0.38s]                                                                                                            
Finished <<< rosidl_runtime_cpp [0.25s]                                                                                  
Finished <<< rosidl_typesupport_introspection_c [0.61s]                                                                                   
Starting >>> rosidl_typesupport_introspection_cpp
Finished <<< rosidl_generator_c [0.63s]                                                                                 
Starting >>> rosidl_generator_cpp
Finished <<< rosidl_typesupport_introspection_cpp [0.59s]                                                                                    
Starting >>> rosidl_default_runtime
Finished <<< rosidl_generator_cpp [0.59s]                                                                                 
Starting >>> rosidl_default_generators
Starting >>> rosidl_typesupport_introspection_tests
Finished <<< rosidl_default_runtime [0.23s]                                                                                 
Finished <<< rosidl_default_generators [0.22s]
Starting >>> builtin_interfaces
Starting >>> unique_identifier_msgs
Starting >>> std_srvs
Starting >>> lifecycle_msgs
Finished <<< rosidl_typesupport_introspection_tests [0.69s]                                                                                    
--- stderr: generate_parameter_module_example                                                                              
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
---
Finished <<< generate_parameter_module_example [4.73s]
Finished <<< unique_identifier_msgs [0.90s]                                                                                                    
Finished <<< std_srvs [0.92s]
Finished <<< builtin_interfaces [0.97s]                                                                  
Starting >>> std_msgs
Starting >>> action_msgs
Starting >>> rcl_interfaces
Starting >>> rosgraph_msgs
Starting >>> statistics_msgs
Finished <<< lifecycle_msgs [1.36s]                                                                                                 
Finished <<< rosgraph_msgs [0.90s]                                                                                                       
Finished <<< action_msgs [1.01s]                                                                                                   
Starting >>> test_msgs
Finished <<< statistics_msgs [1.02s]
Finished <<< rcl_interfaces [1.37s]                                                                                          
Starting >>> composition_interfaces
Finished <<< std_msgs [1.71s]                                                                                                           
Starting >>> geometry_msgs                                                                                    
Starting >>> actionlib_msgs
Finished <<< composition_interfaces [0.80s]                                                                                                     
Finished <<< test_msgs [1.22s]                                                                                                       
Finished <<< actionlib_msgs [0.75s]                                                                    
Finished <<< geometry_msgs [1.26s]                         
Starting >>> sensor_msgs
Starting >>> shape_msgs
Starting >>> trajectory_msgs
Starting >>> diagnostic_msgs
Starting >>> nav_msgs
Starting >>> octomap_msgs                                                                                                                         
Finished <<< diagnostic_msgs [1.14s]                                                                                                        
Finished <<< octomap_msgs [1.17s]
Finished <<< trajectory_msgs [1.25s]                                                                                               
Finished <<< shape_msgs [1.29s]
Finished <<< nav_msgs [1.28s]
Finished <<< sensor_msgs [1.63s]                      
Starting >>> visualization_msgs
Starting >>> object_recognition_msgs
Starting >>> stereo_msgs
Starting >>> sensor_msgs_py                                                                                            
Finished <<< stereo_msgs [0.78s]                                                                                            
Finished <<< object_recognition_msgs [1.00s]                                                                                              
Starting >>> moveit_msgs
Finished <<< visualization_msgs [1.11s]                                                                               
Starting >>> common_interfaces
Starting >>> geometric_shapes
Finished <<< common_interfaces [0.29s]                                                                                                       
--- stderr: geometric_shapes                                                                                                     
/usr/bin/ld: CMakeFiles/test_loaded_meshes.dir/test_loaded_meshes.cpp.o: in function `CompareMeshVsPrimitive::SetUp()':
test_loaded_meshes.cpp:(.text._ZN22CompareMeshVsPrimitive5SetUpEv[_ZN22CompareMeshVsPrimitive5SetUpEv]+0x142): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
/usr/bin/ld: CMakeFiles/test_point_inclusion.dir/test_point_inclusion.cpp.o: in function `MeshPointContainment_Pr2Forearm_Test::TestBody()':
test_point_inclusion.cpp:(.text+0xa1fd): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
/usr/bin/ld: CMakeFiles/test_point_inclusion.dir/test_point_inclusion.cpp.o: in function `MeshPointContainment_Basic_Test::TestBody()':
test_point_inclusion.cpp:(.text+0x10a78): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
/usr/bin/ld: CMakeFiles/test_body_operations.dir/test_body_operations.cpp.o: in function `Bodies_ConstructShapeFromBodyMesh_Test::TestBody()':
test_body_operations.cpp:(.text+0x31aa): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
/usr/bin/ld: CMakeFiles/test_body_operations.dir/test_body_operations.cpp.o: in function `Bodies_ConstructMarkerFromBodyMesh_Test::TestBody()':
test_body_operations.cpp:(.text+0x44d6): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
gmake[2]: *** [test/CMakeFiles/test_loaded_meshes.dir/build.make:202: test/test_loaded_meshes] Fehler 1
gmake[1]: *** [CMakeFiles/Makefile2:385: test/CMakeFiles/test_loaded_meshes.dir/all] Fehler 2
gmake[1]: *** Auf noch nicht beendete Prozesse wird gewartet …
gmake[2]: *** [test/CMakeFiles/test_point_inclusion.dir/build.make:202: test/test_point_inclusion] Fehler 1
gmake[1]: *** [CMakeFiles/Makefile2:245: test/CMakeFiles/test_point_inclusion.dir/all] Fehler 2
collect2: error: ld returned 1 exit status
gmake[2]: *** [test/CMakeFiles/test_body_operations.dir/build.make:202: test/test_body_operations] Fehler 1
gmake[1]: *** [CMakeFiles/Makefile2:469: test/CMakeFiles/test_body_operations.dir/all] Fehler 2
gmake: *** [Makefile:146: all] Fehler 2
---
Failed   <<< geometric_shapes [0.59s, exited with code 2]
Aborted  <<< sensor_msgs_py [1.70s]
Aborted  <<< moveit_msgs [1.37s]                                    

Summary: 97 packages finished [18.9s]
  1 package failed: geometric_shapes
  2 packages aborted: moveit_msgs sensor_msgs_py
  12 packages had stderr output: domain_coordinator generate_parameter_library_py generate_parameter_module_example geometric_shapes launch launch_pytest launch_testing launch_xml launch_yaml moveit_configs_utils rosidl_cli sensor_msgs_py
  35 packages not processed

apt search libboost filesystem yields

Sorting... Done
Full Text Search... Done
libboost-filesystem-dev/jammy,now 1.74.0.3ubuntu7 amd64 [installed,automatic]
  filesystem operations (portable paths, iteration over directories, etc) in C++ (default version)

libboost-filesystem1.74-dev/jammy,now 1.74.0-14ubuntu3 amd64 [installed,automatic]
  filesystem operations (portable paths, iteration over directories, etc) in C++

libboost-filesystem1.74.0/jammy,now 1.74.0-14ubuntu3 amd64 [installed,automatic]
  filesystem operations (portable paths, iteration over directories, etc) in C++

I would be pleased if anybody have an idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant