Recently, I want to compile the opencv source code to view the source code running status during debugging.
Follow the online article win7x64 + vs2012 + opencv2.4.3 + cmake2.8.10 + tbb41 to recompile opencv, use cmake to generate the vs2010 solution, and then "generate" The instal project, however, during the compilation process:
Link: Fatal error lnk1181: the input file "... \ .. \ Lib \ release \ opencv_ocl249.lib" cannot be opened"Error
As a result, only some of the dynamic link libraries are successfully generated.
I guess it isOpencv_ocl ProjectFailed to generate because it is required by other linked libraries.Opencv_ocl249.libThe connection fails.
PairOpencv_ocl ProjectThe generation operation fails. Check the Output Message as follows:
1> generating opencl_kernels.cpp, opencl_kernels.hpp
1> cmake error at D:/program files/opencv2.4.9/sources/cmake/cl2cpp. cmake: 50 (string ):
1> string does not recognize sub-command MD5 is found on the Internet. It may be because my cmake version is too low (version 2.8) and the MD5 command cannot be recognized.
According to suggestions on the internet,Open the D:/program files/opencv2.4.9/sources/cmake/cl2cpp. cmake file, delete the string (MD5 hash "$ {lines}") of line 1, and recompile the file.
The problem is resolved successfully.