Having trouble Building Opencv 3.1

asked 2016-04-07 08:34:30 -0500

Twinsy gravatar image

Hi!

It's not my first openCV build just to know :) Now, i made my own libary with cMake with contribute lib.-s and CUDA 7.5. I build 64 bit and my compiler is VS 12 2013 x64 (a read that u canot use CUDA lib.-s if its not compiled 64 bit.).

Now i did as before, just like many tutorials and so ever, and i cannot build my opencv_videoio300.dll. I have the lib, but nothing else.

Error 97 error LNK2019: unresolved external symbol "private: long __cdecl videoInput::getDevice(struct IBaseFilter * *,int,wchar_t *,char *)" (?getDevice@videoInput@@AEAAJPEAPEAUIBaseFilter@@HPEA_WPEAD@Z) referenced in function "public: virtual double __cdecl cv::VideoCapture_DShow::getProperty(int)const " (?getProperty@VideoCapture_DShow@cv@@UEBANH@Z) C:\opencv3\build\modules\videoio\cap_dshow.obj 1

Error 98 error LNK1120: 1 unresolved externals C:\opencv3\build\bin\Release\opencv_videoio300.dll

This is the only error in the whole INSTALL build. Cannot figure out whats the problem. Any suggestion?

edit retag flag offensive close merge delete

Comments

On 32bit, everything is perfect with the openCV binarys and lib.-s but on 32bit i cannot compile opencv_cudaarithm300.dll, copencv_cudawarping300.dll and opencv_cudalegacy300.dll;

Now im in a situation, where "I need to have a normal build with OpenCV 3.1 and with CUDA 7.5, and i dont care its 32 or 64 bit". Im desprete now

Twinsy gravatar imageTwinsy ( 2016-04-07 08:51:01 -0500 )edit

By the looks of your error, the only reason why such output is generated is because you are somehow mixing up some 32 bit and 64 bit stuff. Can you inspect that you are only using 64 bit options in your VS studio when building?

StevenPuttemans gravatar imageStevenPuttemans ( 2016-04-08 03:34:09 -0500 )edit