LNK1107: invalid or corrupt file: cannot read at ERROR
-
hi guys
i did video processing with opencv by using visual studio. i want to make a interface. a friend suggested to me Qt to make a interface.
i watched a tutorial on youtube (http://www.youtube.com/watch?v=csxkdGQQgNg) but when i run it it gives me that error
please help me
and sorry my english.im still learning it.. :Dcodes and error
!http://i58.tinypic.com/10p0hty.png()! -
Hi and welcome to devnet,
You don't link to dll's but to the corresponding lib files on Windows.
-
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 ?