Linking not working on Windows 7

asked 2014-11-06 11:36:00 -0500

KevinOpencv gravatar image

updated 2014-11-06 12:12:36 -0500

berak gravatar image

Os Windows 7, Opencv 3.0.0, Compiler VS2013

I linked to the D:\opencv\build\x86\vc12\staticlib folder and it found opencv_highgui300.lib and the other libs that were working with the previous Opencv version in the same program but now Im getting "unresolved external symbol _cvLoadImage referenced in function _main" errors.

I hope I understood well the documentation that we dont need to install Opencv for only basic stuff? Do we? Can we just use the decompressed opencv folder? What can be the problem? Thanks!

edit retag flag offensive close merge delete

Comments

if you really have a 'cvLoadImage' in your code, - sorry dear, you will have to start all over

berak gravatar imageberak ( 2014-11-06 11:46:16 -0500 )edit

What do you mean? Can I use the downloaded package without installing or it must be installed?

It says: "OpenCV may come in multiple flavors. There is a “core” section that will work on its own."

KevinOpencv gravatar imageKevinOpencv ( 2014-11-06 12:04:25 -0500 )edit
  • if you downloaded the prebuild packages from sourceforge, it's just an 'unzip' (there's no 'install' step)

  • just be aware, that you will need the opencv dlls on any other machine as well

  • also, the imread() code has been moved to "opencv2/imgcodecs.hpp", and you will need to link opencv_imcodecs300.lib

berak gravatar imageberak ( 2014-11-06 12:08:57 -0500 )edit

Thank you Berak!

Do I need the DLLs also if I link it with static libraries? I guess I do not, right?

KevinOpencv gravatar imageKevinOpencv ( 2014-11-06 12:16:23 -0500 )edit

well. no. the obvious exception is opencv_ffmpeg (there's no static lib for that)

berak gravatar imageberak ( 2014-11-06 12:27:36 -0500 )edit
1

Great! Thanks a lot!

Have a nice evening! ;)

KevinOpencv gravatar imageKevinOpencv ( 2014-11-06 12:38:18 -0500 )edit