petrack.pro 24.6 KB
Newer Older
d.kilic's avatar
d.kilic committed
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
# wichtig: gelinkte dynamische libraries muessen auch in PATH liegen (Systemsteuerung...), sonst kommt aufruf direkt zurueck - cygwin neu starten!!!
# welche dll bei Aufruf genommen werden koennen ueber Programm DEPENDENCY WALKER herausbekommen werden

# um eine .pro Datei fuer mehrere Rechner nutzen zu koennen
# die Variable hostname muss auf rechner von console einmalig mit "qmake -set hostname zam852" gesetzt werden (Abfrage aller Var mit qmake -query)
# hostname = $$[hostname]
hostname = $$system(hostname)
unix:hostname = $${QMAKE_HOST.name}
message($${hostname})
!build_pass:message(Generating Makefile for ($$hostname)!)

TEMPLATE = app
CONFIG += console # noetig, damit stdout angezeigt wird
#CONFIG += debug_and_release # scheint default zu sein!!! build_all
#CONFIG += build_all

QT += opengl # // wenn opengl widget etc genutzt werden soll
# opengl qt warn_on
QT += xml # // wenn xml benoetigt werden soll
QT += core
#QT += gui
QT += widgets
QT += printsupport

# windows - The target is a Win32 window application (app only). The proper include paths,compiler flags and libraries will automatically be added to the project.
# console - The target is a Win32 console application (app only). The proper include paths, compiler flags and libraries will automatically be added to the project.
# dll - The target is a shared object/DLL.The proper include paths, compiler flags and libraries will automatically be added to the project.
# staticlib - The target is a static library (lib only). The proper compiler flags will automatically be added to the project.

TARGET = petrack
INCLUDEPATH += include
# default settings:
STEREO = false # true / false
AVI = false # true / false
QWT = true # true / false
LIBELAS = true

