Reputation: 15996
I'm trying to get OpenCV 2.3.1 working inside a VS2010 setup. I was hoping to use the prebuilt static libraries because they seemed easiest. Basically all I'm doing is setting up the linker to link with all of the prebuilt libraries, but I'm still getting linker errors in the following test:
#include "opencv2/core/core.hpp"
int main()
{
cv::Mat image;
}
I get linker errors to _gzputs
, _gzclose
, _gzopen
, and a couple of others. They all seem to be related to the zlib library. The install instructions don't seem to say much about building zlib, and there's no prebuilt library (static .lib) that I can find for it. Does this mean that there's no way to use OpenCV 2.3.1 out of the box without compiling a 3rd party library?
Thanks!
Upvotes: 1
Views: 2108
Reputation: 2822
By default openCV include support for loading png images. the libpng (which is used by openCV) require zlib. I suppose you can compile the openCV without support for png images and then you would not need the zlib.
Upvotes: 2