Link: Fatal error lnk1181: the input file "... \ .. \ Lib \ release \ opencv_ocl249.lib" cannot be opened"

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.