opencv 3.0 alpha - opencv_adas300(d).lib not generated

asked 2014-09-06 04:20:37 -0500

Compvis gravatar image

updated 2014-09-06 05:27:14 -0500

berak gravatar image

Hi,

opencv_adas module don't generate opencv_adas300(d).lib but OpenCVModules.cmake import it. The CMake says:

CMake Error at D:/opencv/build/install/x86/vc11/lib/OpenCVModoules.cmake:187 (message): The imported target "opencv_adas" references the file "D:/opencv/build/install/x86/vc11/lib/opencv_adas300d.lib" but this file does not exist. Possible reasons include:....

Is this a opencv bug?

Anyone face this?

edit retag flag offensive close merge delete

Comments

looks like. (at least i'm facing the same problem, when i try to build any of the opencv_contrib samples via cmake)

it generates a dll here for the module, but no stub-lib. (probably because adas.cpp is empty)

did just removing opencv_adas300(d).lib from the linker settings in VS help ? ( worked for me)


still, would you be so nice to edit your question, and add some more details, what you were trying to build, os, etc. ? since this wants a bug report, let's collect details)

berak gravatar imageberak ( 2014-09-06 05:24:47 -0500 )edit

unless there's at least 1 exported function in adas.cpp, the linker won't generate the stub lib.

berak gravatar imageberak ( 2014-09-06 06:24:54 -0500 )edit

is that your issue ?

berak gravatar imageberak ( 2014-09-06 09:45:45 -0500 )edit

I build a project from cmake that depends on opencv library. Problem is how i can use opencv_adas module if it don't have a lib file?

Compvis gravatar imageCompvis ( 2014-09-08 02:57:50 -0500 )edit

do not build the adas module for now, then it won't be added to your dependancies.

cmake -DBUILD_opencv_adas=OFF (when building the opencv libs/contrib)

berak gravatar imageberak ( 2014-09-08 03:03:23 -0500 )edit