OpenCV 2.4.8 build for Visual Studio 2005
I was wondering if anyone has a working build of a recent version of OpenCV for Visual Studio 2005. I tried to do it myself from the source using the instructions in http://sathyakumar-spark.blogspot.com/2011/10/opencv-on-windows-and-visual-studio.html
It installs fine, after a few minor tweaks but then when I try to run a simple program to read an image using imread, it cannot read the image (returns null in data). Any idea what could be wrong? Or does anyone already have a working version?
Thanks!
try :
cout << cv::getBuildInformation() << endl;
might be , that you missed to compile the jpeg / png libs, and that now it can' topen it at runtime
That's interesting. cout << cv::getBuildInformation() << endl; prints garbage from my simple program. However, when I add the line to test_drawing.cpp in the opencv_test_highgui project, it does return valid information which shows that the jpeg/png libs are built. opencv_test_highgui doesn't use the dlls though, so I guess there is something wrong with the dlls I have built. I don't have enough experience to figure out what it could be. I'm on a Win7 64-bit machine but I'm using the x86 compile, by the way.
Fixed. It turned out I had the vc10/bin directory in my path from an earlier install, so it was trying to use the wrong dlls (sigh).