LINK : fatal error LNK1104: cannot open file '.obj'
Hello,
I am new, and I has big problem with bulid my simple program. I using many tutorials, instructions and I can't solve it.
I edit variable's path, add in:
C/C++->General->Additionals Include Directories->MyOpenCv\build\include
Linker->General->Additionals Library Directories->MyOpenCv\build\x86\vc11\lib
Linker->Input->Additional Dependencies->I added .libs
The same in Debug and Release.
Windows 8 x64, VS2012 x32, OpenCV 2.4.5
Please help me I struggling with this for 3 days.
have you included MYOpenCv\build\include\opencv and MYOpenCv\build\include\opencv in c/c++->General->Additional Include Directories
http://linkopencvtovs.blogspot.com/2013/10/how-to-link-opencv-to-microsoft-visual.html check this tutorial it may help you
I am follow your tutorial and... I has new error: LINK : fatal error LNK1104: cannot open file 'opencv_highguiv245.lib'
opencv_highgui245.lib // without the 'v'
yes its opencv_highgui245.lib
thank you now it's working ;)
It is normal when I debug program form http://bit.ly/Yg9k53, I get about 10 output info: "...vc11\bin\opencv_core245.dll'. Cannot find or open the PDB file." and last output info: "The program '[2080] Test1.exe' has exited with code -1 (0xffffffff)."
yes, normal. the pdb files are not supplied ( size ). you only need them if you want to debug the opencv libs. most likely you won't need them. otherwise, you can rebuilt the whole opencv libs using cmake, this will generate the pdb's as well.
ok, to solve this problem: "The program '[2080] Test1.exe' has exited with code -1 (0xffffffff)." I need to rebuilt opencv with cmake?
One more, when I VideoCapture my namedWindow look likes "Ć®ý€őňáüV" why?
no no. it seems more, that you're linking the wrong libs. check for debug <--> release, 32 <--> 64 bit, vs version
since vs usually starts in DEBUG mode, you need to link against the libs in the debug folder. they all should have a 'd' at the end. for release build, choose those from the release folder ( without 'd' ). don't mix them ! ( that will result in funny errors like the ones you getting )
I change DEBUG libs, now they all have 'd' and I has the same strange char in my video window after debug... Edit: Win 7 with 2.4.6 I hasn't problems with window name ;)