microsoft / opencv

Open Source Computer Vision Library
opencv.org
Apache License 2.0
144 stars 92 forks source link

Visual Studio 2017 #78

Open akeilox opened 7 years ago

akeilox commented 7 years ago

Following the tutorial at https://developer.microsoft.com/en-us/windows/iot/samples/opencv

I have downloaded and set the system variable path for opencv directory, opening the project in visual studio 2017 with c++ developer extensions up-to-date (including Visual Studio 2017 up-to-date as of 13 May 2017)

when trying to build, it throws the following error: error MSB8020: The build tools for v140 (Platform Toolset = 'v140') cannot be found

Any pointers on how to resolve this?

General inquiry, Is there any way to get this openCV fork to work in Visual Studio 2017 ? Or any chance beside the VS2015 .sln 2017 .sln would be added?

akeilox commented 7 years ago

just an update,

after installing c++ dev tools for vs 2015, the project openCV still didnt compile. So I have tried renaming all the references to 140 to 141 in the .vcxproj files

After which I have changed the SDK version of the openCV fork to 10.0.15 (latest)

then i have compiled both debug and release versions for ARM and x86, to get the libs (w/o d) build.

After all of the above 'hacks' i was able to compile the openCV for arm and x86 within VS 2017.

If an experienced dev can comment, whether above steps are the right approach, it will benefit others following the same path as me.

JimSEOW commented 7 years ago

@akeilox I need to get OpenCV example of IoT Core to work for ARM, could you Nuget the opencv_core300d.lib and opencv_core300.lib?