User forums > Help

How do I setup openCV

(1/1)

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.
--- Code: ---`pkg-config opencv4  --cflags`
--- End code ---
under Project options | other compiler options and
--- Code: ---`pkg-config opencv4 --libs`
--- End code ---
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.

Navigation

[0] Message Index

Go to full version