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