contains(hostname, [zZ][aA][mM]852) {
#Hermes rechner #########################################################################################
40
41
  STEREO = false # true / false
  DEFINES += STEREO_DISABLED
d.kilic's avatar
d.kilic committed
42
43
  AVI = true # true / false
  #CVPATH = "C:/OpenCV-2.2.0/bin"
44
  CVPATH = "../petrack/3rdparty/windows/opencv-4.2.0_64bit"
d.kilic's avatar
d.kilic committed
45
46
47
48
49
50
51
52
53
54
55
  CVVERSION = "240"
  LIBS += -llibopencv_core$${CVVERSION} -llibopencv_highgui$${CVVERSION} -llibopencv_imgproc$${CVVERSION} -llibopencv_calib3d$${CVVERSION} -llibopencv_video$${CVVERSION} -llibopencv_legacy$${CVVERSION} # -lcv$${CVVERSION} -lcvaux$${CVVERSION}
#  CVPATH = "C:/Programme/OpenCV1.2"
#  CVVERSION = "120"
#  CVPATH = "C:/OpenCV2.1"
#  CVVERSION = "210"
#  QWTPATH = "C:/Programme/qwt-5.2.0"
  QWTPATH = "C:/Qwt-5.2.0"
  PGRPATH = "C:/Programme/Point Grey Research/Triclops Stereo Vision SDK"
  # noetig fuer qt 5 um u.a. qprinter zu finden
  QT += printsupport
d.kilic's avatar
d.kilic committed
56
57
QMAKE_CXXFLAGS += -fpermissive

d.kilic's avatar
d.kilic committed
58
59
60
61
} else:contains(hostname, [zZ][aA][mM]460) {  #.zam.kfa-juelich.de
# Mac Maik #########################################################################################
  QMAKE_MAC_SDK = macosx10.12
  #CVVERSION = ""
62
63
  CVVERSION = "420"
  CV_MAJOR_VERSION = "4"
d.kilic's avatar
d.kilic committed
64
65
66
67
68
69
70
71
72
73
74
75
76

  #AVI = true # false

  QWTPATH = "/Users/boltes/Applications/qwt-6.1.3/build-qwt-Desktop_Qt_5_7_0_clang_64bit2-Release/lib/qwt.framework/Versions/6"
  INCLUDEPATH += $${QWTPATH}/Headers
  LIBS += -L$${QWTPATH}/
  # spaeter:
  # install_name_tool -change qwt.framework/Versions/6/qwt /Users/boltes/Applications/qwt-6.1.3/build-qwt-Desktop_Qt_5_7_0_clang_64bit2-Release/lib/qwt.framework/Versions/6/qwt ./petrack.app/Contents/MacOS/petrack

  QMAKE_LFLAGS += -F/Users/boltes/Applications/qwt-6.1.3/build-qwt-Desktop_Qt_5_7_0_clang_64bit2-Release/lib
  #LIBS += -framework qwt

  #CVPATH = "/Users/boltes/Applications/opencv-3.1.0/release"
77
  CVPATH = "../petrack/3rdparty/windows/opencv-4.2.0"
d.kilic's avatar
d.kilic committed
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96

  #INCLUDEPATH += /usr/local/include
  #INCLUDEPATH += /usr/local/include/opencv
  #INCLUDEPATH += /usr/local/include/opencv2
  INCLUDEPATH += $${CVPATH}/include/
  INCLUDEPATH += $${CVPATH}/include/opencv
  INCLUDEPATH += $${CVPATH}/include/opencv2
  #INCLUDEPATH += /usr/local/Cellar/opencv3/3.1.0_3/include/

  #PGRPATH = "/home/zam/salden/libs/Triclops/release"
  LIBS += -lopencv_core \
          -lopencv_highgui \
          -lopencv_imgproc \
          -lopencv_calib3d \
          -lopencv_imgcodecs \
          -lopencv_videoio \
          -lopencv_video #\
       #   -l opencv_ffmpeg \
       #   -lopencv_legacy
d.kilic's avatar
d.kilic committed
97
QMAKE_CXXFLAGS += -fpermissive
d.kilic's avatar
d.kilic committed
98
99
} else:contains(hostname, arne-laptop) {
# Laptop Daniel ##########################################################################################
100
101
  STEREO = false # true / false
  DEFINES += STEREO_DISABLED
d.kilic's avatar
d.kilic committed
102
103
104
105
106
107

  #PGRPATH = "C:/Program Files/Point Grey Research/Triclops Stereo Vision SDK"

  CONFIG(debug, debug|release) {
      # only debug
        PGRPATH = "../trunk/3rdparty/windows/triclops-3.4"
108
109
        CVPATH = "../petrack/3rdparty/windows/opencv-4.2.0_64bit"
        QWTPATH = "../petrack/3rdparty/windows/Qwt-6.1.4_64bit"
d.kilic's avatar
d.kilic committed
110
111
112
113

    } else {
        # only release
        PGRPATH = "../trunk/3rdparty/windows/triclops-3.4"
114
115
        CVPATH = "../petrack/3rdparty/windows/opencv-4.2.0_64bit"
        QWTPATH = "../petrack/3rdparty/windows/Qwt-6.1.4_64bit"
d.kilic's avatar
d.kilic committed
116
117
118
    }
  #CVPATH = "%OPENCV_DIR%"
  #CVPATH = "C:\Program Files (x86)\OpenCV\3.0.0\build4qt5\install"
119
120
  CVVERSION = "420"
  CV_MAJOR_VERSION = "4"
d.kilic's avatar
d.kilic committed
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141

  # to switch between version 2.4.10 and 3.0.0 you have to update your OPENCV_DIR environment variable to the specific path

  #CVPATH = "C:/Program Files (x86)/OpenCV/2.4.10/build"
  #CVVERSION = "2410"

  INCLUDEPATH += $${CVPATH}/include
  INCLUDEPATH += $${CVPATH}/include/opencv
  INCLUDEPATH += $${CVPATH}/include/opencv2

  #QWTPATH = "C:/Program Files (x86)/Qwt/Qwt-5.2.3"
  #QWTPATH = "C:\Qwt-6.1.2"
  INCLUDEPATH += $${QWTPATH}/include


  #STEREO = false # true / false
  AVI = false # true / false
  #QWT = false # true / false
  #LIBELAS = false

  # fuer 64 bit -lopencv_ffmpeg_64
142
143
  LIBS += -L$${CVPATH}/x64/mingw/bin \
          -lopencv_core$${CVVERSION} \
d.kilic's avatar
d.kilic committed
144
145
146
147
          -lopencv_highgui$${CVVERSION} \
          -lopencv_imgproc$${CVVERSION} \
          -lopencv_calib3d$${CVVERSION} \
          -lopencv_video$${CVVERSION} \
d.kilic's avatar
d.kilic committed
148
          -lopencv_videoio_ffmpeg$${CVVERSION}_64\
149
150
151
          -lopencv_aruco$${CVVERSION} \
          -lopencv_videoio$${CVVERSION} \
          -lopencv_imgcodecs$${CVVERSION}
d.kilic's avatar
d.kilic committed
152
153
154
  # QMAKE_CXXFLAGS += -march=i686
QMAKE_CXXFLAGS += -fpermissive

d.kilic's avatar
d.kilic committed
155
156
} else:contains(hostname, [zZ][aA][mM]197) {
# Laptop Daniel ##########################################################################################
157
158
  STEREO = false # true / false
  DEFINES += STEREO_DISABLED
d.kilic's avatar
d.kilic committed
159
160
161
162
163
164

  #PGRPATH = "C:/Program Files/Point Grey Research/Triclops Stereo Vision SDK"

  CONFIG(debug, debug|release) {
      # only debug
        PGRPATH = "../trunk/3rdparty/windows/triclops-3.4"
165
166
        CVPATH = "../petrack/3rdparty/windows/opencv-4.2.0_64bit"
        QWTPATH = "../petrack/3rdparty/windows/Qwt-6.1.4_64bit"
d.kilic's avatar
d.kilic committed
167
168
169
170

    } else {
        # only release
        PGRPATH = "../trunk/3rdparty/windows/triclops-3.4"
171
172
        CVPATH = "../petrack/3rdparty/windows/opencv-4.2.0_64bit"
        QWTPATH = "../petrack/3rdparty/windows/Qwt-6.1.4_64bit"
d.kilic's avatar
d.kilic committed
173
174
175
    }
  #CVPATH = "%OPENCV_DIR%"
  #CVPATH = "C:\Program Files (x86)\OpenCV\3.0.0\build4qt5\install"
176
177
  CVVERSION = "420"
  CV_MAJOR_VERSION = "4"
d.kilic's avatar
d.kilic committed
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198

  # to switch between version 2.4.10 and 3.0.0 you have to update your OPENCV_DIR environment variable to the specific path

  #CVPATH = "C:/Program Files (x86)/OpenCV/2.4.10/build"
  #CVVERSION = "2410"

  INCLUDEPATH += $${CVPATH}/include
  INCLUDEPATH += $${CVPATH}/include/opencv
  INCLUDEPATH += $${CVPATH}/include/opencv2

  #QWTPATH = "C:/Program Files (x86)/Qwt/Qwt-5.2.3"
  #QWTPATH = "C:\Qwt-6.1.2"
  INCLUDEPATH += $${QWTPATH}/include


  #STEREO = false # true / false
  AVI = false # true / false
  #QWT = false # true / false
  #LIBELAS = false

  # fuer 64 bit -lopencv_ffmpeg_64
199
200
  LIBS += -L$${CVPATH}/x64/mingw/bin \
          -lopencv_core$${CVVERSION} \
d.kilic's avatar
d.kilic committed
201
202
203
204
          -lopencv_highgui$${CVVERSION} \
          -lopencv_imgproc$${CVVERSION} \
          -lopencv_calib3d$${CVVERSION} \
          -lopencv_video$${CVVERSION} \
d.kilic's avatar
d.kilic committed
205
          -lopencv_videoio_ffmpeg$${CVVERSION}_64\
206
207
208
          -lopencv_aruco$${CVVERSION} \
          -lopencv_videoio$${CVVERSION} \
          -lopencv_imgcodecs$${CVVERSION}
d.kilic's avatar
d.kilic committed
209
210
211
  # QMAKE_CXXFLAGS += -march=i686
QMAKE_CXXFLAGS += -fpermissive

212
213
} else:contains(hostname, ias7185) {
  # imotion laptop
214
  DEFINES += STEREO_DISABLED
d.kilic's avatar
d.kilic committed
215
216

  # PointGray
217
  PGRPATH = "../petrack/3rdparty/windows/triclops-3.4"
d.kilic's avatar
d.kilic committed
218
  #PGRPATH = "C:/Program Files (x86)/Point Grey Research/Triclops Stereo Vision SDK"
d.kilic's avatar
d.kilic committed
219
220
221
  # OpenCV
  #CVPATH = "C:/OpenCV/opencv300/build/install"
  #CVPATH = "3rdparty/windows/opencv-3.1.0"
222
  CVPATH = "../petrack/3rdparty/windows/opencv-4.2.0_64bit"
223
224
  CVVERSION = "420"
  CV_MAJOR_VERSION = "4"
d.kilic's avatar
d.kilic committed
225
226
227
228
229
230
231

  # to switch between version 2.4.10 and 3.0.0 you have to update your OPENCV_DIR environment variable to the specific path

  INCLUDEPATH += $${CVPATH}/include
  INCLUDEPATH += $${CVPATH}/include/opencv
  INCLUDEPATH += $${CVPATH}/include/opencv2

232
  QWTPATH = "../petrack/3rdparty/windows/Qwt-6.1.4_64bit"
d.kilic's avatar
d.kilic committed
233
234
235
  #QWTPATH = "D:/petrack/trunk/3rdparty/windows/qwt-6.1.2"
  INCLUDEPATH += $${QWTPATH}/include

236
  STEREO = false # true / false
d.kilic's avatar
d.kilic committed
237
238
239
240
241
  AVI = false # true / false
  #QWT = false # true / false
  #LIBELAS = false

  # fuer 64 bit -lopencv_ffmpeg_64
242
243
  LIBS += -L$${CVPATH}/x64/mingw/bin \
          -lopencv_core$${CVVERSION} \
d.kilic's avatar
d.kilic committed
244
245
246
247
          -lopencv_highgui$${CVVERSION} \
          -lopencv_imgproc$${CVVERSION} \
          -lopencv_calib3d$${CVVERSION} \
          -lopencv_video$${CVVERSION} \
d.kilic's avatar
d.kilic committed
248
          -lopencv_videoio_ffmpeg$${CVVERSION}_64\
249
250
251
          -lopencv_aruco$${CVVERSION} \
          -lopencv_videoio$${CVVERSION} \
          -lopencv_imgcodecs$${CVVERSION}
d.kilic's avatar
d.kilic committed
252
253
254
  # QMAKE_CXXFLAGS += -march=i686
QMAKE_CXXFLAGS += -fpermissive

255
256
} else:contains(hostname, ias7176) {
  # Deniz 32-Bit
257
  DEFINES += STEREO_DISABLED
d.kilic's avatar
d.kilic committed
258
259
260
261

  # PointGray
  PGRPATH = "../petrack/3rdparty/windows/triclops-3.4"
  #PGRPATH = "C:/Program Files (x86)/Point Grey Research/Triclops Stereo Vision SDK"
Ann Katrin's avatar
Ann Katrin committed
262
263
264
  # OpenCV
  #CVPATH = "C:/OpenCV/opencv300/build/install"
  #CVPATH = "3rdparty/windows/opencv-3.1.0"
265
  CVPATH = "../petrack/3rdparty/windows/opencv-4.2.0_64bit"
266
267
  CVVERSION = "420"
  CV_MAJOR_VERSION = "4"
Ann Katrin's avatar
Ann Katrin committed
268
269
270
271
272
273
274

  # to switch between version 2.4.10 and 3.0.0 you have to update your OPENCV_DIR environment variable to the specific path

  INCLUDEPATH += $${CVPATH}/include
  INCLUDEPATH += $${CVPATH}/include/opencv
  INCLUDEPATH += $${CVPATH}/include/opencv2

275
  QWTPATH = "../petrack/3rdparty/windows/Qwt-6.1.4_64bit"
Ann Katrin's avatar
Ann Katrin committed
276
277
278
  #QWTPATH = "D:/petrack/trunk/3rdparty/windows/qwt-6.1.2"
  INCLUDEPATH += $${QWTPATH}/include

279
  STEREO = false # true / false
Ann Katrin's avatar
Ann Katrin committed
280
281
282
283
  AVI = false # true / false
  #QWT = false # true / false
  #LIBELAS = false

284
285
286
287
288
289
290
291
292
293


#  CONFIG(debug, debug|release){
#      # fuer 64 bit -lopencv_ffmpeg_64
#      LIBS += -L$${CVPATH}/x64/mingw/bin \
#              -lopencv_core$${CVVERSION}d \
#              -lopencv_highgui$${CVVERSION}d \
#              -lopencv_imgproc$${CVVERSION}d \
#              -lopencv_calib3d$${CVVERSION}d \
#              -lopencv_video$${CVVERSION}d \
d.kilic's avatar
d.kilic committed
294
#              -lopencv_videoio_ffmpeg$${CVVERSION}_64\
295
296
297
#              -lopencv_aruco$${CVVERSION}d \
#              -lopencv_videoio$${CVVERSION}d \
#              -lopencv_imgcodecs$${CVVERSION}d
d.kilic's avatar
d.kilic committed
298
#      # QMAKE_CXXFLAGS += -march=i686
299
300
301
302
303
304
305
306
#  } else{
      # fuer 64 bit -lopencv_ffmpeg_64
      LIBS += -L$${CVPATH}/x64/mingw/bin \
              -lopencv_core$${CVVERSION} \
              -lopencv_highgui$${CVVERSION} \
              -lopencv_imgproc$${CVVERSION} \
              -lopencv_calib3d$${CVVERSION} \
              -lopencv_video$${CVVERSION} \
d.kilic's avatar
d.kilic committed
307
              -lopencv_videoio_ffmpeg$${CVVERSION}_64\
308
309
310
              -lopencv_aruco$${CVVERSION} \
              -lopencv_videoio$${CVVERSION} \
              -lopencv_imgcodecs$${CVVERSION}
d.kilic's avatar
d.kilic committed
311
      ## QMAKE_CXXFLAGS += -march=i686
312
313
314
QMAKE_CXXFLAGS += -fpermissive
#  }

Ann Katrin's avatar
Ann Katrin committed
315
} else:contains(hostname, ias7171) {
316
  # Ann Katrin 32-Bit
317
318
319
320
321
322
323
324
  DEFINES += STEREO_DISABLED

  # PointGray
  PGRPATH = "../petrack/3rdparty/windows/triclops-3.4"
  #PGRPATH = "C:/Program Files (x86)/Point Grey Research/Triclops Stereo Vision SDK"
  # OpenCV
  #CVPATH = "C:/OpenCV/opencv300/build/install"
  #CVPATH = "3rdparty/windows/opencv-3.1.0"
325
  CVPATH = "../petrack/3rdparty/windows/opencv-4.2.0_64bit"
326
327
328
329
330
331
332
333
334
  CVVERSION = "420"
  CV_MAJOR_VERSION = "4"

  # to switch between version 2.4.10 and 3.0.0 you have to update your OPENCV_DIR environment variable to the specific path

  INCLUDEPATH += $${CVPATH}/include
  INCLUDEPATH += $${CVPATH}/include/opencv
  INCLUDEPATH += $${CVPATH}/include/opencv2

335
  QWTPATH = "../petrack/3rdparty/windows/Qwt-6.1.4_64bit"
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
  #QWTPATH = "D:/petrack/trunk/3rdparty/windows/qwt-6.1.2"
  INCLUDEPATH += $${QWTPATH}/include

  STEREO = false # true / false
  AVI = false # true / false
  #QWT = false # true / false
  #LIBELAS = false

  # fuer 64 bit -lopencv_ffmpeg_64
  LIBS += -L$${CVPATH}/x64/mingw/bin \
          -lopencv_core$${CVVERSION} \
          -lopencv_highgui$${CVVERSION} \
          -lopencv_imgproc$${CVVERSION} \
          -lopencv_calib3d$${CVVERSION} \
          -lopencv_video$${CVVERSION} \
d.kilic's avatar
d.kilic committed
351
          -lopencv_videoio_ffmpeg$${CVVERSION}_64\
352
353
354
          -lopencv_aruco$${CVVERSION} \
          -lopencv_videoio$${CVVERSION} \
          -lopencv_imgcodecs$${CVVERSION}
d.kilic's avatar
d.kilic committed
355
356
357
  # QMAKE_CXXFLAGS += -march=i686
QMAKE_CXXFLAGS += -fpermissive

358
359
360
}else:contains(hostname, ias7160) {
  # Test Laptop 32-Bit
  DEFINES += STEREO_DISABLED
Ann Katrin's avatar
Ann Katrin committed
361
362
363
364

  # PointGray
  PGRPATH = "../petrack/3rdparty/windows/triclops-3.4"
  #PGRPATH = "C:/Program Files (x86)/Point Grey Research/Triclops Stereo Vision SDK"
d.kilic's avatar
d.kilic committed
365
366
367
  # OpenCV
  #CVPATH = "C:/OpenCV/opencv300/build/install"
  #CVPATH = "3rdparty/windows/opencv-3.1.0"
368
  CVPATH = "../petrack/3rdparty/windows/opencv-4.2.0_64bit"
369
370
  CVVERSION = "420"
  CV_MAJOR_VERSION = "4"
d.kilic's avatar
d.kilic committed
371
372
373
374
375
376
377

  # to switch between version 2.4.10 and 3.0.0 you have to update your OPENCV_DIR environment variable to the specific path

  INCLUDEPATH += $${CVPATH}/include
  INCLUDEPATH += $${CVPATH}/include/opencv
  INCLUDEPATH += $${CVPATH}/include/opencv2

378
  QWTPATH = "../petrack/3rdparty/windows/Qwt-6.1.4_64bit"
d.kilic's avatar
d.kilic committed
379
380
381
  #QWTPATH = "D:/petrack/trunk/3rdparty/windows/qwt-6.1.2"
  INCLUDEPATH += $${QWTPATH}/include

382
  STEREO = false # true / false
d.kilic's avatar
d.kilic committed
383
384
385
386
387
  AVI = false # true / false
  #QWT = false # true / false
  #LIBELAS = false

  # fuer 64 bit -lopencv_ffmpeg_64
388
389
  LIBS += -L$${CVPATH}/x64/mingw/bin \
          -lopencv_core$${CVVERSION} \
d.kilic's avatar
d.kilic committed
390
391
392
393
          -lopencv_highgui$${CVVERSION} \
          -lopencv_imgproc$${CVVERSION} \
          -lopencv_calib3d$${CVVERSION} \
          -lopencv_video$${CVVERSION} \
d.kilic's avatar
d.kilic committed
394
          -lopencv_videoio_ffmpeg$${CVVERSION}_64\
395
396
397
          -lopencv_aruco$${CVVERSION} \
          -lopencv_videoio$${CVVERSION} \
          -lopencv_imgcodecs$${CVVERSION}
d.kilic's avatar
d.kilic committed
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
  # QMAKE_CXXFLAGS += -march=i686
QMAKE_CXXFLAGS += -fpermissive

}else:contains(hostname, ias7169) {
  # Deniz Laptop
  DEFINES += STEREO_DISABLED

  # PointGray
  PGRPATH = "../petrack/3rdparty/windows/triclops-3.4"
  #PGRPATH = "C:/Program Files (x86)/Point Grey Research/Triclops Stereo Vision SDK"
  # OpenCV
  #CVPATH = "C:/OpenCV/opencv300/build/install"
  #CVPATH = "3rdparty/windows/opencv-3.1.0"
  CVPATH = "../petrack/3rdparty/windows/opencv-4.2.0_64bit"
  CVVERSION = "420"
  CV_MAJOR_VERSION = "4"

  # to switch between version 2.4.10 and 3.0.0 you have to update your OPENCV_DIR environment variable to the specific path

  INCLUDEPATH += $${CVPATH}/include
  INCLUDEPATH += $${CVPATH}/include/opencv
  INCLUDEPATH += $${CVPATH}/include/opencv2

  QWTPATH = "../petrack/3rdparty/windows/Qwt-6.1.4_64bit"
  #QWTPATH = "D:/petrack/trunk/3rdparty/windows/qwt-6.1.2"
  INCLUDEPATH += $${QWTPATH}/include

  STEREO = false # true / false
  AVI = false # true / false
  #QWT = false # true / false
  #LIBELAS = false

  # fuer 64 bit -lopencv_ffmpeg_64
  LIBS += -L$${CVPATH}/x64/mingw/bin \
          -lopencv_core$${CVVERSION} \
          -lopencv_highgui$${CVVERSION} \
          -lopencv_imgproc$${CVVERSION} \
          -lopencv_calib3d$${CVVERSION} \
          -lopencv_video$${CVVERSION} \
          -lopencv_videoio_ffmpeg$${CVVERSION}_64\
          -lopencv_aruco$${CVVERSION} \
          -lopencv_videoio$${CVVERSION} \
          -lopencv_imgcodecs$${CVVERSION}
  # QMAKE_CXXFLAGS += -march=i686
QMAKE_CXXFLAGS += -fpermissive
443

d.kilic's avatar
d.kilic committed
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
}else {
  message(Host unknown for configuration!)
}

