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-lite/qmidiplayer-lite.pro | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'qmidiplayer-lite') diff --git a/qmidiplayer-lite/qmidiplayer-lite.pro b/qmidiplayer-lite/qmidiplayer-lite.pro index 7ee4771..1534d53 100644 --- a/qmidiplayer-lite/qmidiplayer-lite.pro +++ b/qmidiplayer-lite/qmidiplayer-lite.pro @@ -22,12 +22,19 @@ HEADERS += \ ../core/qmpmidiplay.hpp \ qmpcorewrapper.hpp \ ../core/qmpmidimappers.hpp \ - ../include/qmpcorepublic.hpp + ../include/qmpcorepublic.hpp unix{ LIBS += -lfluidsynth -lrtmidi +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\\\" +} } 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