grid_map icon indicating copy to clipboard operation
grid_map copied to clipboard

[grid_map_cv] opencv_photo-NOTFOUND

Open stonier opened this issue 7 years ago • 2 comments

Off on a wild goose chase trying to track down this linking problem for libgridmap_cv.so when it finds OpenCv 3.3.1, so throwing some information here to save the next person some time till the problem is fixed upstream.

i.e. probably nothing needed to fix here, just close when OpenCV 3.3.1 has been upgraded to 3.4 for the ROS ecosystem. Discussion and updates should be found in this thread.

stonier avatar Jan 02 '18 03:01 stonier

Wish I had found this post half an hour ago... Anyway, on my machine (Ubuntu 14.04 + Indigo) both OpenCV2.4 and ros-indigo-opencv3 are installed. It seems that the find_package(cv_bridge) pulls OpenCV2 (make sense) while find_package(OpenCV REQUIRED COMPONENTS opencv_photo) pulls OpenCV3 (make sense ??!).
Leading (much) later on and a couple package on top to a sweet segfault...

I could comment the find_package(OpenCV... as a temporary fix.

artivis avatar Jan 08 '18 12:01 artivis

Hi @stonier. Did you try cleaning your workspace as mentioned in the thread by @Triocrossing? catkin clean solved the issue of No rule to make target '/opt/ros/kinetic/lib/libopencv_photo3.so.3.3.1' for us. Perhaps this also helps in your case?

Hi @artivis. I think your issue has another reason: the parallel usage of OpenCV3 in ROS Indigo. It is possible, but the usage of cv_bridge segfaults. See for example here.

thomasemter avatar Apr 05 '18 21:04 thomasemter