From a5bef56e76e9e09fc3e298d0c205d322053cabfd Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Thu, 25 Feb 2016 22:23:37 -0600 Subject: [PATCH] Fix build on case-sensitive OS X Fix capitalization of CoreMIDI framework to fix build on Macs with case-sensitive filesystems. --- configure.ac | 4 ++-- doc/doxygen/compile.txt | 2 +- src/RtMidi.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 39fba08..6301d41 100644 --- a/configure.ac +++ b/configure.ac @@ -167,7 +167,7 @@ if test $realtime = yes; then api="$api -D__MACOSX_CORE__" AC_MSG_RESULT(using CoreAudio) AC_CHECK_HEADER(CoreAudio/CoreAudio.h, [], [AC_MSG_ERROR(CoreAudio header files not found!)] ) - LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework CoreMidi" ], ) + LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework CoreMIDI" ], ) # If no audio api flags specified, use CoreAudio if [test "$api" == ""; ] then @@ -176,7 +176,7 @@ if test $realtime = yes; then AC_CHECK_HEADER(CoreAudio/CoreAudio.h, [], [AC_MSG_ERROR(CoreAudio header files not found!)] ) - AC_SUBST( LIBS, ["-framework CoreAudio -framework CoreFoundation -framework CoreMidi"] ) + AC_SUBST( LIBS, ["-framework CoreAudio -framework CoreFoundation -framework CoreMIDI"] ) fi AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtAudio requires the pthread library!)) diff --git a/doc/doxygen/compile.txt b/doc/doxygen/compile.txt index c6f5fb8..c95e88c 100644 --- a/doc/doxygen/compile.txt +++ b/doc/doxygen/compile.txt @@ -56,7 +56,7 @@ STK compiles with realtime support on the following flavors of the Unix operatin Macintosh OS X CoreAudio __MACOSX_CORE__ - pthread, CoreAudio, CoreMidi, CoreFoundation + pthread, CoreAudio, CoreMIDI, CoreFoundation diff --git a/src/RtMidi.cpp b/src/RtMidi.cpp index 678e940..44dad43 100644 --- a/src/RtMidi.cpp +++ b/src/RtMidi.cpp @@ -1010,7 +1010,7 @@ void MidiOutCore :: openVirtualPort( std::string portName ) void MidiOutCore :: sendMessage( std::vector *message ) { // We use the MIDISendSysex() function to asynchronously send sysex - // messages. Otherwise, we use a single CoreMidi MIDIPacket. + // messages. Otherwise, we use a single CoreMIDI MIDIPacket. unsigned int nBytes = message->size(); if ( nBytes == 0 ) { errorString_ = "MidiOutCore::sendMessage: no data in message argument!";