Closed jackcviers closed 9 years ago
Hello @jackcviers, our setup is:
In indigo opencv is not a module of ros so you can install it by doing:
wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.9/opencv-2.4.9.zip unzip opencv-2.4.9.zip cd opencv-2.4.9 mkdir build cd build cmake-gui .. # setup the flags make sudo make install
Thanks @plnegre I'll give 2.4.9 a shot, then. I assume you installed ros-indigo-vision-opencv to get cv_bridge, right?
Yes! we have ros-indigo-vision-opencv installed.
Ok. 2.4.9 and a fresh install of indigo made this build just fine. Thanks for your help @plnegre!
I tried the suggestion from #11.
I looked in
/usr/include/opencv2/imgproc/imgproc.hpp
and it appears that the constants have changed:imgproc.hpp#L866-874:
I believe that you are trying to use
COLOR_RGB2GRAY
, so I substitutedcv::COLOR_RGB2GRAY
that in place of the error.For the
CV_FONT_HERSHEY_SIMPLEX
error, I see thatopencv/core/core.hpp
hasFONT_HERSHEY_SIMPLEX
, so I added that include and substituteecv::FONT_HERSHEY_SIMPLEX
that in place of that error.That's when things get weird.
That's obviously a bug in pinhole_camera_model.h in the ros indigo
image_geometry
package.This is the third separate visual odometry library that I have attempted to compile on my workstation, and it is beginning to be obvious that whatever version of opencv2 these are compiled against, it is not the version on my machine. According to
core/version.hpp
, I have 2.4.8.0 installed:I've tried upgrading to 2.10.4.1, but I still ended up in the same place, and because of ubuntu libav issues, the ocl and gpu modules don't compile. I uninstalled them and went back to the apt version with
apt-get install --reinstall libopencv-dev
, and tried the same.When I check the
/opt/ros/indigo/include/opencv2/core/version.hpp
, it is using 3.0.0. What version do I need to be able to compile this package?