compiling stereo_image_proc with local OpenCV

asked 2019-07-02 10:38:43 -0600

mogumbo gravatar image

updated 2019-07-02 10:43:28 -0600

I have read a few places that I should be able to compile stereo_image_proc with a locally compiled OpenCV like this:

  1. Clone vision_opencv and image_pipeline into my workspace. (vision_opencv gets you a local build of cv_bridge, which is what stereo_imag_proc depends on).

  2. catkin config --cmake-args -DOpenCV_DIR=/home/mogumbo/install/share/OpenCV

  3. catkin build

Unfortunately, this only compiles cv_bridge against my local OpenCV, while stereo_image_proc is still using the OpenCV I have installed on the system:

$ ldd devel/lib/ | grep opencv => /home/mogumbo/install/lib/ (0x00007f1387872000) => /home/mogumbo/install/lib/ (0x00007f138456d000) => /home/mogumbo/install/lib/ (0x00007f1383212000)
$ ldd devel/lib/stereo_image_proc/stereo_image_proc | grep opencv => /usr/lib/x86_64-linux-gnu/ (0x00007f372c061000) => /usr/lib/x86_64-linux-gnu/ (0x00007f372bb10000) => /usr/lib/x86_64-linux-gnu/ (0x00007f3728caf000) => /usr/lib/x86_64-linux-gnu/ (0x00007f372895f000) => /usr/lib/x86_64-linux-gnu/ (0x00007f3723dd6000)

I have also tried older catkin: catkin_make -DOpenCV_DIR=/home/mogumbo/install/share/OpenCV The results are the same.

Does anyone know where I'm going wrong here?

edit retag flag offensive close merge delete