Ask Your Question

Error Building OpenCV + Contribute with CMake Release mode

asked 2018-11-06 06:09:38 -0500

kenhero gravatar image

updated 2018-11-06 06:18:28 -0500

Hi, i'm a newbie to OpenCV and i was following this tutorial on youtube link text

When i build "ALL_BUILD" CmakeTargets In debug mode it works but not in release mode. I'm on Visual Studio 2017 and Win10 OS. Basically the problem is on project "ade". I saw it's a dll but ade project generates ade.dll in Debug mode (it's inside \lib\Debug) but it doesn't generate .dll in Release mode so when i try to build "ALL_BUILD" CmakeTargets in Release mode i have a missing dll in another project. The weird thing is that if i click on project proprierties of Ade project i see this: image description

I'm not sure if ade project has two different .dll like other projects (opencv_aruco400d.lib and opencv_aruco400.lib for example), probably not as i see ade.lib in Debug folder without "d" of Debug mode. I could prolly copy ade.lib inside Release folder and maybe it works but i'm not happy. Probably i missed something on cmake??? Thanks in advance

edit retag flag offensive close merge delete


hmm, no VS here, but it builds an ade lib (statically) and links that to gapi.dll

maybe the best idea for now is to disable the gapi project (it's still WIP, and very experimental) like:

cmake -DBUILD_opencv_gapi=OFF
berak gravatar imageberak ( 2018-11-06 06:19:47 -0500 )edit

which opencv branch is it , exactly ?

berak gravatar imageberak ( 2018-11-06 06:29:14 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-11-06 08:48:02 -0500

kenhero gravatar image

the master branch. Btw i turned off gapi project and now it workds.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-11-06 06:09:38 -0500

Seen: 796 times

Last updated: Nov 06 '18