Ask Your Question

deltamaster's profile - activity

2019-11-04 00:34:13 -0600 received badge  Famous Question (source)
2016-04-17 15:58:53 -0600 received badge  Notable Question (source)
2015-11-01 22:37:55 -0600 received badge  Popular Question (source)
2014-11-19 16:35:20 -0600 commented question error LNK1181 opencv_calib3d300d.lib

Thank you ben.seep that fixed my problem! This is what I did in case anybody has this issue:

In the staticlibrary folder are all the ...300d files.

I made a folder called "replace" in static library. I moved every ...300d file into the folder (just the ones that are added to additional dependencies). Moved the folder to desktop and copied the ...300d files to the library folder. Then it worked.

Note: If you don't move the files out of staticlibrary you will get hundreds of errors. An explanation of the reason behind this would be very helpful.

2014-11-18 19:03:30 -0600 commented question error LNK1181 opencv_calib3d300d.lib

Thank you for your input. Adding the #includes does not fix the problem. I tried the code in the example-link and that gave me the same error! Thanks

2014-11-17 22:51:12 -0600 asked a question error LNK1181 opencv_calib3d300d.lib

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