aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-14 22:47:35 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-14 22:47:35 +0800
commit2c975039ea25cc2c6ebdd3372b454db4766b813d (patch)
tree9d5c0c99e0764bae6a9fcbe180bbeb054233bb12 /qmidiplayer-desktop
parenta3a51ea01c0c571d0859f1cb5147dcd003bc8c71 (diff)
downloadQMidiPlayer-2c975039ea25cc2c6ebdd3372b454db4766b813d.tar.xz
This _should_ fix building under arch linux.
(Linking order problems and include problems).
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r--qmidiplayer-desktop/qmidiplayer-desktop.pro7
1 files changed, 7 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmidiplayer-desktop.pro b/qmidiplayer-desktop/qmidiplayer-desktop.pro
index 01ad0cc..1aa1a27 100644
--- a/qmidiplayer-desktop/qmidiplayer-desktop.pro
+++ b/qmidiplayer-desktop/qmidiplayer-desktop.pro
@@ -68,6 +68,12 @@ unix{
message(Building in packaging mode...)
DEFINES += QMP_BUILD_UNIX_PACKAGE
}
+ exists("/usr/include/RtMidi.h") {
+ DEFINES += RT_MIDI_H=\\\"/usr/include/RtMidi.h\\\"
+ }
+ exists("/usr/include/rtmidi/RtMidi.h") {
+ DEFINES += RT_MIDI_H=\\\"/usr/include/rtmidi/RtMidi.h\\\"
+ }
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O3
QMAKE_LFLAGS_RELEASE -= -O1
@@ -96,6 +102,7 @@ unix{
LIBS += -lfluidsynth -lrtmidi -ldl
}
win32{
+ DEFINES += RT_MIDI_H=\\\"RtMidi.h\\\"
#change these before building...
LIBS += e:/libs/fluidsynth/fluidsynth.lib winmm.lib
Release:LIBS += e:/libs/rtmidi/rtmidi.lib