Hi everybody,
I am working on a project and trying to get familiar with OpenCV. I have chosen to try and connect it with MS Visual Studio 2013. Here is the code I am trying to run:
"#include <opencv\cv.h> //ignore "
"#include <opencv\highgui.h> //ignore "
using namespace cv;
int main(){
IplImage* img = cvLoadImage("C:\\Users\\--\\Desktop\\ocv.png");
cvNamedWindow("Example1", CV_WINDOW_NORMAL);
cvShowImage("Example1", img);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow("Example1");
return 0;
}
This is what I have done to connect to the OpenCV libraries:
In Properties
Linker>Additioinal Dependencies
"opencv_ts300d.lib";"opencv_calib3d300d.lib";"opencv_core300d.lib";"opencv_features2d300d.lib"; "opencv_flann300d.lib";"opencv_highgui300d.lib";"opencv_imgcodecs300d.lib";"opencv_imgproc300d.lib"; "opencv_ml300d.lib";"opencv_objdetect300d.lib";"opencv_photo300d.lib";"opencv_shape300d.lib"; "opencv_stitching300d.lib";"opencv_superres300d.lib";"opencv_ts300d.lib";"opencv_video300d.lib"; "opencv_videoio300d.lib";"opencv_videostab300d.lib";%(AdditionalDependencies)
Linker>Input
"C:\opencv\build\x86\vc12\lib";"C:\opencv\build\x86\vc12\bin"%(AdditionalLibraryDirectories)
Linker>General
"C:\opencv\build\x86\vc12\lib";"C:\opencv\build\x86\vc12\bin"%(AdditionalLibraryDirectories)
C/C++>Additional Include Directories
"C:\opencv\build\include";"C:\opencv\build\include\opencv";"C:\opencv\build\include\opencv2";%(AdditionalIncludeDirectories)
VC++ Directories>Include Directories
"C:\opencv\build\include";"C:\opencv\build\include\opencv";"C:\opencv\build\include\opencv2";$(IncludePath)
VC++ Directories>Library Directories
"C:\opencv\build\x86\vc12\bin";"C:\opencv\build\x86\vc12\lib";$(LibraryPath)
VC++ Directories>Source Directories
"C:\opencv\build\x86\vc12\bin";"C:\opencv\build\x86\vc12\lib";"C:\opencv\build\x86\vc12\staticlib"$(SourcePath)
I get a reoccurring error and my program will not compile.
Error 1 error LNK1181: cannot open input file 'opencv_calib3d300d.lib' C:\Users\Will\Documents\Visual Studio 2013\Projects\OPEN_CV_TEST\OPEN_CV_TEST\LINK OPEN_CV_TEST
I've tried manipulating everything. I've read all the other similar questions and noticed that other people are having this error. I've also read what Microsoft's website says on the issue. Any help would be appreciated very much.
Thank you,
deltamaster