forked from mpaperno/qgroundcontrol_aq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_Linux.pri
82 lines (71 loc) · 2.37 KB
/
config_Linux.pri
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#
# Linux specific configuration directives
#
DEFINES += __STDC_LIMIT_MACROS
INCLUDEPATH += /usr/include \
/usr/local/include \
LIBS += \
-lm \
-lSDL \
-lSDLmain
exists(/usr/local/include/libfreenect/libfreenect.h) {
message("Building support for libfreenect")
DEPENDENCIES_PRESENT += libfreenect
INCLUDEPATH += /usr/include/libusb-1.0
# Include libfreenect libraries
LIBS += -lfreenect
DEFINES += QGC_LIBFREENECT_ENABLED
}
###################################################################
#### --- 3DConnexion 3d Mice support (e.g. spacenavigator) --- ####
###################################################################
# xdrvlib only supported by linux (theoretical all X11) systems
# You have to install the official 3DxWare driver for linux to use 3D mouse support on linux systems!
exists(/usr/local/lib/libxdrvlib.so){
message("Including support for Magellan 3DxWare for linux system.")
SOURCES += src/input/Mouse6dofInput.cpp
HEADERS += src/input/Mouse6dofInput.h
LIBS += -L/usr/local/lib/ -lxdrvlib
INCLUDEPATH *= /usr/local/include
DEFINES += MOUSE_ENABLED_LINUX \
ParameterCheck # Hack: Has to be defined for magellan usage
}
# xbee support
# libxbee only supported by linux and windows systems
#exists($$BASEDIR/libs/thirdParty/libxbee/lib) {
# message("Building support for XBee")
# DEPENDENCIES_PRESENT += xbee
# DEFINES += XBEELINK
# LIBS += -L$${BASEDIR}/libs/thirdParty/libxbee/lib \
# -llibxbee
#}
# exists(/usr/include/osg) | exists(/usr/local/include/osg) {
# message("Building support for OpenSceneGraph")
# DEPENDENCIES_PRESENT += osg
# # Include OpenSceneGraph libraries
# LIBS += -losg \
# -losgViewer \
# -losgGA \
# -losgDB \
# -losgText \
# -lOpenThreads
#
# DEFINES += QGC_OSG_ENABLED
# }
# exists(/usr/include/osg/osgQt) | exists(/usr/include/osgQt) |
# exists(/usr/local/include/osg/osgQt) | exists(/usr/local/include/osgQt) {
# message("Building support for OpenSceneGraph Qt")
# DEPENDENCIES_PRESENT += osgQt
# LIBS += -losgQt
# DEFINES += QGC_OSG_QT_ENABLED
# }
# exists(/usr/local/include/google/protobuf) {
# message("Building support for Protocol Buffers")
# DEPENDENCIES_PRESENT += protobuf
# # Include Protocol Buffers libraries
# LIBS += -lprotobuf \
# -lprotobuf-lite \
# -lprotoc
#
# DEFINES += QGC_PROTOBUF_ENABLED
# }