OpenCV and VS2010: Fatal error LNK1104: atal error LNK1104: cannot open file 'tbb_debug.lib

I tried to follow this guide to install OpenCV with Visual Studio C ++ 2010 (using the 64-bit version of Windows 7): Installing OpenCV 2.4.3 in Visual C ++ 2010 Express

I use OpenCV-2.4.2 and therefore changed all the additional dependencies, for example. from "opencv_calib3d240d.lib" to "opencv_calib3d242d.lib" .

However, I get the following error when I try to run sample code to display an image:

 <quote>1>LINK : fatal error LNK1104: cannot open file 'tbb_debug.lib'</quote> 

I tried switching folders from "ia32" to "intel64". I also tried adding “tbb_debug.lib” to “Additional Dependencies” in Linker-> Input.

Another thing: the location of OpenCV on a different hard drive (D :) than my OS and VS (C :), but I assume that this should not change [edit: I moved to C :, but still get the same problem. ]

Thanks in advance!

+4
source share
1 answer

I had this problem and Change the Common Language Runtime Support (/clr) to No Common Language Runtime Support in Properties → General → Common Language Runtime Runtime. His work is successful.

+3
source

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


All Articles