portmidi

magic words:

Prerequisites

  • XCode + Coreaudio dev toolkit

Howto compile portmidi dynamic libraries for OSX

tested with portmidi28aug06 and portmidi30okt06

cd /tmp
wget http://www.cs.cmu.edu/~music/portmusic/portmidi/portmidi30oct06.zip
unzip DOWNLOADS/portmidi30okt06.zip
cd portmidi
 
cc -single_module -g -DPM_CHECK_ERRORS -Iporttime -Ipm_common -dynamiclib \
  pm_mac/pmmac.c pm_common/pmutil.c pm_common/portmidi.c pm_mac/pmmacosxcm.c \
  -flat_namespace -undefined suppress -o libportmidi.dylib \
  -framework CoreMIDI -framework CoreFoundation -framework CoreAudio 

cc -dynamiclib porttime/porttime.c porttime/ptmacosx_mach.c \
  -DPM_CHECK_ERRORS -g -Ipm_common -Iporttime -flat_namespace \
  -undefined suppress -o libporttime.dylib

PF=/usr/local/
sudo install porttime/porttime.h  $PF/include/
sudo install pm_common/portmidi.h $PF/include
sudo install libportmidi.dylib $PF/lib/
sudo install libporttime.dylib $PF/lib/

# todo - use lib-version number and symlinks for /usr/local/lib

Uninstall:

PF=/usr/local/
sudo rm $PF/lib/libportmidi.dylib $PF/lib/libporttime.dylib\
        $PF/include/portmidi.h  $PF/include/porttime.h

References

 
oss/xjadeo/portmidi.txt · Last modified: 08.11.2006 22:51 (external edit)