Code::Blocks Forums

User forums => Help => Topic started by: Guille on October 09, 2023, 12:05:17 am

Title: How do I setup openCV
Post by: Guille on October 09, 2023, 12:05:17 am
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.
Title: Re: How do I setup openCV
Post by: Miguel Gimenez on October 09, 2023, 09:20:59 am
Post a full rebuild log, see instructions here (https://wiki.codeblocks.org/index.php/FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F).
Title: Re: How do I setup openCV
Post by: blauzahn on October 09, 2023, 06:30:04 pm
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`
under Project options | other compiler options and
Code
`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.