Ask Your Question
0

The docs it says I should include opencv2/core.hpp but it is not there

asked 2019-01-21 01:00:29 -0600

patrikx3 gravatar image

Hello!

How are you? I am able to build the samples, but I am reading the docs how to start to use the library, but it says I shold include opencv2/core.hpp, but when I look into the opencv-4.0.1/include there is only 1 file, which is opencv-4.0.1/include/opencv2/opencv.hpp, so how can I access the rest includes?

Thank you very much, Patrik

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2019-02-01 05:26:15 -0600

patrikx3 gravatar image

thank you so much!

edit flag offensive delete link more
0

answered 2019-01-21 01:13:00 -0600

berak gravatar image

updated 2019-01-21 01:26:25 -0600

after you run make install to build the opencv libs , the opencv headers will be in /usr/local/include/opencv4 and the libs will be in /usr/local/lib , so, a cmdline like :

g++ my.cpp -std=c++11 -I/usr/local/include/opencv4 -lopencv_core -lopencv_imgcodecs -lopencv_highgui -lopencv_videoio -lopencv_imgproc -o myprog

will get you started ;)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-01-21 01:00:29 -0600

Seen: 301 times

Last updated: Feb 01 '19