Ask Your Question

Revision history [back]

If you want to use QT you have to clone opencv repo ( or download from zip file) and build opencv using CMake

in folder g:/lib

git clone https://github.com/opencv/opencv.git or use button download from zip file
 run cmakegui
Where is source code = g:/lib/opencv
Where to build binaries =g:/lib/opencv/build
select generator Visual Studio 14 2015 win64 press configure
you can set OPENCV_ENABLE_NONFREE if you want SURF, SIFT... good idea is too set BUILD_EXAMPLES to true
You can disable BUILD_TESTS and BUILD_PERF_TESTS
WITH CUDA should be off if you are hurry
QT must be on. If it is not you will have to set a path to QT in CMake GUI

open.sln project should be in g:/lib/opencv/build open and generate. If you have doxygen it is quite long ...You can install opencv if you like

Now for your own project if you run cmake without installing opencv you have to set manually OPENCV_DIR to g:/lib/opencv/build

If you want to use QT you have to clone opencv repo repo ( or download from zip file) and build opencv using CMake CMake

in folder g:/lib

git clone https://github.com/opencv/opencv.git or use button download from zip file
 run cmakegui
Where is source code = g:/lib/opencv
Where to build binaries =g:/lib/opencv/build
select generator Visual Studio 14 2015 win64 press configure
you can set OPENCV_ENABLE_NONFREE if you want SURF, SIFT... good idea is too set BUILD_EXAMPLES to true
You can disable BUILD_TESTS and BUILD_PERF_TESTS
WITH CUDA should be off if you are hurry
QT must be on. If it is not you will have to set a path to QT in CMake GUI
press generate

open.sln project should be in g:/lib/opencv/build open and generate. If you have doxygen it is quite long ...You can install opencv if you like

Now for your own project if you run cmake without installing opencv you have to set manually OPENCV_DIR to g:/lib/opencv/build