Ask Your Question

Creating Property Sheets for release

asked 2013-02-23 15:03:56 -0500

Jedi gravatar image

Hello, I'm trying to start project with OpenCV in VS 2010. I create Property Sheet for Debug by this instruction:

But in instrution is none about creating property sheet for release. I try to copy property sheet from debug by isn't work (compiler not see openCv files). I'm create environment variables so i think problem is in property sheet.

How to fix this?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-02-23 15:44:35 -0500

berak gravatar image

dear jedi,

apart from "it's not work" not being a valid problem description, let's try to shade some light here:

the debug and the release settings only differ in the 'Linker Settings'.

IF you build your own libs from source here(ignore this paragraph, if you're using the prebuilt ones!!!) the needed lib files are in opencv\lib\debug for debug, and opencv\lib\release for release, so adjust the Linker->general->'Additional Libraries' path to point to the right thing. also, your PATH environment variable should have an entry pointing at bin\debug, AND bin\release, like: PATH=(...lots of other stuff);c:\opencv\bin\debug;c:\opencv\bin\release; so that your exe is able to find the dlls at runtime

the libraries for debug mode all have a 'd' at the end, the release ones don't. (opencv_core243d.lib vs opencv_core243.lib) so if you copied your library list from the debug settings to the release one, make shure to remove the 'd' in all of them.

last but not least, you never gave an error message. that would be real helpful for people trying to help you !

edit flag offensive delete link more

answered 2013-03-02 17:06:53 -0500

Jedi gravatar image

Thanks for reply!

I solved problem.

I copy libs name from tutorial and version number was not agree

edit flag offensive delete link more

Question Tools


Asked: 2013-02-23 15:03:56 -0500

Seen: 232 times

Last updated: Mar 02 '13