Error OpenCV 3.0 x64 VS2013 LNK1104

already read some other topics about these ... everything is still ... nothing worked. double checked everything.

using x64, VS13 (x32) and x64 as the target system (although I tried using x32 before and had the same error) Anyway, here are my links:

X64 debugging

VC ++ exec directory: K: \ A_A_Programmierung \ opencv \ build \ x64 \ vc12 \ bin; $ (ExecutablePath)

VC ++ lib: K: \ A_A_Programmierung \ opencv \ build \ x64 \ vc12 \ lib; $ (LibraryPath)

C / C ++: K: \ A_A_Programmierung \ opencv \ build \ include;% (OptionalIncludeDirectories)

Linker: Target Computer: MachineX64 (/ MACHINE: X64)

additional dependencies:

opencv_calib3d300d.lib; opencv_core300d.lib; opencv_features2d300d.lib; opencv_flann300d.lib; opencv_highgui300d.lib; opencv_imgcodecs300d.lib; opencv_imgproc300d.lib; opencv_ml300d.lib; opencv_objdetect300d.lib; opencv_photo300d.lib; opencv_shape300d.lib; opencv_stitching300d.lib; opencv_superres300d.lib; opencv_ts300d.lib; opencv_video300d.lib; opencv_videoio300d.lib; opencv_videostab300d.lib;% (AdditionalDependencies)

Additional library. catalog:

K: \ A_A_Programmierung \ opencv \ build \ x64 \ vc12 \ lib; C: \ Program Files (x86) \ Microsoft SDK \ Windows \ v7.1A \ Lib;% (optional LibraryDirectories)

also checked some other settings mentioned in other threads! and set the environment variable as indicated in tut, and also executed VS13 as admin

any help?

+2
source share
2 answers

ok fixed it myself ... you have to add opencv 3.0 files to opencv \ build \ x86 \ vc12 \ lib to enter the linker. (see additional dependencies), which is no longer the entire list ... the list of the official textbook is not updated!

+2
source

Try using $(OPENCV_DIR)\staticlib instead of $(OPENCV_DIR)\lib .

0
source

Source: https://habr.com/ru/post/1211462/


All Articles