I want to develop openCv project in Visual Studio 2017. I downloaded the opencv pre-build libraries and made necessary settings. That is:
1) I added System Path ...build\x64\vc14\bin
2) In Visual Studio from project properties I added Additional Include Directories ...opencv\build\include
under C/C++ -> General Settings
3) I added Additional Include Directories ...opencv\build\x64\vc14\lib
under Linker->General Settings
4) I added Additional Dependecies opencv_world341d.lib
under -> Linker->Input Settings
I wrote the following code and it is compiled without an error
// opencv.cpp : Defines the entry point for the console application.
#include "stdafx.h"
#include <opencv2/opencv.hpp>
using namespace cv;
int main() {
Mat img;
return 0;
}
But the problem is when I move curser over Mat keyword after 2-3 seconds VS freezes and does not respond anyway. Do you have any idea why this happens?
...build\x64\vc15\bin
and...opencv\build\x64\vc15\lib
to begin with... Btw, I never experienced such a problem with VS2017 – Fluxopencv_world341d.lib
. I hope you linked that in debug mode only, and that you're running in debug mode. Useopencv_world341.lib
for release. If that's correct.. as last chance I'd upgrade visual studio to the latest version – Flux