Ask Your Question
0

Why not understand C++ Compiler not opencv lib?

asked 2018-10-16 15:51:34 -0600

updated 2018-10-17 02:06:40 -0600

berak gravatar image

Hello everyone,

I have a very big problem and I hope anyone here can help me. I'm a student and must develop a project on raspberry pi 3 with camera module in C++ and openCV library. At the moment my problem is the compiler dosn't include the opencv.hpp.

Here a picture of my problem:

image description

I had installed openCV 3.4.0 on the raspberry pi3. Version of gcc (Raspbian 6.3.0-18+rpi1+deb9u1) 6.3.0 20170516

Here the preferences from the compiler.

image description

Thank you for your support and i hope my English is not to bad ;-)

Best regards

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-10-17 02:09:22 -0600

berak gravatar image

"undefined reference" means, the linker did not find something.

you have to add nessecary opencv libs, like

-lopencv_core -lopencv_imgcodecs -lopencv_highgui -lopencv_imgproc
edit flag offensive delete link more

Comments

I actually stuck with the same problem. Where should I add these libs? / Where are the stored?

Thanks for any hint!

Hogrount gravatar imageHogrount ( 2018-10-17 13:12:50 -0600 )edit

@Hogrount, please do not post answers here if you have a question or comment, thank you..

berak gravatar imageberak ( 2018-10-17 13:27:15 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-10-16 15:51:34 -0600

Seen: 142 times

Last updated: Oct 17 '18