Error link: Fatal error lnk1181: Unable to open the input file "cxcore. lib"

Source: Internet
Author: User

Vs2010 error:

1> link: Fatal error lnk1181: Unable to open the input file "cxcore. lib"

 

Cause: For the opencv version, add it to the Lib of your own version.

View your lib directory:

For example: D: \ Program Files \ opencv2.4.3 \ opencv \ build \ x86 \ VC10 \ Lib

 

 

Solution:

 

Method 1:

Add the following two sentences to the CPP file:

# Pragma comment (Lib, "opencv_core243d.lib ")

# Pragma comment (Lib, "opencv_highgui243d.lib ")

 

Method 2:

Project -----> properties ----->

 

 

Add the following in the additional dependencies under Debug:

Opencv_calib3d243d.lib; opencv_contrib243d.lib;

Opencv_core243d.lib; opencv_features2d243d.lib;

Opencv_flann243d.lib; opencv_gpu243d.lib; opencv_highgui243d.lib;

Opencv_imgproc243d.lib; opencv_legacy243d.lib; opencv_ml243d.lib;

Opencv_objdetect243d.lib; opencv_ts243d.lib; opencv_video243d.lib

 

Add the following in the additional dependency under release:

Opencv_calib3d243.lib; opencv_contrib243.lib;

Opencv_core243.lib; opencv_features2d243.lib; opencv_flann243.lib;

Opencv_gpu243.lib; opencv_highgui243.lib; opencv_imgproc243.lib;

Opencv_legacy243.lib; opencv_ml243.lib; opencv_objdetect243.lib;

Opencv_ts243.lib; opencv_video243.lib

 

 

 

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.