Code Monkey home page Code Monkey logo

Comments (5)

yilun avatar yilun commented on July 24, 2024 1

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

from orb_slam2.

amiltonwong avatar amiltonwong commented on July 24, 2024

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

from orb_slam2.

chaiein avatar chaiein commented on July 24, 2024

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?

from orb_slam2.

gunshi avatar gunshi commented on July 24, 2024

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!

from orb_slam2.

maxb91 avatar maxb91 commented on July 24, 2024

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?

from orb_slam2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.