realsense-ros: undefined symbol: _ZN2cv3MatC1Ev
I have done a source build of realsense-ros
and librealsense
(native backend + CUDA, but SKIPPING the kernel patches) on a nvidia AGX Orin.
It was suggested here that this might work.
I am getting undefined symbol: _ZN2cv3MatC1Ev
when trying to launch.
Output of uname -a
Linux orin-devkit 5.10.65-tegra #1 SMP PREEMPT Mon May 16 20:58:07 PDT 2022 aarch64 aarch64 aarch64 GNU/Linux
Output with launching rs_rgbd.launch
or rs_camera.launch
[ INFO] [1662238035.921341031]: Done Setting Dynamic reconfig parameters.
/opt/ros/noetic/lib/nodelet/nodelet: symbol lookup error: /home/sacvp-user/git/scaled-acv/sacvp/on-the-device/ros/devel/lib//librealsense2_camera.so: undefined symbol: _ZN2cv3MatC1Ev
[camera/realsense2_camera_manager-4] process has died [pid 2467862, exit code 127, cmd /opt/ros/noetic/lib/nodelet/nodelet manager __name:=realsense2_camera_manager __log:=/home/sacvp-user/.ros/log/93f38000-2bc9-11ed-a8a8-ec63d76dedb8/camera-realsense2_camera_manager-4.log].
log file: /home/sacvp-user/.ros/log/93f38000-2bc9-11ed-a8a8-ec63d76dedb8/camera-realsense2_camera_manager-4*.log
[camera/points_xyzrgb_hw_registered-7] process has finished cleanly
I think this might be related.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 29
I think I’ve solved this through a combination of
I don’t have any clear learnings to share, but the problem is solved.
For the record heres what I did
undefined reference to glXGetProcAddressARB()
)Additionally, I
It is possible that between having apt installed versions, workspace sourcing, etc that I was not running the compiled version of librealsense.
Anyay, the changes to realsense-ros CMakeLists.txt works.
OK, yes I picked that up after re-reading the instructions. I proceed with the packages installed for graphical examples.
I added:
find_package( OpenCV REQUIRED)
and modified:
But I still have this error when launching rs_rgbd.
In the realsense2_camera build output everything looks normal except for:
It is the right track though, OpenCV is not being linked.
My full realsense2_camera CMakeLists: