Ask Your Question
0

vs2010+opencv2.2 why can not follow in the openCV function codes?

asked 2012-11-07 21:57:47 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

using cmakes then vs2010 complied the openCV2.2,get the bin and lib files,set the envirment variables bin\debug and bin\release. Using it is nomorl,but can not use step F11,follow in the openCV fuction ,why?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-11-07 23:34:17 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

In the CMake you have to check BUILD_WITH_DEBUG_INFO flags for inject debug info into debug libs. When you compile OpenCV project by visual studio create install folder in the solution directory this folder contains /include ,/bin ,/doc,/lib . then you have to add /bin folder to enviroment variable.

edit flag offensive delete link more

Comments

Why I CMake haven't BUILD_WITH_DEBUG_INFO flags to choose,It is CMake 2.8.1,only have BUILD_ EMAMPLES,BUILD_LATEX_DOCS,BUILD_NEW_PYTHON_SUPPORT;BUILD_PACKAGE;BUILD_SHARED_LIBS;BUILD_TESTS,I tick the BUILD_NEW_PYTHON_SUPPORT;BUILD_SHARED_LIBS;BUILD_TESTS.Is there the key ?

winne gravatar imagewinne ( 2012-11-08 01:46:20 -0600 )edit

BUILD_WITH_DEBUG_INFO flag was added in 2.4 version (maybe in 2.3, I don't remember exactly).

Vladislav Vinogradov gravatar imageVladislav Vinogradov ( 2012-11-08 04:52:23 -0600 )edit

Is me add this item then tick it,then do everything again,it is be ok? It seemed not work,CMake inform me CMake Warning: The variable, 'BUILD_WITH_DEBUG_INFO', specified manually, was not used during the generation. as your said the 2.4version is below de 2.8.1 ,why not compatiable ?

winne gravatar imagewinne ( 2012-11-11 18:47:57 -0600 )edit

my system is win7,2.4 version seemed not support it

winne gravatar imagewinne ( 2012-11-12 20:53:58 -0600 )edit

Question Tools

Stats

Asked: 2012-11-07 21:57:47 -0600

Seen: 699 times

Last updated: Nov 07 '12