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

Thank for sharing! #1

Closed
idkjs opened this issue Feb 21, 2022 · 1 comment
Closed

Thank for sharing! #1

idkjs opened this issue Feb 21, 2022 · 1 comment

Comments

@idkjs
Copy link

idkjs commented Feb 21, 2022

Studying your code here. When I try to build I am getting this error

-c module_faces_stubs.cpp)
module_faces_stubs.cpp:10:10: fatal error: 'opencv2/opencv.hpp' file not found
#include <opencv2/opencv.hpp>
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.

and 

In file included from KeyPointDetector.cpp:1:
./KeyPointDetector.h:4:10: fatal error: 'opencv2/face.hpp' file not found
#include <opencv2/face.hpp>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
          cc hera/module_faces/module_faces_stubs.o (exit 1)

and a bunch of others

Where is the project expecting to find opencv2/? how can i tell it where to look?

I cloned opencv in to the project root and built it.

mando@mando  ~/git/Hera   master ? ↑1  tree -d -L 2   ✔  715  20:46:04
.
├── _build
│   ├── default
│   └── install
├── build_opencv
│   ├── 3rdparty
│   ├── CMakeFiles
│   ├── apps
│   ├── bin
│   ├── carotene
│   ├── configured
│   ├── data
│   ├── doc
│   ├── include
│   ├── lib
│   ├── modules
│   ├── opencv2
│   ├── python_loader
│   ├── samples
│   ├── test-reports
│   ├── tmp
│   └── unix-install
├── hera
│   ├── bot
│   ├── db
│   ├── http
│   ├── logging
│   ├── module_air_quality
│   ├── module_dictionary
│   ├── module_faces
│   ├── module_feeds
│   ├── module_markets
│   ├── module_morejpeg
│   ├── module_preferences
│   ├── telegram
│   └── user_preference
└── opencv
    ├── 3rdparty
    ├── apps
    ├── cmake
    ├── data
    ├── doc
    ├── include
    ├── modules
    ├── platforms
    └── samples

45 directories

Thank for sharing!

@pNre
Copy link
Owner

pNre commented Feb 22, 2022

Hey, in theory a system wide installation of opencv should be enough, for example on ubuntu: sudo apt-get install -y libopencv-dev

dune should then be able to find and link the library

@pNre pNre closed this as completed Aug 9, 2022
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

2 participants