Subversion Repositories seema-scanner

Rev

Rev 2 | Rev 7 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 4
Line 14... Line 14...
14
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
14
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
15
 
15
 
16
TARGET = SMScanner
16
TARGET = SMScanner
17
TEMPLATE = app
17
TEMPLATE = app
18
 
18
 
-
 
19
HEADERS  += SMScanner.h \
-
 
20
        SMVideoWidget.h \
-
 
21
        SMPointCloudWidget.h \
-
 
22
        camera/Camera.h \
-
 
23
        projector/Projector.h \
-
 
24
        projector/OpenGLContext.h \
-
 
25
        codec/Codec.h \
-
 
26
        codec/CodecGrayCode.h \
-
 
27
        codec/CodecPhaseShift2x3.h \
-
 
28
        triangulator/Triangulator.h \
-
 
29
        cvtools.h \
-
 
30
        SMCalibrationParams.h \
-
 
31
        SMCaptureWorker.h \
-
 
32
        SMTriangulationWorker.h \
-
 
33
        SMPreferenceDialog.h
19
 
34
 
20
SOURCES += main.cpp\
35
SOURCES += main.cpp\
21
        SMScanner.cpp \
36
        SMScanner.cpp \
22
        SMVideoWidget.cpp \
37
        SMVideoWidget.cpp \
23
        SMPointCloudWidget.cpp
38
        SMPointCloudWidget.cpp \
-
 
39
        camera/Camera.cpp \
-
 
40
        codec/CodecGrayCode.cpp \
-
 
41
        codec/CodecPhaseShift2x3.cpp \
-
 
42
        triangulator/Triangulator.cpp \
-
 
43
        cvtools.cpp \
-
 
44
        SMCalibrationParams.cpp \
-
 
45
        SMCaptureWorker.cpp \
-
 
46
        SMTriangulationWorker.cpp \
-
 
47
        SMPreferenceDialog.cpp
-
 
48
 
24
 
49
 
25
HEADERS  += SMScanner.h \
50
FORMS    += SMScanner.ui \
26
        SMVideoWidget.h \
51
    SMAboutDialog.ui \
27
        SMPointCloudWidget.h
52
        SMPreferenceDialog.ui
28
 
53
 
29
FORMS    += SMScanner.ui
-
 
30
 
-
 
31
INCLUDEPATH += camera/ projector/
54
INCLUDEPATH += camera/ projector/ codec/ triangulator/
32
 
-
 
33
# Operating System dependant options
-
 
34
# Mac OS X
-
 
35
macx {
-
 
36
    CONFIG += objective_c
-
 
37
    OBJECTIVE_SOURCES += projector/OpenGLContext.Mac.mm
-
 
38
#    SOURCES += projector/OpenGLContext.GLFW.cpp
-
 
39
#    LIBS += -L/usr/local/lib/ -lglfw3
-
 
40
 
-
 
41
    INCLUDEPATH += /opt/local/include/vtk-5.10/
-
 
42
    LIBS += -framework Cocoa -framework OpenGL
-
 
43
    LIBS += -L/opt/local/lib/vtk-5.10/ -lQVTK -lvtkCommon -lvtkFiltering -lvtkRendering -lvtkIO -lvtkGraphics
-
 
44
    LIBS += -L/opt/local/lib/ -lboost_system-mt
-
 
45
    CONFIG += link_pkgconfig
-
 
46
    PKGCONFIG += opencv pcl_visualization-1.7 pcl_filters-1.7 pcl_search-1.7 pcl_registration-1.7
-
 
47
    DEFINES += BOOST_TT_HAS_OPERATOR_HPP_INCLUDED
-
 
48
 
55
 
49
    exists(/usr/local/include/dc1394/dc1394.h) {
-
 
50
        DEFINES += WITH_CAMERAIIDC
-
 
51
        LIBS += -ldc1394
-
 
52
    }
-
 
53
    exists(/Library/Frameworks/m3api.framework/m3api){
-
 
54
        DEFINES += WITH_CAMERAXIMEA
-
 
55
        INCLUDEPATH += /Library/Frameworks/m3api.framework/Headers/
-
 
56
        LIBS += -framework m3api
-
 
57
    }
-
 
58
}
-
 
59
 
56
 
-
 
57
# Operating System dependant linking and including
60
# Linux
58
# Linux
61
unix:!macx {
59
unix:!macx {
62
 
-
 
63
    CONFIG += link_pkgconfig
60
    CONFIG += link_pkgconfig
64
    LIBS += -lXxf86vm
-
 
65
    # Link VTK and Boost (no pkg-config)
61
    # Link VTK and Boost (no pkg-config)
66
    INCLUDEPATH += /usr/include/vtk-5.8/
62
    INCLUDEPATH += /usr/include/vtk-5.8/
67
    LIBS += -lQVTK -lvtkCommon -lvtkFiltering -lvtkRendering -lvtkIO -lvtkGraphics
63
    LIBS += -lQVTK -lvtkCommon -lvtkFiltering -lvtkRendering -lvtkIO -lvtkGraphics
68
    # PCL pkg-config workaround
64
    # PCL pkg-config workaround
69
    LIBS += -lboost_system -lpcl_visualization -lpcl_common -lpcl_io -lpcl_search -lpcl_surface
65
    LIBS += -lboost_system -lpcl_visualization -lpcl_common -lpcl_io -lpcl_search -lpcl_surface
70
    # PKG-config libs
66
    # PKG-config libs
71
    INCLUDEPATH += /usr/local/include/pcl-1.7 /usr/include/eigen3/
67
    INCLUDEPATH += /usr/local/include/pcl-1.7 /usr/include/eigen3/
72
    PKGCONFIG += gl glu x11 xrandr opencv pcl_registration-1.7 pcl_visualization-1.7 pcl_surface-1.7 pcl_search-1.7 pcl_filters-1.7 pcl_kdtree-1.7 pcl_tracking-1.7 flann eigen3
68
    PKGCONFIG += gl glu x11 xrandr opencv pcl_registration-1.7 pcl_visualization-1.7 pcl_surface-1.7 pcl_search-1.7 pcl_filters-1.7 pcl_kdtree-1.7 pcl_tracking-1.7 flann eigen3
73
 
-
 
74
    exists(/usr/include/ueye.h) {
-
 
75
        DEFINES += WITH_CAMERAIDSIMAGING
-
 
76
        LIBS += -lueye_api
-
 
77
    }
-
 
78
 
-
 
79
    exists(/usr/include/dc1394/dc1394.h) {
-
 
80
        DEFINES += WITH_CAMERAIIDC
-
 
81
        LIBS += -ldc1394
-
 
82
    }
-
 
83
 
-
 
84
    exists(/opt/XIMEA/include/xiApi.h){
-
 
85
        INCLUDEPATH += /opt/XIMEA/include
-
 
86
        DEFINES += WITH_CAMERAXIMEA
-
 
87
        LIBS += -lm3api
-
 
88
    }
-
 
89
    exists(/usr/include/flycapture/FlyCapture2.h){
-
 
90
        INCLUDEPATH += /usr/include/flycapture
-
 
91
        DEFINES += WITH_CAMERAPOINTGREY
-
 
92
        LIBS += -lflycapture
-
 
93
    }
-
 
94
}
69
}
95
 
-
 
