News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

How do I setup openCV

Started by Guille, October 09, 2023, 12:05:17 AM

Previous topic - Next topic

Guille

Im having problems setting it up in codeblocks, it doesnt detect cv::, I've linked and set the build options but dunno if thats correct.

Miguel Gimenez

Post a full rebuild log, see instructions here.

blauzahn

What do you mean by "doesn't detect"?

Depending on the os, on linux it is often enough to add e.g. `pkg-config opencv4  --cflags` under Project options | other compiler options and `pkg-config opencv4 --libs` under other linker options. Then the compiler can find the includes and the linker the libraries.

Code completion might be a different story. I do not care a lot about it.