# OPENCV #########################################################################################################################

#Betriebssystemweiche
win32 {
     message("Build for Windows.")
     DEFINES += WINDOWS
     INCLUDEPATH += $${CVPATH}/include
     INCLUDEPATH += $${CVPATH}/include/opencv
     INCLUDEPATH += $${CVPATH}/include/opencv2
     QMAKE_LIBDIR += $${CVPATH}/bin
     QMAKE_LIBDIR += $${CVPATH}/x86/mingw/bin

}
macx {
     message("Build for Mac.")
     DEFINES += MAC
     INCLUDEPATH += $${CVPATH}/include
     INCLUDEPATH += $${CVPATH}/include/opencv
     INCLUDEPATH += $${CVPATH}/include/opencv2

     QMAKE_LIBDIR += $${CVPATH}/lib
     QMAKE_LIBDIR += /usr/local/lib

}
unix:!macx {
     message("Build for Unix.")
     DEFINES += UNIX
     INCLUDEPATH += $${CVPATH}/include
     INCLUDEPATH += $${CVPATH}/include/opencv
     INCLUDEPATH += $${CVPATH}/include/opencv2

     QMAKE_LIBDIR += $${QWTPATH}/lib
     QMAKE_LIBDIR += /usr/local/lib
     LIBS += -L$${QWTPATH}/lib
}

