Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

installation OpenCV3 on windows using prebuilt binaries

Hi,

I had trouble compiling on windows for x64 so I thought I would try just using the binaries (using the following guide).

http://docs.opencv.org/3.0-last-rst/doc/tutorials/introduction/windows_install/windows_install.html#windows-install-prebuild

I downloaded version 3.1.0 ran the setup then saw that there are directories

C:\OpenCV\sources\include

and

C:\OpenCV\build\x64\vc14\lib

The lib directory only includes one lib file (and the debug version)

opencv_world310.lib

I was expecting to use

-lopencv_shape310 -lopencv_core310 -lopencv_highgui310 -lopencv_imgproc310 -lopencv_imgcodecs310

So either the libraries have changed and there is only one file to link against or the distribution is incomplete or there are no pre-built binaries and you have to build them yourself. Either way the documentation is not correct.

Anyway so I tried to build using CMAKE everything goes ok, but everything is built for WIN32 which is not compatible with my QT version and is anyway not really the latest technology. I changed all the WIN32 flags in CMAKE to be WIN64, better but still compiles certain libraries as X86, surely a simple install of the latest opencv version on the most popular OS should not be so difficult and poorly explained.

Thanks for any help

Cheers Dave

installation OpenCV3 on windows using prebuilt binaries

Hi,

I had trouble compiling on windows for x64 so I thought I would try just using the binaries (using the following guide).

http://docs.opencv.org/3.0-last-rst/doc/tutorials/introduction/windows_install/windows_install.html#windows-install-prebuild

I downloaded version 3.1.0 ran the setup then saw that there are directories

C:\OpenCV\sources\include

and

C:\OpenCV\build\x64\vc14\lib

The lib directory only includes one lib file (and the debug version)

opencv_world310.lib

I was expecting to use

-lopencv_shape310 -lopencv_core310 -lopencv_highgui310 -lopencv_imgproc310 -lopencv_imgcodecs310

So either the libraries have changed and there is only one file to link against or the distribution is incomplete or there are no pre-built binaries and you have to build them yourself. Either way the documentation is not correct.

Anyway so I tried to build using CMAKE everything goes ok, but everything is built for WIN32 which is not compatible with my QT version and is anyway not really the latest technology. I changed all the WIN32 flags in CMAKE to be WIN64, better but still compiles certain libraries as X86, surely X86 (actually on the last attempt I got 319 errors - see comment below). Surely a simple install of the latest opencv version on the most popular OS should not be so difficult and poorly explained.

Thanks for any help

Cheers Dave