Author Topic: How do I setup openCV  (Read 6392 times)

Offline Guille

  • Single posting newcomer
  • *
  • Posts: 1
How do I setup openCV
« 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.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1563
Re: How do I setup openCV
« Reply #1 on: October 09, 2023, 09:20:59 am »
Post a full rebuild log, see instructions here.

Offline blauzahn

  • Almost regular
  • **
  • Posts: 162
Re: How do I setup openCV
« Reply #2 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.