-
Notifications
You must be signed in to change notification settings - Fork 129
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
ros2 colcon build error #38
Comments
I did face a similar issue as well in ROS2 Foxy and Ubuntu 20.04. But the "rosidl_get_typesupport_target" does not exist in Foxy, instead I edited the CMakeLists.txt to have "rosidl_target_interfaces" instead. There was one other change I needed to make in map.cc as std::bind was causing issues with mismatch in types. Hopefully this helps! cmake_minimum_required(VERSION 3.12.4) find_package(PCL REQUIRED) set(CMAKE_BUILD_TYPE "Release") set(CMAKE_THREAD_PREFER_PTHREAD TRUE) Not all machines have <cpuid.h> availableset(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) rosidl_generate_interfaces( include_directories(${PCL_INCLUDE_DIRS}) include_directories(include) NanoFLANNadd_library(nanoflann STATIC NanoGICPadd_library(nano_gicp STATIC Odometry Nodeadd_executable(dlio_odom_node src/dlio/odom_node.cc src/dlio/odom.cc) Mapping Nodeadd_executable (dlio_map_node src/dlio/map_node.cc src/dlio/map.cc) ament_export_include_directories(include) Binariesinstall( TARGETS dlio_odom_node dlio_map_node add_compile_options(-std=c++14)link_directories(${PCL_LIBRARY_DIRS}) include(FindOpenMP) target_compile_options(dlio_odom_node PRIVATE ${OpenMP_FLAGS}) target_compile_options(dlio_map_node PRIVATE ${OpenMP_FLAGS}) |
@SamuelChua What changes did you make in map.cc? I'm facing a similar issue |
i have tried my best to find a solution, but it doesn't work.
It seems that the problem occurs only in foxy, but i need foxy not humble.
Did you meet this problem?
The text was updated successfully, but these errors were encountered: