Subversion Repositories seema-scanner

Rev

Rev 233 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 jakw 1
#------------------------------------------------------------
2
#
3
# SMScanner
4
#
9 jakw 5
# Control Interface and point cloud reconstruction interface
1 jakw 6
# for the SeeMa Lab Structured Light Scanner.
7
#
248 jakw 8
# Supported OS: Ubuntu 18.04
23 jakw 9
#
248 jakw 10
# Dependencies: Qt 5, OpenCV 3.x, PCL 1.8.1 and VTK 8 from ppa
1 jakw 11
#
248 jakw 12
# Image Analysis and Computer Graphics, DTU, 2018
167 jakw 13
#
1 jakw 14
#------------------------------------------------------------
15
 
27 jakw 16
QT += core gui testlib
1 jakw 17
 
18
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
19
 
20
TARGET = SMScanner
21
TEMPLATE = app
22
 
233 - 23
CONFIG += c++11
24
 
4 jakw 25
HEADERS  += SMScanner.h \
26
        SMVideoWidget.h \
27
        SMPointCloudWidget.h \
28
        camera/Camera.h \
29
        projector/Projector.h \
23 jakw 30
        projector/ProjectorOpenGL.h \
4 jakw 31
        projector/OpenGLContext.h \
32
        cvtools.h \
33
        SMCaptureWorker.h \
23 jakw 34
        rotationstage/RotationStage.h \
35
        SMPreferenceDialog.h \
24 jakw 36
        SMTypes.h \
159 jakw 37
        SMCalibrationWorker.h \
38
        #SMCalibrationWorkerArUco.h \
113 jakw 39
        SMCalibrationParameters.h \
40
        SMReconstructionWorker.h \
221 flgw 41
        #SMMeshingWorker.h \
113 jakw 42
        algorithm/Algorithm.h \
43
        algorithm/AlgorithmGrayCode.h \
123 jakw 44
        algorithm/AlgorithmGrayCodeHorzVert.h \
128 jakw 45
        algorithm/AlgorithmLineShift.h \
182 jakw 46
        algorithm/AlgorithmPhaseShiftThreeFreq.h \
135 jakw 47
        algorithm/AlgorithmPhaseShiftTwoFreq.h \
200 jakw 48
        algorithm/AlgorithmPhaseShiftTwoFreqHorzVert.h \
192 jakw 49
        algorithm/AlgorithmPhaseShiftEmbedded.h \
201 jakw 50
        algorithm/algorithmtools.h \
225 jakw 51
        SMVideoZoomWidget.h \
229 jakw 52
        SMLogDialog.h
1 jakw 53
 
54
SOURCES += main.cpp\
2 jakw 55
        SMScanner.cpp \
56
        SMVideoWidget.cpp \
4 jakw 57
        SMPointCloudWidget.cpp \
58
        camera/Camera.cpp \
23 jakw 59
        projector/ProjectorOpenGL.cpp \
4 jakw 60
        cvtools.cpp \
61
        SMCaptureWorker.cpp \
23 jakw 62
        rotationstage/RotationStage.cpp \
24 jakw 63
        SMPreferenceDialog.cpp \
159 jakw 64
        SMCalibrationWorker.cpp \
65
        #SMCalibrationWorkerArUco.cpp \
113 jakw 66
        SMCalibrationParameters.cpp \
67
        SMReconstructionWorker.cpp \
217 jakw 68
        #SMMeshingWorker.cpp \
113 jakw 69
        algorithm/AlgorithmGrayCode.cpp \
123 jakw 70
        algorithm/AlgorithmGrayCodeHorzVert.cpp \
128 jakw 71
        algorithm/AlgorithmLineShift.cpp \
162 raly 72
        algorithm/AlgorithmPhaseShiftThreeFreq.cpp \
192 jakw 73
        algorithm/AlgorithmPhaseShiftTwoFreq.cpp \
200 jakw 74
        algorithm/AlgorithmPhaseShiftTwoFreqHorzVert.cpp \
201 jakw 75
        algorithm/AlgorithmPhaseShiftEmbedded.cpp \
225 jakw 76
        SMVideoZoomWidget.cpp \
77
    SMLogDialog.cpp
