Linker problems, OpenCV 3.1.0
I am trying to install OpenCV 3.1.0 and use it inside of Visual Studios. I've completed the installation of OpenCV, but I'm getting linker errors. I tried using: http://docs.opencv.org/2.4/doc/tutori...
The tutorials online are woefully out of date, and contain references to dozens of link libraries that no longer exist in this installation.
The only library I have is: opencv_world310d.lib (and its non 'd' equivalent), hidden away behind several folders. I have nothing like the tutorial says.
When I add the path and single file dependency to Visual Studio and attempt to compile a test program, shown below, I get linker errors.
Any advice? Are there more current installation instructions?
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace std;
using namespace cv;
int main()
{
Mat imageMe = imread("frog.jpg", 0);
return 0;
}
Sample of the errors (There are 5, all essentially the same)
Error LNK2019 unresolved external symbol "class cv::Mat __cdecl cv::imread(class cv::String const &,int)" (?imread@cv@@YA?AVMat@1@ABVString@1@H@Z) referenced in function _main Project2 C:\Users\M\Documents\Visual Studio 2015\Projects\Project2\Project2\Source.obj 1
it'll probably help, if you add those error messages to your question.
yes, the prebuilt package from sourceforge comes with a single opencv_world lib. just link against that.