# OPENCV  ########################################################################################################################

#  LIBS += -lopencv_core$${CVVERSION} \
#          -lopencv_highgui$${CVVERSION} \
#          -lopencv_imgproc$${CVVERSION} \
#          -lopencv_calib3d$${CVVERSION} \
#          -lopencv_video$${CVVERSION} \
#          -lopencv_ffmpeg$${CVVERSION}
#    contains(CV_MAJOR_VERSION,3){
#      message("Build with OpenCV 3.0.0")
#      LIBS += -lopencv_videoio$${CVVERSION} \
#              -lopencv_imgcodecs$${CVVERSION}
d.kilic's avatar
d.kilic committed
496
#      # QMAKE_CXXFLAGS += -march=i686
d.kilic's avatar
d.kilic committed
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
#    }else {
#      message("Build with OpenCV 2.x.x")
#      LIBS += -lopencv_legacy$${CVVERSION}
#
#    }

# LIBELAS #########################################################################################################################

#fuer libelas noetig:
$$LIBELAS {
    !build_pass:message(LIBELAS enabled!)
    DEFINES += LIBELAS
    QMAKE_CXXFLAGS += -msse3

    HEADERS += include/libelas/elasDescriptor.h \
        include/libelas/elas.h \
        include/libelas/elasFilter.h \
        include/libelas/elasMatrix.h \
        include/libelas/elasTriangle.h \
        include/libelas/elasImage.h \
        include/libelas/elasTimer.h
    SOURCES += src/libelas/elasDescriptor.cpp \
        src/libelas/elas.cpp \
        src/libelas/elasFilter.cpp \
        src/libelas/elasMatrix.cpp \
        src/libelas/elasTriangle.cpp
}


