Ask Your Question
0

Error building with OpenCV Dependency

asked 2012-04-18 10:58:33 -0500

mouser58907 gravatar image

I'm trying to build a package on Electric that uses OpenCV but I am getting an error saying I don't have OpenCV 2.3.2. I'm fairly new to Ubuntu so I'm not sure what I am doing wrong. Can anyone give me some pointers. Here is the error I recieve when running rosmake on my package.

mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake  ..
[rosbuild] Building package cv_bridge
[rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/rospy/cmake/rospy.cmake
[rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake
[rosbuild] Including /opt/ros/electric/stacks/ros_comm/clients/roslisp/cmake/roslisp.cmake
CMake Error at CMakeLists.txt:14 (find_package):
  Could not find a configuration file for package "OpenCV" that is compatible
  with requested version "2.3.2".

  The following configuration files were considered but not accepted:

    /usr/share/OpenCV-2.3.1/OpenCVConfig.cmake, version: 2.3.1



-- Configuring incomplete, errors occurred!
make: *** [all] Error 1
edit retag flag offensive close merge delete

Comments

Kevin, There is nothing in the CMakeLists.txt file, but the manifest.xml has "<rosdep name="opencv2"/>" I just made a new package with the dependencies I need and tried to make it. I haven't put any real code into it yet.

mouser58907 gravatar image mouser58907  ( 2012-04-19 06:02:25 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-04-18 14:49:37 -0500

Kevin gravatar image

What are you building? :) A quick check of opencv says 2.3.1 is the current version out and 2.4 Beta is out. I haven't heard of 2.3.2 before. What does the CMakeLists.txt file say ... find_package(OpenCV 2.3.1 REQUIRED)? If it says 2.3.2 then try changing that to 2.3.1 and do a "make clean" first.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-04-18 10:58:33 -0500

Seen: 1,815 times

Last updated: Apr 18 '12