Coder Social home page Coder Social logo

Comments (5)

LiChao1998 avatar LiChao1998 commented on June 2, 2024 1

Thank you for your answer, and I will close this issue since I can go to the forum.

from opencv_contrib.

Kumataro avatar Kumataro commented on June 2, 2024

Hello, OpenCV3 has been deprecated already, so please could you update to OpenCV4 ?(And OpenCV 3.4.0 is too old).

OpenCV try to find OGRE package. However between 3.4(including 3.4.0 tag) and 4.x branch, its CMake scripts are slightly changing. And OGRE version is important, however there are no information. Please could you share ?

4.x

set(the_description "OGRE 3D Visualiser.")
find_package(OGRE QUIET CONFIG)

3.4

set(the_description "OGRE 3D Visualiser.")
find_package(OGRE 1.10 QUIET)

3.4.0

set(the_description "OGRE 3D Visualiser.")
find_package(OGRE 1.10 QUIET)


In your environments, OpenCV detected OGRE package (so ovis module is available.)
pkg-config should be suggest OGRE include path and OGRE libraries.
However your compiler log shows include path is missing. I think library may be missing too. It is strange a little.

Could you try to run standalone pkg-config to find OGRE ?

pkg-config OGRE --modversion --cflags --libs

And if possible, please could you try to get log of cmake ... after Found OGRE ?

from opencv_contrib.

LiChao1998 avatar LiChao1998 commented on June 2, 2024

Yes I can find the OGRE, and the version is 1.12.1.
image
This is the CMakeOutput.log when I run cmake .. for my test.cpp above.
CMakeOutput.log
Actually, I am trying to run an old repo, so OpenCV 4.x might be too new. BTW, I found that after I change the version of opencv and opencv_contrib to 3.3.0, the errors were strangely gone.

from opencv_contrib.

LiChao1998 avatar LiChao1998 commented on June 2, 2024

Although OpenCV 3.3 is enough to run the repo, I wonder why the error occurs when using the version 3.4.0.

from opencv_contrib.

Kumataro avatar Kumataro commented on June 2, 2024

Yes I can find the OGRE, and the version is 1.12.1.

Maybe you use not official release from ubuntu distributors.

(For image)

I'm sorry we have to separate --modversion and --cflags --libs options.

kmtr@ubuntu:~$ pkg-config OGRE --modversion
1.9.0
kmtr@ubuntu:~$ pkg-config OGRE --cflags --libs
-pthread -I/usr/include/OGRE -lOgreMain -lpthread

This is the CMakeOutput.log when I run cmake .. for my test.cpp above.

Necessary information is console log of cmake -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules .. .
You should remove your build folder and clear at perfectory before this operation.

Actually, I am trying to run an old repo, so OpenCV 4.x might be too new.

This is OpenCV bug tracking, not Q&A forum. If you want to ask question, please use https://forum.opencv.org/
And if you want to use old OpenCV which is out of supporting,
we cannot help you in here, so it is better to close this "question" issue.

from opencv_contrib.

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.