# QWT #########################################################################################################################
# zur Analyse der Daten / Analyse-Tab + Farbcode auf Marker in Kasernen-Versuchen

$$QWT {
    # DIE ENTKOPPLUNG VON QWT IST NICHT FERTIG IMPLEMENTIERT
    !build_pass:message(QWT (analysis) enabled!)
    DEFINES += QWT

    # in qwt.../install steht, dass folgendes gesetzt werden muss - insbesondere wegen debug/release mischungs problem
    DEFINES += QWT_DLL

    INCLUDEPATH += $${QWTPATH}/include

    win32:QMAKE_LIBDIR += $${QWTPATH}/lib
    unix:!macx:QMAKE_LIBDIR += $${QWTPATH}/lib
    # mgl QMAKE_LFLAGS_DEBUG setzen, um qwt5 fuer rlease und debug richtig nutzen!
    # QMAKE_LFLAGS_DEBUG += -lqwtd5
    # QMAKE_LFLAGS_RELEASE += -lqwt5
    #unix:QMAKE_LFLAGS_RPATH += -L$${QWTPATH}/lib
    #unix:LIBS += -lqwt
    CONFIG(debug, debug|release) {
      # only debug
      win32:LIBS += -lqwtd
      unix:!macx:LIBS += -lqwt
      macx: LIBS += -framework qwt
    } else {
      # only release
      win32:LIBS += -lqwt
      unix:!macx:LIBS += -lqwt
      macx: LIBS += -framework qwt
    }
    # obige Zeilen wurde von qmake editor grafische oberflaeche bzw. wenn neue dateien zu projekt hinzugefuegt werden falsch umgewandelt in:
    # zudem wurde bei src und include dateien doppelt eingetragen mit src/ und include/ davor
    # auch folgende Zeilen wurden hinzugefuegt: OTHER_FILES += src/semantic.cache include/semantic.cache
    #CONFIG(debug, debug|release): # only debug
    #LIBS += -lqwtd5
    #else:# only release
    #LIBS += -lqwt5

    #win32:QMAKE_LIBDIR += $${QWTPATH}/lib
    mac:QMAKE_LIBDIR += $${QWTPATH}
    mac:QMAKE_LIBDIR += $${QWTPATH}

    HEADERS += include/analysePlot.h
    SOURCES += src/analysePlot.cpp

} else {
    !build_pass:message(QWT (analysis) disabled!)
}
# PGR #########################################################################################################################