96
# Windows
70
# Windows
97
win32 {
71
win32 {
98
    # Boost join
72
    # Boost join
99
    DEFINES += DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED
73
    DEFINES += DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED
100
 
74
 
101
    SOURCES += projector/OpenGLContext.Win.cpp
-
 
102
 
-
 
103
    # opencv
75
    # opencv
104
    INCLUDEPATH += "$$(OPENCV_INCLUDE_DIR)/" #C:\opencv\build\include
76
    INCLUDEPATH += "$$(OPENCV_INCLUDE_DIR)/" #C:\opencv\build\include
105
 
77
 
106
    CONFIG(debug,debug|release){
78
    CONFIG(debug,debug|release){
107
    #debug
79
    #debug
Line 203... Line 175...
203
            -lvtkjpeg \
175
            -lvtkjpeg \
204
            -lvtkexpat \
176
            -lvtkexpat \
205
            -lvtkzlib
177
            -lvtkzlib
206
    }
178
    }
207
 
179
 
-
 
180
}
208
    # uEye API
181
# Mac OS X
-
 
182
macx {
209
    exists("C:/Program Files/IDS/uEye/Develop/include/uEye.h"){
183
    INCLUDEPATH += /opt/local/include/vtk-5.10/
-
 
184
    LIBS += -L/opt/local/lib/vtk-5.10/ -lQVTK -lvtkCommon -lvtkFiltering -lvtkRendering -lvtkIO -lvtkGraphics
-
 
185
    LIBS += -L/opt/local/lib/ -lboost_system-mt
210
        DEFINES += WITH_CAMERAIDSIMAGING
186
    CONFIG += link_pkgconfig
211
        INCLUDEPATH += "C:/Program Files/IDS/uEye/Develop/include/"
187
    PKGCONFIG += opencv pcl_visualization-1.7 pcl_filters-1.7 pcl_search-1.7 pcl_registration-1.7
212
        LIBS += -L"C:/Program Files/IDS/uEye/Develop/Lib" -luEye_api_64
188
    DEFINES += BOOST_TT_HAS_OPERATOR_HPP_INCLUDED
213
    }
189
}
214
 
190
 
215
    # XIMEA API
-
 
216
    exists("C:/XIMEA/API/xiApi.h"){
-
 
217
        DEFINES += WITH_CAMERAXIMEA
-
 
218
        INCLUDEPATH += "C:/XIMEA/API"
-
 
219
        LIBS += -L"C:/XIMEA/API/x64" -lm3apiX64
-
 
220
    }
-
 
221
 
191
 
222
    # Point Grey API
-
 
223
    exists("C:/Program Files/Point Grey Research/FlyCapture2/include/FlyCapture2.h"){
192
# Compile with system dependent OpenGL Context code
224
        DEFINES += WITH_CAMERAPOINTGREY
193
unix:!macx{
225
        INCLUDEPATH += "C:/Program Files/Point Grey Research/FlyCapture2/include/"
194
    SOURCES += projector/OpenGLContext.Unix.cpp
226
        LIBS += -L"C:/Program Files/Point Grey Research/FlyCapture2/lib64" -lFlyCapture2
-
 
227
    }
195
    LIBS += -lXxf86vm
228
}
196
}
-
 
197
win32{
-
 
198
    SOURCES += projector/OpenGLContext.Win.cpp
-
 
199
}
-
 
200
macx{
-
 
201
    CONFIG += objective_c
-
 
202
    OBJECTIVE_SOURCES += projector/OpenGLContext.Mac.mm
-
 
203
    LIBS += -framework Cocoa -framework OpenGL
-
 
204
#    SOURCES += projector/OpenGLContext.GLFW.cpp
-
 
205
#    LIBS += -L/usr/local/lib/ -lglfw3
-
 
206
}
-
 
207
 
229
 
208
 
230
# Compile with specific camera driver bindings
209
# Compile with specific camera driver bindings
231
# libdc1394
210
# libdc1394
-
 
211
unix:!macx:exists(/usr/include/dc1394/dc1394.h) {
-
 
212
    DEFINES += WITH_CAMERAIIDC
-
 
213
    LIBS += -ldc1394
-
 
214
}
-
 
215
macx:exists(/usr/local/include/dc1394/dc1394.h) {
-
 
216
    DEFINES += WITH_CAMERAIIDC
-
 
217
    LIBS += -ldc1394
-
 
218
}
232
contains(DEFINES, WITH_CAMERAIIDC) {
219
contains(DEFINES, WITH_CAMERAIIDC) {
233
    HEADERS += camera/CameraIIDC.h
220
    HEADERS += camera/CameraIIDC.h
234
    SOURCES += camera/CameraIIDC.cpp
221
    SOURCES += camera/CameraIIDC.cpp
235
}
222
}
236
# libueye
223
# IDS Imaging libueye
-
 
224
unix:!macx:exists(/usr/include/ueye.h) {
-
 
225
    DEFINES += WITH_CAMERAIDSIMAGING
-
 
226
    LIBS += -lueye_api
-
 
227
}
-
 
228
win32:exists("C:/Program Files/IDS/uEye/Develop/include/uEye.h"){
-
 
229
    DEFINES += WITH_CAMERAIDSIMAGING
-
 
230
    INCLUDEPATH += "C:/Program Files/IDS/uEye/Develop/include/"
-
 
231
    LIBS += -L"C:/Program Files/IDS/uEye/Develop/Lib" -luEye_api_64
-
 
232
}
237
contains(DEFINES, WITH_CAMERAIDSIMAGING) {
233
contains(DEFINES, WITH_CAMERAIDSIMAGING) {
238
    HEADERS += camera/CameraIDSImaging.h
234
    HEADERS += camera/CameraIDSImaging.h
239
    SOURCES += camera/CameraIDSImaging.cpp
235
    SOURCES += camera/CameraIDSImaging.cpp
240
}
236
}
241
# libm3api
237
# XIMEA libm3api
-
 