1 jakw 78
 
4 jakw 79
FORMS    += SMScanner.ui \
113 jakw 80
        SMAboutDialog.ui \
225 jakw 81
        SMPreferenceDialog.ui \
82
    SMLogDialog.ui
2 jakw 83
 
41 jakw 84
INCLUDEPATH += camera/ projector/ algorithm/ triangulator/ rotationstage/ calibration/
2 jakw 85
 
86
 
4 jakw 87
# Operating System dependant linking and including
2 jakw 88
# Linux
89
unix:!macx {
90
    CONFIG += link_pkgconfig
248 jakw 91
 
92
    # OpenCV
93
    PKGCONFIG += opencv
94
    LIBS += -lopencv_ximgproc -lopencv_aruco
95
 
96
    # VTK 8
97
    INCLUDEPATH += /opt/vtk-opt/include/vtk-8.1
98
    LIBS += -L/opt/vtk-opt/lib -lvtkIOImage-8.1 -lvtkCommonExecutionModel-8.1 -lvtkCommonDataModel-8.1 -lvtkCommonMath-8.1 -lvtkCommonCore-8.1 -lvtkRenderingCore-8.1 -lvtkRenderingOpenGL2-8.1 -lvtkFiltersCore-8.1 -lvtkGUISupportQt-8.1
99
    QMAKE_RPATHDIR += /opt/vtk-opt/lib/
100
    QMAKE_RPATHLINKDIR += /opt/vtk-opt/lib
101
 
102
    # PCL
103
    INCLUDEPATH += /opt/pcl-opt/include/pcl-1.8
104
    LIBS += -lboost_system -L/opt/pcl-opt/lib -lpcl_visualization -lpcl_registration -lpcl_common -lpcl_features -lpcl_visualization -lpcl_io -lpcl_tracking -lpcl_filters -lpcl_sample_consensus -lpcl_surface -lpcl_search -lpcl_kdtree -lpcl_octree -lflann -lflann_cpp -lOpenNI -lOpenNI2
105
    #PKGCONFIG += pcl_common-1.8 pcl_visualization-1.8 pcl_search-1.8 pcl_filters-1.8 pcl_kdtree-1.8 pcl_tracking-1.8 pcl_tracking-1.8 pcl_sample_consensus-1.8 pcl_surface-1.8
106
    QMAKE_RPATHDIR += /opt/pcl-opt/lib/
107
    QMAKE_RPATHLINKDIR += /opt/pcl-opt/lib
108
 
109
    # Eigen
110
    PKGCONFIG += eigen3
111
 
196 jakw 112
    # Ceres
113
    CONFIG += c++11
217 jakw 114
    LIBS += -fopenmp # -ltbb -ltbbmalloc -ltbbmalloc_proxy
208 flgw 115
    LIBS += -lceres -lglog
116
    #LIBS += -lcholmod
231 jakw 117
    QMAKE_CXXFLAGS += -fopenmp
2 jakw 118
}
70 jakw 119
 
4 jakw 120
# Compile with system dependent OpenGL Context code
121
unix:!macx{
36 jakw 122
    SOURCES += projector/OpenGLContext.Xscreens.cpp
123
    LIBS += -lXxf86vm
248 jakw 124
 
125
    # OpenGL/X11
126
    PKGCONFIG += gl glu x11
2 jakw 127
}
128
 
8 jakw 129
# Compile with camera driver bindings
130
 
4 jakw 131
# Point Grey flycapture
132
unix:!macx:exists(/usr/include/flycapture/FlyCapture2.h){
133
    INCLUDEPATH += /usr/include/flycapture
134
    DEFINES += WITH_CAMERAPOINTGREY
135
    LIBS += -lflycapture
136
}
2 jakw 137
contains(DEFINES, WITH_CAMERAPOINTGREY) {
138
    HEADERS += camera/CameraPointGrey.h
139
    SOURCES += camera/CameraPointGrey.cpp
140
}
141
 
9 jakw 142
# Compile with rotation stage driver
143
SOURCES += rotationstage/ArcusPerformaxDriver.c
144
unix:!macx{
145
    PKGCONFIG += libusb-1.0
146
}