$$STEREO {
  !build_pass:message(Stereo enabled!)
  DEFINES += STEREO

  # fuer pgr stereo
  INCLUDEPATH += $${PGRPATH}/include
  QMAKE_LIBDIR += $${PGRPATH}/bin
  LIBS += -L$${PGRPATH}/lib
  #LIBS += -ldl
  LIBS += -ltriclops_v100
  #LIBS += -lpnmutils
} else {
  !build_pass:message(Stereo disabled!)
}

$$AVI {
  !build_pass:message(Avi enabled!)
  DEFINES += AVI
}

#########################################################################################################################


#include und src davorgeschrieben, da sonst qtcreator sie nicht anzeigt
HEADERS += include/petrack.h \
    include/helper.h \
    include/control.h \
    include/stereoWidget.h \
    include/colorRangeWidget.h \
    include/colorMarkerWidget.h \
    include/codeMarkerWidget.h \
    include/multiColorMarkerWidget.h \
    include/recognitionRoiItem.h \
    include/imageItem.h \
    include/logoItem.h \
    include/gridItem.h \
    include/coordItem.h \
    include/trackerItem.h \
    include/view.h \
    include/animation.h \
    include/player.h \
    include/vector.h \
    include/ellipse.h \
    include/markerCasern.h \
    include/markerJapan.h \
    include/markerHermes.h \
    include/markerColor.h \
    include/tracker.h \
    include/trackerReal.h \
    include/recognition.h \
    include/autoCalib.h \
    include/filter.h \
    include/brightContrastFilter.h \
    include/brightFilter.h \
    include/contrastFilter.h \
    include/blurFilter.h \
    include/borderFilter.h \
    include/backgroundFilter.h \
    include/calibFilter.h \
    include/calibStereoFilter.h \
    include/colorPlot.h \
    include/stereoItem.h \
    include/stereoContext.h \
    include/colorMarkerItem.h \
    include/codeMarkerItem.h \
    include/multiColorMarkerItem.h \
    include/backgroundItem.h \
    include/whitebalance.h \
    include/person.h \
    include/qtColorTriangle.h \
    include/swapFilter.h \
    include/extrCalibration.h \
    include/trackingRoiItem.h