238
unix:!macx:exists(/opt/XIMEA/include/xiApi.h){
-
 
239
    INCLUDEPATH += /opt/XIMEA/include
-
 
240
    DEFINES += WITH_CAMERAXIMEA
-
 
241
    LIBS += -lm3api
-
 
242
}
-
 
243
win32:exists("C:/XIMEA/API/xiApi.h"){
-
 
244
    DEFINES += WITH_CAMERAXIMEA
-
 
245
    INCLUDEPATH += "C:/XIMEA/API"
-
 
246
    LIBS += -L"C:/XIMEA/API/x64" -lm3apiX64
-
 
247
}
-
 
248
macx:exists(/Library/Frameworks/m3api.framework/m3api){
-
 
249
    DEFINES += WITH_CAMERAXIMEA
-
 
250
    INCLUDEPATH += /Library/Frameworks/m3api.framework/Headers/
-
 
251
    LIBS += -framework m3api
-
 
252
}
242
contains(DEFINES, WITH_CAMERAXIMEA) {
253
contains(DEFINES, WITH_CAMERAXIMEA) {
243
    HEADERS += camera/CameraXIMEA.h
254
    HEADERS += camera/CameraXIMEA.h
244
    SOURCES += camera/CameraXIMEA.cpp
255
    SOURCES += camera/CameraXIMEA.cpp
245
}
256
}
246
# flycapture
257
# Point Grey flycapture
-
 
258
unix:!macx:exists(/usr/include/flycapture/FlyCapture2.h){
-
 
259
    INCLUDEPATH += /usr/include/flycapture
-
 
260
    DEFINES += WITH_CAMERAPOINTGREY
-
 
261
    LIBS += -lflycapture
-
 
262
}
-
 
263
win32:exists("C:/Program Files/Point Grey Research/FlyCapture2/include/FlyCapture2.h"){
-
 
264
    DEFINES += WITH_CAMERAPOINTGREY
-
 
265
    INCLUDEPATH += "C:/Program Files/Point Grey Research/FlyCapture2/include/"
-
 
266
    LIBS += -L"C:/Program Files/Point Grey Research/FlyCapture2/lib64" -lFlyCapture2
-
 
267
}
247
contains(DEFINES, WITH_CAMERAPOINTGREY) {
268
contains(DEFINES, WITH_CAMERAPOINTGREY) {
248
    HEADERS += camera/CameraPointGrey.h
269
    HEADERS += camera/CameraPointGrey.h
249
    SOURCES += camera/CameraPointGrey.cpp
270
    SOURCES += camera/CameraPointGrey.cpp
250
}
271
}
251
 
272
 
-
 
273
 
-
 
274
# Compile with direct projector APIs
-
 
275
# LC3000 Api
-
 
276
DEFINES += WITH_LC3000API
-
 
277
HEADERS += projector/LC3000API/lcr_cmd.h
-
 
278
SOURCES += projector/ProjectorLC3000.cpp \
-
 
279
        projector/LC3000API/lcr_cmd.cpp \
-
 
280
        projector/LC3000API/lcr_packetizer.cpp \
-
 
281
        projector/LC3000API/tcp_client.cpp
-
 
282
 
-
 
283
## LC4500 Api
-
 
284
DEFINES += WITH_LC4500API
-
 
285
HEADERS += projector/LC4500API/API.h
-
 
286
SOURCES += projector/ProjectorLC4500.cpp \
-
 
287
        projector/LC4500API/API.cpp \
-
 
288
        projector/LC4500API/usb.cpp
-
 
289
macx:SOURCES += projector/LC4500API/hid.Mac.c
-
 
290
unix:!macx{
-
 
291
    SOURCES += projector/LC4500API/hid.Unix.c
-
 
292
    CONFIG += link_pkgconfig
-
 
293
    PKGCONFIG += libudev
-
 
294
}
-
 
295
win32{
-
 
296
    SOURCES += projector/LC4500API/hid.Win.c
-
 
297
    LIBS += -lsetupapi
-
 
298
}
-
 
299
 
-
 
300
 
-
 
301