How to compile OpenCV 3.4 with Visual Studio 15 2017 ARM for UWP?

不羁岁月 提交于 2019-12-24 12:04:28

问题


I have been struggling to compile OpenCV 3.4 for a couple of days now. Final target of the compile is ARM, since I am currently writing an UWP for Windows 10 IoT Core running on Raspberry Pi 3.

I started my journey from here:

https://developer.microsoft.com/en-us/windows/iot/samples/opencv

where Microsoft provides on GitHub an old OpenCV Version (3.0.0) with all the Visual Studio solutions already configured for ARM, x86 and x64.

x86/x64 compilation was very easy, in fact, and I could achieve it just by following this guide:

How to can I install/configure OpenCV3.2.0 with Visual Studio 2017?

My problem is now down to only ARM compiling - since CMake will return this nice error when used with "Visual Studio 15 2017 ARM" compilers:

By following a couple of posts here:

https://github.com/cppan/cppan/issues/23

I was able to ultimately manage to create a Visual Studio ARM solution. After using:

cmake -G "Visual Studio 15 2017 ARM" ..

with no luck, I tried:

cmake -G "Visual Studio 15 2017 ARM" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 ..

which, apparently, worked in creating a Visual Studio 2017 solution meant to be compiled for ARM.

Anyway, after a long compile time, this is what I got:

At this point, I have tried running the whole procedure again on different PCs and also by trying to repair Visual Studio, ultimately getting the very same outcome.

来源:https://stackoverflow.com/questions/48035118/how-to-compile-opencv-3-4-with-visual-studio-15-2017-arm-for-uwp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!