SOURCES += src/petrack.cpp \
    src/helper.cpp \
    src/main.cpp \
    src/control.cpp \
    src/stereoWidget.cpp \
    src/colorRangeWidget.cpp \
    src/colorMarkerWidget.cpp \
    src/codeMarkerWidget.cpp \
    src/multiColorMarkerWidget.cpp \
    src/recognitionRoiItem.cpp \
    src/imageItem.cpp \
    src/logoItem.cpp \
    src/gridItem.cpp \
    src/coordItem.cpp \
    src/trackerItem.cpp \
    src/view.cpp \
    src/animation.cpp \
    src/player.cpp \
    src/vector.cpp \
    src/ellipse.cpp \
    src/markerCasern.cpp \
    src/markerHermes.cpp \
    src/markerJapan.cpp \
    src/markerColor.cpp \
    src/tracker.cpp \
    src/trackerReal.cpp \
    src/recognition.cpp \
    src/autoCalib.cpp \
    src/filter.cpp \
    src/brightContrastFilter.cpp \
    src/brightFilter.cpp \
    src/contrastFilter.cpp \
    src/blurFilter.cpp \
    src/borderFilter.cpp \
    src/backgroundFilter.cpp \
    src/calibFilter.cpp \
    src/calibStereoFilter.cpp \
    src/stereoContext.cpp \
    src/colorPlot.cpp \
    src/stereoItem.cpp \
    src/colorMarkerItem.cpp \
    src/codeMarkerItem.cpp \
    src/multiColorMarkerItem.cpp \
    src/backgroundItem.cpp \
    src/whitebalance.cpp \
    src/person.cpp \
    src/qtColorTriangle.cpp \
    src/swapFilter.cpp \
    src/extrCalibration.cpp \
    src/trackingRoiItem.cpp

