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

Linker errors while compiling with Open3D #24

Open
rawnam opened this issue Nov 12, 2022 · 4 comments
Open

Linker errors while compiling with Open3D #24

rawnam opened this issue Nov 12, 2022 · 4 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rawnam
Copy link

rawnam commented Nov 12, 2022

Hi
I am getting linker errors with Open3D. I tried adding rclcpp in cmakelists but it doesn't help
Following is my build environment:

  • Ubuntu 22.04
  • Ros Humble
  • Opencv 4.6.0
    err.txt

Please help

@ZhenshengLee ZhenshengLee self-assigned this Nov 12, 2022
@ZhenshengLee ZhenshengLee added the bug Something isn't working label Nov 12, 2022
@ZhenshengLee ZhenshengLee added this to the doing milestone Nov 12, 2022
@ZhenshengLee
Copy link
Owner

simply comment the Open3D compile description and have a try, thanks

if(Open3D_FOUND)
add_executable(open3d2m_talker open3d2m_talker.cpp)
ament_target_dependencies(open3d2m_talker "rclcpp")
target_link_libraries(open3d2m_talker ${PROJECT_NAME}_open3d ${Open3D_LIBRARIES})
rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")
target_link_libraries(open3d2m_talker
${cpp_typesupport_target}
)
ament_target_dependencies(open3d2m_talker
"rclcpp"
"std_msgs"
)
install(TARGETS open3d2m_talker DESTINATION lib/${PROJECT_NAME})
add_executable(open3d2m_listener open3d2m_listener.cpp)
ament_target_dependencies(open3d2m_listener "rclcpp")
target_link_libraries(open3d2m_listener ${PROJECT_NAME}_open3d ${Open3D_LIBRARIES})
rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")
target_link_libraries(open3d2m_listener
${cpp_typesupport_target}
)
ament_target_dependencies(open3d2m_listener
"rclcpp"
"std_msgs"
)
install(TARGETS open3d2m_listener DESTINATION lib/${PROJECT_NAME})
endif()

@rawnam
Copy link
Author

rawnam commented Nov 12, 2022

Thanks that works. Would the open3d functionality be available later?

@ZhenshengLee
Copy link
Owner

Thanks that works. Would the open3d functionality be available later?

You need to compile Open3D from src rather than install it from pip3. I didn't install Open3D in the latest test so the function is not available now.

I will find some time to resolve the open3d compiling issue.

@ZhenshengLee
Copy link
Owner

Feel free to give me a star if you like, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants