From 2c975039ea25cc2c6ebdd3372b454db4766b813d Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sat, 14 May 2016 22:47:35 +0800 Subject: This _should_ fix building under arch linux. (Linking order problems and include problems). --- qmidiplayer-desktop/qmidiplayer-desktop.pro | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qmidiplayer-desktop') 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 -- cgit v1.2.3