LNK1107: invalid or corrupt file: cannot read at ERROR
-
Change all the LIBS lines from these:
@
LIBS += C:\Users\hamit\Desktop\opencv\release\bin\libopencv_core2410.dll
...
@
to these:
@
LIBS += -LC:/Users/hamit/Desktop/opencv/release/lib -lopencv_core2410
...
@
Notice "lib" instead of "bin", the -L without space before the path and -l(lowercase L) before the library name and no "lib" prefix or extension. Also \ is an escape character so either use / (recommended) or \.
After that place the .dll files in the directory where your app executable is and also don't forget to run Build->run qmake. -
INCLUDEPATH += C:\Users\hamit\Desktop\opencv\release\install\include
LIBS += -LC:\Users\hamit\Desktop\opencv\release\lib -lopencv_core2410
LIBS += -LC:\Users\hamit\Desktop\opencv\release\lib -lopencv_contrib2410
LIBS += -LC:\Users\hamit\Desktop\opencv\release\lib -lopencv_highgui2410
LIBS += -LC:\Users\hamit\Desktop\opencv\release\lib -lopencv_imgproc2410
LIBS += -LC:\Users\hamit\Desktop\opencv\release\lib -lopencv_calib3d2410i did like that but it gave me error again.. just error name changed.. its LNK1181: cannot open input file'..... '
-
The '...' is very important :) It tells you which file is problematic. Did you verify that it exist at that location?
-
Which compiler are you using ? Which compiler was used to build OpenCV ?
-
Was OpenCV also built with VS2010 ?
-
Custom OpenCV build ?