Repository: opencv
Issue: Error running script for WinRT
Labels: bug,priority: low,affected: 3.4,platform: winrt/uwp

Hello,

I followed this guide: https://github.com/Itseez/opencv/tree/master/platforms/winrt/readme.txt
and when I want to execute this command: setup_winrt.bat "WP,WS" "8.0,8.1" "x86,ARM" -b I always get this errors:

```
window.obj : error LNK2019: unresolved external symbol "void __cdecl cvS
etModeWindow_WinRT(char const *,double)" (?cvSetModeWindow_WinRT@@YAXPBD
N@Z) referenced in function _cvSetWindowProperty [C:\Users\matej\Desktop
\opencv-master\opencv-master\bin\WP\8.0\x86\modules\highgui\opencv_highg
ui.vcxproj]
window.obj : error LNK2019: unresolved external symbol "double __cdecl c
vGetModeWindow_WinRT(char const *)" (?cvGetModeWindow_WinRT@@YANPBD@Z) r
eferenced in function _cvGetWindowProperty [C:\Users\matej\Desktop\openc
v-master\opencv-master\bin\WP\8.0\x86\modules\highgui\opencv_highgui.vcx
proj]
C:\Users\matej\Desktop\opencv-master\opencv-master\bin\WP\8.0\x86\bin\De
bug\opencv_highgui300d.dll : fatal error LNK1120: 2 unresolved externals
 [C:\Users\matej\Desktop\opencv-master\opencv-master\bin\WP\8.0\x86\modu
les\highgui\opencv_highgui.vcxproj]


 "C:\Users\matej\Desktop\opencv-master\opencv-master\bin\WP\8.0\x86\OpenC
 V.sln" (default target) (1) ->
 "C:\Users\matej\Desktop\opencv-master\opencv-master\bin\WP\8.0\x86\ALL_B
 UILD.vcxproj.metaproj" (default target) (2) ->
 "C:\Users\matej\Desktop\opencv-master\opencv-master\bin\WP\8.0\x86\modul
 es\core\opencv_core.vcxproj.metaproj" (default target) (8) ->
 "C:\Users\matej\Desktop\opencv-master\opencv-master\bin\WP\8.0\x86\modul
 es\core\opencv_core.vcxproj" (default target) (57) ->
 (ClCompile target) ->
   C:\Users\matej\Desktop\opencv-master\opencv-master\modules\core\src\oc
 l.cpp(2219): warning C4505: 'cv::ocl::parseOpenCLDeviceConfiguration' :
 unreferenced local function has been removed [C:\Users\matej\Desktop\ope
 ncv-master\opencv-master\bin\WP\8.0\x86\modules\core\opencv_core.vcxproj
 ]


      "C:\Users\matej\Desktop\opencv-master\opencv-master\bin\WP\8.0\x86\OpenC
      V.sln" (default target) (1) ->
      "C:\Users\matej\Desktop\opencv-master\opencv-master\bin\WP\8.0\x86\ALL_B
      UILD.vcxproj.metaproj" (default target) (2) ->
      "C:\Users\matej\Desktop\opencv-master\opencv-master\bin\WP\8.0\x86\modul
      es\highgui\opencv_highgui.vcxproj.metaproj" (default target) (12) ->
      "C:\Users\matej\Desktop\opencv-master\opencv-master\bin\WP\8.0\x86\modul
      es\highgui\opencv_highgui.vcxproj" (default target) (66) ->
      (Link target) ->
        window.obj : error LNK2019: unresolved external symbol "void __cdecl c
      vSetModeWindow_WinRT(char const *,double)" (?cvSetModeWindow_WinRT@@YAXP
      BDN@Z) referenced in function _cvSetWindowProperty [C:\Users\matej\Deskt
      op\opencv-master\opencv-master\bin\WP\8.0\x86\modules\highgui\opencv_hig
      hgui.vcxproj]
        window.obj : error LNK2019: unresolved external symbol "double __cdecl
       cvGetModeWindow_WinRT(char const *)" (?cvGetModeWindow_WinRT@@YANPBD@Z)
       referenced in function _cvGetWindowProperty [C:\Users\matej\Desktop\ope
      ncv-master\opencv-master\bin\WP\8.0\x86\modules\highgui\opencv_highgui.v
      cxproj]
        C:\Users\matej\Desktop\opencv-master\opencv-master\bin\WP\8.0\x86\bin\
      Debug\opencv_highgui300d.dll : fatal error LNK1120: 2 unresolved externa
      ls [C:\Users\matej\Desktop\opencv-master\opencv-master\bin\WP\8.0\x86\mo
      dules\highgui\opencv_highgui.vcxproj]

   1 Warning(s)
   3 Error(s)


Time Elapsed 00:00:36.04
INFO> Error: Failure executing command: msbuild OpenCV.sln /p:Configuration='Deb
ug' /m

C:\Users\matej\Desktop\opencv-master\opencv-master\platforms\winrt>

```