Skip to content

Commit 6364d66

Browse files
authored
Merge pull request #25 from nikolaseu/chore-add-appveyor
Add Windows CI (appveyor, using vcpkg for dependencies)
2 parents e06c5c6 + f675931 commit 6364d66

File tree

9 files changed

+74
-29
lines changed

9 files changed

+74
-29
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ before_install:
1414
- brew update && brew bundle
1515

1616
script:
17-
- mkdir build
1817
- cd build
1918
- $(brew --prefix qt)/bin/qmake ../NEUVision.pro
2019
- make

3rdparty/opencv.pri

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
# Windows
44
win32 {
5-
OPENCV_INCLUDE_DIR = $$(THIRDPARTY)/Release/include
5+
# using vcpkg, useful for CI (appveyor)
6+
OPENCV_DIR = C:/Tools/vcpkg/installed/x64-windows
7+
OPENCV_VER = 341
68

9+
OPENCV_INCLUDE_DIR = $$OPENCV_DIR/include
710
CONFIG(release, debug|release) {
8-
OPENCV_LIB_DIR = $$(THIRDPARTY)/Release/x64/vc14/lib
11+
OPENCV_LIB_DIR = $$OPENCV_DIR/lib
912
} else {
10-
OPENCV_LIB_DIR = $$(THIRDPARTY)/Debug/x64/vc14/lib
13+
OPENCV_LIB_DIR = $$OPENCV_DIR/debug/lib
1114
}
12-
13-
OPENCV_VER = 330
1415
}
1516

1617
# Linux

3rdparty/qtpropertybrowser.pri

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ else:unix: LIBS += -L$$Z3D_BUILD_DIR -lQtSolutionsPropertyBrowser
44

55
INCLUDEPATH += $$PWD/qtpropertybrowser/src
66
DEPENDPATH += $$PWD/qtpropertybrowser/src
7+
8+
DEFINES += QT_QTPROPERTYBROWSER_IMPORT

NEUVision.pro

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,5 @@ Z3DCameraViewer.depends = lib
1717
SUBDIRS += Z3DScanner
1818
Z3DScanner.depends = lib
1919

20-
!android:!macx{
21-
SUBDIRS += Z3DCloudViewer
22-
Z3DCloudViewer.depends = lib
23-
}
20+
#SUBDIRS += Z3DCloudViewer
21+
#Z3DCloudViewer.depends = lib

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Structured Light based 3D scanner
22

33
[![Build Status](https://travis-ci.com/nikolaseu/neuvision.svg?branch=master)](https://travis-ci.com/nikolaseu/neuvision)
4+
[![Build status](https://ci.appveyor.com/api/projects/status/q3vr5tbjbh3v8jh5/branch/master?svg=true)](https://ci.appveyor.com/project/nikolaseu/neuvision/branch/master)
45

56
Engineering degree thesis/project for the title of "Ingeniero en Informatica", Universidad Nacional del Litoral (Santa Fe, Argentina).
67

appveyor.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
version: 0.1.0-{build}
2+
image:
3+
- Visual Studio 2015
4+
platform: x64
5+
configuration: Release
6+
pull_requests:
7+
do_not_increment_build_number: true
8+
#init:
9+
# # To get RDP details for the current build worker
10+
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
11+
#on_finish:
12+
# # If you need to investigate worker on build finish add $blockRdp = $true; to display Remote Desktop connection details and pause the build until a special “lock” file on VM desktop is deleted:
13+
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
14+
environment:
15+
APPVEYOR_SAVE_CACHE_ON_ERROR: true
16+
cache:
17+
- C:\Tools\vcpkg\installed\
18+
install:
19+
#- choco install OpenCV --params="'/Environment'"
20+
- vcpkg install opencv:x64-windows
21+
#- vcpkg install vtk:x64-windows
22+
#- vcpkg install pcl:x64-windows
23+
build_script:
24+
- dir "C:/Tools/vcpkg/installed/x64-windows"
25+
- dir "C:/Tools/vcpkg/installed/x64-windows/include"
26+
- dir "C:/Tools/vcpkg/installed/x64-windows/lib"
27+
- dir "C:/Tools/vcpkg/installed/x64-windows/bin"
28+
- cd build
29+
- call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
30+
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
31+
- call "C:\Qt\5.10.1\msvc2015_64\bin\qmake.exe" ..\neuvision.pro -spec win32-msvc
32+
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe"
33+
after_build:
34+
- cd %APPVEYOR_BUILD_FOLDER%/bin/release5
35+
- call "C:\Qt\5.10.1\msvc2015_64\bin\windeployqt.exe" -concurrent Z3DScanner.exe
36+
- cp "C:/Tools/vcpkg/installed/x64-windows/bin"/*.dll .
37+
artifacts:
38+
# pushing entire folder as a zip archive
39+
- path: bin/release5
40+
name: NEUVision-Windows-x64-v$(appveyor_build_version)
41+
deploy:
42+
release: NEUVision-Windows-x64-v$(appveyor_build_version)
43+
description: 'Automatic snapshot release from CI'
44+
provider: GitHub
45+
auth_token:
46+
secure: aHV+YRaW2BChwsCNWDuyIcIMS6WLL8Y/owvslumt0sXRrtbtPHHj3p7/7OdToJ5t
47+
artifact: /.*\.zip/ # upload all zip packages to release assets
48+
draft: true
49+
prerelease: true
50+
on:
51+
branch: master # release from master branch only
52+
# appveyor_repo_tag: true # deploy on tag push only

build/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*

lib/lib.pro

+2-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@ zcameracalibrator.depends = zcalibratedcamera zcameraacquisition zcameracalibrat
2020
SUBDIRS += zstructuredlight
2121
zstructuredlight.depends = zcore zcalibratedcamera zcameraacquisition zcameracalibration zcameracalibrator
2222

23-
!android:!macx{
24-
SUBDIRS += zpointcloud
25-
zpointcloud.depends = zcalibratedcamera zcameraacquisition zcameracalibration
26-
}
23+
#SUBDIRS += zpointcloud
24+
#zpointcloud.depends = zcalibratedcamera zcameraacquisition zcameracalibration

lib/zcameraacquisition/plugins/plugins.pro

+8-15
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,12 @@ unix:!android: {
88
SUBDIRS += zlibgphoto2
99
}
1010

11-
win32: {
12-
## Windows build here
13-
SUBDIRS += zpylon
11+
## Uncomment the ones you want to build
12+
#SUBDIRS += zpylon
13+
#SUBDIRS += zavtvimba
14+
#SUBDIRS += zflycapture2
15+
#SUBDIRS += zlucam
16+
#SUBDIRS += zniimaqdxgrab
17+
#SUBDIRS += zpleoraebus
1418

15-
!contains(QMAKE_TARGET.arch, x86_64) {
16-
## Windows x86 (32bit) specific build here
17-
SUBDIRS += zavtvimba
18-
SUBDIRS += zflycapture2
19-
SUBDIRS += zlucam
20-
SUBDIRS += zniimaqdxgrab
21-
SUBDIRS += zpleoraebus
22-
} else {
23-
## Windows x64 (64bit) specific build here
24-
message('Building only x86_64 compatible camera acquisition plugins')
25-
}
26-
}
19+
message('Configured for building camera acquisition plugins:' $$SUBDIRS)

0 commit comments

Comments
 (0)