Troubles compiling because of realsense library

asked 2022-11-16 06:43:59 -0500

alexLaborie gravatar image

updated 2022-11-17 04:39:06 -0500

ravijoshi gravatar image

I am using ROS Noetic on Ubuntu 20.04 to control the openManipulator-X with MoveIt 1. We also have attached to it the Intel realsense2 camera. I installed the realsense library thanks to this tutorial. I had some troubles with the fact that the http://realsense-hw-public.s3.amazona... focal InRelease repo is not signed anymore but I managed to control the camera thanks to the python realsense2 module. But now, every time I compile my project with catkin_make, I get the following error on my terminal:

-- +++ processing catkin package: 'realsense_camera'
-- ==> add_subdirectory(realsense/realsense_camera)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Error at /home/alaborie/catkin_ws/devel/share/librealsense/cmake/librealsenseConfig.cmake:173 (message):
  Project 'realsense_camera' tried to find library 'realsense'.  The library
  is neither a target nor built/installed properly.  Did you compile project
  'librealsense'? Did you find_package() it before the subdirectory
  containing its code is included?
Call Stack (most recent call first):
  /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
  realsense/realsense_camera/CMakeLists.txt:39 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/alaborie/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/alaborie/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:1902: cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

Do you think I should modify the set(libraries "realsense") line in librealsenseConfig.cmake replacing realsense with librealsense?
Thanks in advance

edit retag flag offensive close merge delete

Comments

I think you should use the current binary apt repository at https://librealsense.intel.com/Debian.... It works fine in noetic. There are both ros-packages and non-ros packages that you need. See http://wiki.ros.org/librealsense2

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-11-16 20:30:00 -0500 )edit

I reinstalled the realsense library from the source, but unfortunately, it did not changed anything.

alexLaborie gravatar image alexLaborie  ( 2022-11-20 20:04:22 -0500 )edit