-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyormingw.yml
57 lines (47 loc) · 1.51 KB
/
appveyormingw.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: 2.11.1.{build}
image: Visual Studio 2015
configuration: Release
platform: Win32
environment:
QTDIR: C:\Qt\5.11\mingw53_32
install:
- set PATH=%PATH%;%QTDIR%\bin;C:\Qt\Tools\mingw530_32\bin
- set CC=C:\Qt\Tools\mingw530_32\bin\gcc.exe
- set CXX=C:\Qt\Tools\mingw530_32\bin\g++.exe
- set Qt5_DIR=%QTDIR%\lib\cmake\Qt5
- set PATH=%PATH:C:\Program Files\Git\usr\bin=% # trick to remove sh.exe
- ps: Start-FileDownload https://github.com/opencv/opencv/archive/3.4.9.zip
- 7z x 3.4.9.zip
- cd opencv-3.4.9
- cd modules\videoio\src
- ps: Start-FileDownload https://github.com/hn-88/opencvpatch/raw/master/cap_dshow.cpp
# find the locations of the runtime dlls
#- set OLDPWD=$PWD
#- cd c:\
#- dir libgcc_s_dw2-1.dll /s
#- dir libstdc++-6.dll /s
#- dir libwinpthread-1.dll /s
# these are found in 36 different locations each!
#- cd OLDPWD
- cd ..\..\..
- md build
- cd build
- cmake -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -G "MinGW Makefiles" ..
- mingw32-make -j2
- mingw32-make install
- cd ..
- cd ..
- SET "OpenCV_DIR=C:\projects\ocvwarp\opencv-3.4.9\build\install"
build_script:
- cd build
- copy C:\Qt\Tools\mingw530_32\bin\*.dll .
- copy ..\CMakeListsWin.txt ..\CMakeLists.txt
- cmake -G "MinGW Makefiles" ..
- mingw32-make OCVWarp.bin
artifacts:
- path: build\OCVWarp.bin.exe
name: OCVWarp.exe
- path: opencv-3.4.9\build\install\x64\mingw\bin\*.dll
name: OpenCV dlls
- path: build\*.dll
name: Runtime dlls