compiling stereo_image_proc with local OpenCV
I have read a few places that I should be able to compile stereoimageproc with a locally compiled OpenCV like this:
Clone visionopencv and imagepipeline into my workspace. (visionopencv gets you a local build of cvbridge, which is what stereoimagproc depends on).
catkin config --cmake-args -DOpenCV_DIR=/home/mogumbo/install/share/OpenCV
catkin build
Unfortunately, this only compiles cvbridge against my local OpenCV, while stereoimage_proc is still using the OpenCV I have installed on the system:
$ ldd devel/lib/libcv_bridge.so | grep opencv
libopencv_imgcodecs.so.3.4 => /home/mogumbo/install/lib/libopencv_imgcodecs.so.3.4 (0x00007f1387872000)
libopencv_imgproc.so.3.4 => /home/mogumbo/install/lib/libopencv_imgproc.so.3.4 (0x00007f138456d000)
libopencv_core.so.3.4 => /home/mogumbo/install/lib/libopencv_core.so.3.4 (0x00007f1383212000)
$ ldd devel/lib/stereo_image_proc/stereo_image_proc | grep opencv
libopencv_core.so.3.2 => /usr/lib/x86_64-linux-gnu/libopencv_core.so.3.2 (0x00007f372c061000)
libopencv_imgproc.so.3.2 => /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.3.2 (0x00007f372bb10000)
libopencv_imgcodecs.so.3.2 => /usr/lib/x86_64-linux-gnu/libopencv_imgcodecs.so.3.2 (0x00007f3728caf000)
libopencv_calib3d.so.3.2 => /usr/lib/x86_64-linux-gnu/libopencv_calib3d.so.3.2 (0x00007f372895f000)
libopencv_flann.so.3.2 => /usr/lib/x86_64-linux-gnu/libopencv_flann.so.3.2 (0x00007f3723dd6000)
I have also tried older catkin: catkinmake -DOpenCVDIR=/home/mogumbo/install/share/OpenCV The results are the same.
Does anyone know where I'm going wrong here?
Asked by mogumbo on 2019-07-02 10:38:43 UTC
Comments