How can I generate openCV debug libraries using cmake-gui?

May 6, 2016 at 6:07pm
My openCV is missing debug libraries (libraries that end with "d") and so I can not read an image using imread().
How can I generate this libraries to my build directory using cmake-gui?
I am quite new to programming so I need a step-by-step guide.

I am using Code::blocks 16.1 and my os is windows 8.1

Thanks in advance!
Last edited on May 7, 2016 at 12:15pm
May 6, 2016 at 8:31pm
I think for C::B CMake actually will generate different build settings within the output project. So you may want to try to open the C::B project and see if you can build debug vs. release from within it.
May 7, 2016 at 12:24am
> so I can not use some functions of openCV (such as imread()).
¿what do you mean? ¿it doesn't build? you say some functions, ¿are there functions that don't give you issues?
I think that you should be able to use them, just that when debuggin you wouldn't be able to step into those functions.
May 7, 2016 at 12:17pm
sorry if my question was not clear. I edited it.
imread() returns only zeros. I searched and found out it has something to do with debug libraries (the libraries that end with "d") which are missing from my lib directory.
May 7, 2016 at 12:20pm
I have set the build target to debug, but it is still not working.
Topic archived. No new replies allowed.