ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I had plenty of trouble using find_package to locate the good opencv version ( even with the no default path option and the PATH option correctly set up, it did not work ) and I was doing some awfull stuf inside my cmakelist in order to correct it.

So if you also have troubles with it, somebody gave me an easy way to deal with it:

Delete all your workspace builded files (in your workspace you have 3 folders : src/build/devel, delete build and devel) and then you catkin make call should be :

catkin_make -DOpenCV_DIR=<your OpenCV path>

it should compile with your desired version ;)

I had plenty of trouble using find_package to locate the good opencv version ( even with the no default path option and the PATH option correctly set up, it did not work ) and I was doing some awfull stuf inside my cmakelist in order to correct it.

So if you also have troubles with it, somebody gave me an easy way to deal with it:

Delete all your workspace builded files (in your workspace you have 3 folders : src/build/devel, delete build and devel) and devel), simply call find_package(OpenCV) in CMakeLists files ( without any location ) then you your catkin make call should be :

catkin_make -DOpenCV_DIR=<your OpenCV path>

it should compile with your desired version ;)

I had plenty of trouble using find_package to locate the good opencv version ( even with the no default path option and the PATH option correctly set up, it did not work ) and I was doing some awfull stuf inside my cmakelist in order to correct it.

So if you also have troubles with it, somebody gave me an easy way to deal with it:

Delete all your workspace builded files (in your workspace you have 3 folders : src/build/devel, delete build and devel), simply call find_package(OpenCV) in the CMakeLists files ( without any location ) then your catkin make call should be :

catkin_make -DOpenCV_DIR=<your OpenCV path>

it should compile with your desired version ;)

I had plenty of trouble using find_package to locate the good opencv version ( even with the no default path option and the PATH option correctly set up, it did not work ) and I was doing some awfull stuf inside my cmakelist in order to correct it.

So if you also have troubles with it, somebody gave me an easy way to deal with it:

Delete all your workspace builded files (in your workspace you have 3 folders : src/build/devel, delete build and devel), simply call find_package(OpenCV) in the CMakeLists files ( without any location ) then your catkin make call should be :

catkin_make -DOpenCV_DIR=<your OpenCV path>

it should compile with your desired version ;)

Edit : only your first catkin_make call needs the OpenCV_DIR option, once the workspace is builded, the location is kept in memory. But each time you purge your package, you will need to think about adding the OpenCV_DIR option.