Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusions about opencv version #47

Open
drinkingcoder opened this issue Mar 25, 2016 · 5 comments
Open

Confusions about opencv version #47

drinkingcoder opened this issue Mar 25, 2016 · 5 comments

Comments

@drinkingcoder
Copy link

"
Could not find a configuration file for package "OpenCV" that is compatible
with requested version "2.4.3".

The following configuration files were considered but not accepted:

/usr/local/share/OpenCV/OpenCVConfig.cmake, version: 3.1.0

"
When I'm running build.sh, it shows me the message above, but I can't find opencv 2.4.3 package

@amiltonwong
Copy link

What's the output when u issue this command?
$ pkg-config --modversion opencv

Mine is opencv 2.4.8, and I have no problem in compiling orb_slam2

@chaiein
Copy link

chaiein commented Apr 29, 2016

Even I have the same error.
$ pkg-config --modversion opencv
3.1.0 is the output
Is it needed to move to lower version of opencv? Is there any recommended way to overcome this problem?

@gunshi
Copy link

gunshi commented May 6, 2016

Hi, I am trying to compile ORB_SLAM2 on OSX 10.11.12 with ROS Indigo. i have opencv 3.1 installed (built form source) under /usr/local/lib and /usr/local/include (directories searched by default), and also opencv 2.4.12 under /usr/local/Cellar(installed through brew package manager), which I can link to, in case opencv 3.1 is not compatible.
How can I provide the path to the usr/local/Cellar opencv(2.4.12) instead of the default /usr/local/lib opencv(3.1), in the sense that what variables/flags do i provide in the cmake file/with the cmake command on the terminal, to make it find opencv 2.4 under Cellar?
I tried some experiments with "CPPFLAGS" but it didn't seem to work.
I still got the error:

CMake Error at CMakeLists.txt:31 (find_package):
Could not find a configuration file for package "OpenCV" that is compatible
with requested version "2.4.3".

The following configuration files were considered but not accepted:

/usr/local/share/OpenCV/OpenCVConfig.cmake, version: 3.1.0

Thanks!

@maxb91
Copy link

maxb91 commented Jun 16, 2016

Hi, I've just installed OpenCV from scratch and I've got the same problem when running build.sh. Have you already found a solution to this issue?

@yilun
Copy link

yilun commented Jun 19, 2016

@maxb91 I passed this issue by uninstall opencv 3 , ROS should have installed opencv 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants