Can't Compile anything in manjaro

asked 2018-05-13 13:57:59 -0600

I have been trying to experiment with opencv in manjaro linux. Every time I create a new project in Code::Blocks and try to compile the example, it gives me the error /home/billy/Pictures/Stuff/main.cpp:8: undefined reference to cv::imread(cv::String const&, int)' and /home/benjymon/Pictures/Stuff/main.cpp:11: undefined reference tocv::namedWindow(cv::String const&, int)' and 7 other errors like these. Any ideas on why this is happening? Thanks

edit retag flag offensive close merge delete

Comments

your project is not linking any opencv libs.

and to do that, you first have to build the libs, see here

berak gravatar imageberak ( 2018-05-13 20:19:30 -0600 )edit