superquadratic / rtmidi-python

Python wrapper for RtMidi
MIT License
56 stars 2 forks source link

Problems building on OS X 10.7, Xcode 4.3 #8

Closed pmagwene closed 12 years ago

pmagwene commented 12 years ago

I'm trying to build from source on OS X 10.7 (Xcode 4.3) using the default system python (2.7.1).

Running python setup.py build I get ld errors about CoreMidi not being found:

llvm-g++-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -Wl,-F. -arch i386 -arch x86_64 build/temp.macosx-10.7-intel-2.7/rtmidi_python.o build/temp.macosx-10.7-intel-2.7/RtMidi/RtMidi.o -o build/lib.macosx-10.7-intel-2.7/rtmidi_python.so -framework CoreMidi -framework CoreAudio -framework CoreFoundation
ld: framework not found CoreMidi
collect2: ld returned 1 exit status
ld: framework not found CoreMidi
collect2: ld returned 1 exit status

However, building RtMidi 2.0 from source it finds the CoreMidi framework just fine. Any tips or workarounds?

superquadratic commented 12 years ago

Fortunately, I just got a Mac with OS X 10.7. I'll try to look into it this weekend.

superquadratic commented 12 years ago

Maybe replacing CoreMidi by CoreMIDI (with all-uppercase MIDI) in setup.py will already do the trick...

pmagwene commented 12 years ago

That fixed it! I should have caught that myself. Thanks for the quick response!

superquadratic commented 12 years ago

Fixed in e6be5917be4e0eda0d01ee6382b00a671a235419.