$$STEREO{
    SOURCES += src/pgrAviFile.cpp
    HEADERS += include/pgrAviFile.h
    message("Include pgrAviFile")
}else{
    SOURCES += src/stereoAviFile.cpp
    HEADERS += include/stereoAviFile.h
    message("Include stereoAviFile")
}


$$AVI{
    SOURCES += src/aviFile.cpp
    HEADERS += include/aviFile.h
}else{
    SOURCES += src/aviFileWriter.cpp
    HEADERS += include/aviFileWriter.h
}


MOC_DIR = moc
UI_DIR = ui
UI_HEADERS_DIR = ui/include
UI_SOURCES_DIR = ui/src
FORMS += ui/control.ui \
         ui/stereo.ui \
         ui/colorRange.ui \
         ui/multiColorMarker.ui \
         ui/colorMarker.ui \
         ui/codeMarker.ui

RC_FILE = petrack.rc # damit petrack.ico als windows icon genommen wird
RESOURCES = icons/icons.qrc # damit daten in executable hineincompiliert wird

# alle Verzeichniss von Sourcen etc, wo Abhaengigkeiten gesucht werden sollen
DEPENDPATH += . include src ui ui/include

# fuer pgrAviFile
win32:LIBS += -lavifil32
win32:LIBS += -lmsvfw32
win64:LIBS += -lavifil32
win64:LIBS += -lmsvfw32

# only for debug function GetProcessMemoryInfo
win32:LIBS += -lpsapi
win64:LIBS += -lpsapi