Can't find CoreMIDI/CoreMIDI.h or CoreAudio/HostTime.h
I apologise in advance for the length of this stack trace. I'm a node.js / npm n00b, (following Giles Bowkett's new screencast series), and can't get node-midi compiled/installed. My environment is a 13" Macbook Air (Mid 2011), Mac OSX Lion, 10.7.3 with node installed via the official OSX package and npm via the shell script. I'm not even sure if it's a node issue / npm issue / or system architecture issue. I wonder if anyone else is coming across this?
$ node -v
v0.6.11
$ npm -v
1.1.2
$ npm install midi
npm http GET https://registry.npmjs.org/midi
npm http 200 https://registry.npmjs.org/midi
npm http GET https://registry.npmjs.org/midi/-/midi-0.5.0.tgz
npm http 200 https://registry.npmjs.org/midi/-/midi-0.5.0.tgz
> [email protected] preinstall /Users/pootsbook/node_modules/midi
> make
node-waf clean || true; node-waf configure build
Nothing to clean (project not configured)
Setting srcdir to : /Users/pootsbook/node_modules/midi
Setting blddir to : /Users/pootsbook/node_modules/midi/build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.046s)
Waf: Entering directory `/Users/pootsbook/node_modules/midi/build'
[1/2] cxx: src/node-midi.cpp -> build/Release/src/node-midi_1.o
In file included from ../src/node-midi.cpp:8:
../src/lib/RtMidi/RtMidi.cpp:170:31: error: CoreMIDI/CoreMIDI.h: No such file or directory
../src/lib/RtMidi/RtMidi.cpp:171:32: error: CoreAudio/HostTime.h: No such file or directory
In file included from ../src/lib/RtMidi/RtMidi.cpp:172,
from ../src/node-midi.cpp:8:
/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21:19: error: AE/AE.h: No such file or directory
/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:25:35: error: CarbonCore/CarbonCore.h: No such file or directory
/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:29:35: error: OSServices/OSServices.h: No such file or directory
/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:33:43: error: CoreFoundation/CoreFoundation.h: No such file or directory
/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:37:33: error: CFNetwork/CFNetwork.h: No such file or directory
/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:41:43: error: LaunchServices/LaunchServices.h: No such file or directory
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SearchKit.h:30,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:45,
from ../src/lib/RtMidi/RtMidi.cpp:172,
from ../src/node-midi.cpp:8:
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKDocument.h:20:35: error: CoreFoundation/CFBase.h: No such file or directory
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKDocument.h:24:34: error: CoreFoundation/CFURL.h: No such file or directory
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SearchKit.h:34,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:45,
from ../src/lib/RtMidi/RtMidi.cpp:172,
from ../src/node-midi.cpp:8:
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKAnalysis.h:20:37: error: CoreFoundation/CFString.h: No such file or directory
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SearchKit.h:38,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:45,
from ../src/lib/RtMidi/RtMidi.cpp:172,
from ../src/node-midi.cpp:8:
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:28:41: error: CoreFoundation/CFDictionary.h: No such file or directory
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SearchKit.h:42,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:45,
from ../src/lib/RtMidi/RtMidi.cpp:172,
from ../src/node-midi.cpp:8:
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:32:35: error: CoreFoundation/CFDate.h: No such file or directory
In file included from ../src/lib/RtMidi/RtMidi.cpp:172,
from ../src/node-midi.cpp:8:
/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:48:31: error: Metadata/Metadata.h: No such file or directory
/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:49:51: error: DictionaryServices/DictionaryServices.h: No such file or directory
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SearchKit.h:30,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:45,
from ../src/lib/RtMidi/RtMidi.cpp:172,
from ../src/node-midi.cpp:8:
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKDocument.h:51: error: ‘CFTypeRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKDocument.h:66: error: ‘CFTypeID’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKDocument.h:97: error: ‘SKDocumentRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKDocument.h:115: error: ‘CFURLRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKDocument.h:156: error: ‘SKDocumentRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKDocument.h:182: error: ‘CFStringRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKDocument.h:205: error: ‘CFStringRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKDocument.h:229: error: ‘SKDocumentRef’ does not name a type
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SearchKit.h:34,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:45,
from ../src/lib/RtMidi/RtMidi.cpp:172,
from ../src/node-midi.cpp:8:
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKAnalysis.h:54: error: ‘CFStringRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKAnalysis.h:71: error: ‘CFStringRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKAnalysis.h:88: error: ‘CFStringRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKAnalysis.h:107: error: ‘CFStringRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKAnalysis.h:127: error: ‘CFStringRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKAnalysis.h:146: error: ‘CFStringRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKAnalysis.h:165: error: ‘CFStringRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKAnalysis.h:184: error: ‘CFStringRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKAnalysis.h:207: error: ‘CFStringRef’ does not name a type
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SearchKit.h:38,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:45,
from ../src/lib/RtMidi/RtMidi.cpp:172,
from ../src/node-midi.cpp:8:
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:74: error: ‘CFTypeID’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:98: error: ‘CFTypeID’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:215: error: ‘CFURLRef’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:216: error: ‘CFStringRef’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:217: error: expected primary-expression before ‘inIndexType’
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:218: error: ‘CFDictionaryRef’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:218: error: initializer expression list treated as compound expression
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:256: error: ‘CFURLRef’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:257: error: ‘CFStringRef’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:258: error: ‘Boolean’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:258: error: initializer expression list treated as compound expression
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:295: error: ‘CFMutableDataRef’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:296: error: ‘CFStringRef’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:297: error: expected primary-expression before ‘inIndexType’
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:298: error: ‘CFDictionaryRef’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:298: error: initializer expression list treated as compound expression
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:332: error: ‘CFDataRef’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:333: error: ‘CFStringRef’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:333: error: initializer expression list treated as compound expression
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:368: error: ‘CFMutableDataRef’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:369: error: ‘CFStringRef’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:369: error: initializer expression list treated as compound expression
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:393: error: ‘Boolean’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:411: error: ‘CFIndex’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:429: error: ‘CFIndex’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:455: error: ‘Boolean’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:497: error: ‘CFDictionaryRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:521: error: ‘CFIndex’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:543: error: ‘CFIndex’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:574: error: ‘Boolean’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:623: error: ‘Boolean’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:655: error: ‘Boolean’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:676: error: ‘CFDictionaryRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:698: error: ‘SKDocumentRef’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:699: error: ‘CFDictionaryRef’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:723: error: ‘SKDocumentRef’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:741: error: ‘SKDocumentID’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:758: error: ‘SKDocumentRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:775: error: ‘Boolean’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:793: error: ‘Boolean’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:815: error: ‘SKDocumentRef’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:834: error: ‘SKDocumentRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:852: error: ‘SKDocumentID’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:867: error: ‘CFIndex’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:887: error: ‘CFArrayRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:904: error: ‘CFIndex’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:927: error: ‘CFIndex’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:942: error: ‘CFIndex’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:962: error: ‘CFArrayRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:979: error: ‘CFStringRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h:999: error: ‘CFIndex’ does not name a type
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SearchKit.h:42,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:45,
from ../src/lib/RtMidi/RtMidi.cpp:172,
from ../src/node-midi.cpp:8:
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:78: error: ‘CFTypeID’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:90: error: ‘UInt32’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:131: error: ‘CFStringRef’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:132: error: ‘SKSearchOptions’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:194: error: ‘Boolean’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:238: error: ‘CFIndex’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:239: error: ‘SKDocumentID’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:240: error: ‘CFStringRef’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:241: error: ‘SKDocumentID’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:272: error: ‘CFIndex’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:273: error: ‘SKDocumentID’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:274: error: ‘SKDocumentRef’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:305: error: ‘CFIndex’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:306: error: ‘SKDocumentID’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:307: error: ‘CFURLRef’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:335: error: ‘CFTypeID’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:358: error: ‘CFTypeID’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:411: error: typedef ‘CALLBACK_API_C’ is initialized (use __typeof__ instead)
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:411: error: ‘Boolean’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:411: error: ‘SKSearchResultsFilterCallBack’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:435: error: ‘CFArrayRef’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:452: error: ‘CFArrayRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:501: error: ‘CFStringRef’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:503: error: ‘CFIndex’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:505: error: ‘SKSearchResultsFilterCallBack’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:551: error: ‘CFArrayRef’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:552: error: ‘CFIndex’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:554: error: ‘SKSearchResultsFilterCallBack’ has not been declared
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:568: error: ‘CFIndex’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:617: error: ‘CFIndex’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h:649: error: ‘CFArrayRef’ does not name a type
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SearchKit.h:46,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:45,
from ../src/lib/RtMidi/RtMidi.cpp:172,
from ../src/node-midi.cpp:8:
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSummary.h:68: error: ‘CFTypeID’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSummary.h:97: error: ‘CFStringRef’ was not declared in this scope
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSummary.h:116: error: ‘CFIndex’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSummary.h:136: error: ‘CFIndex’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSummary.h:159: error: ‘CFStringRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSummary.h:184: error: ‘CFStringRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSummary.h:210: error: ‘CFStringRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSummary.h:236: error: ‘CFStringRef’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSummary.h:277: error: ‘CFIndex’ does not name a type
/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSummary.h:317: error: ‘CFIndex’ does not name a type
In file included from ../src/node-midi.cpp:8:
../src/lib/RtMidi/RtMidi.cpp:177: error: ‘MIDIClientRef’ does not name a type
../src/lib/RtMidi/RtMidi.cpp:178: error: ‘MIDIPortRef’ does not name a type
../src/lib/RtMidi/RtMidi.cpp:179: error: ‘MIDIEndpointRef’ does not name a type
../src/lib/RtMidi/RtMidi.cpp:180: error: ‘MIDIEndpointRef’ does not name a type
../src/lib/RtMidi/RtMidi.cpp:182: error: ‘MIDISysexSendRequest’ does not name a type
../src/lib/RtMidi/RtMidi.cpp:190: error: expected ‘,’ or ‘...’ before ‘*’ token
../src/lib/RtMidi/RtMidi.cpp:190: error: ISO C++ forbids declaration of ‘MIDIPacketList’ with no type
../src/lib/RtMidi/RtMidi.cpp: In function ‘void midiInputCallback(int)’:
../src/lib/RtMidi/RtMidi.cpp:192: error: ‘procRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:202: error: expected initializer before ‘*’ token
../src/lib/RtMidi/RtMidi.cpp:203: error: ‘list’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:214: error: ‘packet’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:224: error: ‘AudioGetCurrentHostTime’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:227: error: ‘AudioConvertHostTimeToNanos’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:232: error: ‘AudioGetCurrentHostTime’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:333: error: ‘MIDIPacketNext’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp: In member function ‘void RtMidiIn::initialize(const std::string&)’:
../src/lib/RtMidi/RtMidi.cpp:340: error: ‘MIDIClientRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:340: error: expected `;' before ‘client’
../src/lib/RtMidi/RtMidi.cpp:341: error: ‘OSStatus’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:341: error: expected `;' before ‘result’
../src/lib/RtMidi/RtMidi.cpp:342: error: ‘result’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:342: error: ‘noErr’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:349: error: ‘struct CoreMidiData’ has no member named ‘client’
../src/lib/RtMidi/RtMidi.cpp:349: error: ‘client’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:350: error: ‘struct CoreMidiData’ has no member named ‘endpoint’
../src/lib/RtMidi/RtMidi.cpp: In member function ‘virtual void RtMidiIn::openPort(unsigned int, std::string)’:
../src/lib/RtMidi/RtMidi.cpp:363: error: ‘MIDIGetNumberOfSources’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:376: error: ‘MIDIPortRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:376: error: expected `;' before ‘port’
../src/lib/RtMidi/RtMidi.cpp:378: error: ‘OSStatus’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:378: error: expected `;' before ‘result’
../src/lib/RtMidi/RtMidi.cpp:381: error: ‘result’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:381: error: ‘noErr’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:382: error: ‘struct CoreMidiData’ has no member named ‘client’
../src/lib/RtMidi/RtMidi.cpp:382: error: ‘MIDIClientDispose’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:388: error: ‘MIDIEndpointRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:388: error: expected `;' before ‘endpoint’
../src/lib/RtMidi/RtMidi.cpp:389: error: ‘endpoint’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:390: error: ‘port’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:390: error: ‘MIDIPortDispose’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:391: error: ‘struct CoreMidiData’ has no member named ‘client’
../src/lib/RtMidi/RtMidi.cpp:391: error: ‘MIDIClientDispose’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:397: error: ‘result’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:397: error: ‘port’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:397: error: ‘endpoint’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:397: error: ‘MIDIPortConnectSource’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:398: error: ‘noErr’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:399: error: ‘MIDIPortDispose’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:400: error: ‘struct CoreMidiData’ has no member named ‘client’
../src/lib/RtMidi/RtMidi.cpp:400: error: ‘MIDIClientDispose’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:406: error: ‘struct CoreMidiData’ has no member named ‘port’
../src/lib/RtMidi/RtMidi.cpp: In member function ‘virtual void RtMidiIn::openVirtualPort(std::string)’:
../src/lib/RtMidi/RtMidi.cpp:416: error: ‘MIDIEndpointRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:416: error: expected `;' before ‘endpoint’
../src/lib/RtMidi/RtMidi.cpp:417: error: ‘OSStatus’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:417: error: expected `;' before ‘result’
../src/lib/RtMidi/RtMidi.cpp:420: error: ‘result’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:420: error: ‘noErr’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:426: error: ‘struct CoreMidiData’ has no member named ‘endpoint’
../src/lib/RtMidi/RtMidi.cpp:426: error: ‘endpoint’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp: In member function ‘virtual void RtMidiIn::closePort()’:
../src/lib/RtMidi/RtMidi.cpp:433: error: ‘struct CoreMidiData’ has no member named ‘port’
../src/lib/RtMidi/RtMidi.cpp:433: error: ‘MIDIPortDispose’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp: In destructor ‘virtual RtMidiIn::~RtMidiIn()’:
../src/lib/RtMidi/RtMidi.cpp:445: error: ‘struct CoreMidiData’ has no member named ‘client’
../src/lib/RtMidi/RtMidi.cpp:445: error: ‘MIDIClientDispose’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:446: error: ‘struct CoreMidiData’ has no member named ‘endpoint’
../src/lib/RtMidi/RtMidi.cpp:446: error: ‘struct CoreMidiData’ has no member named ‘endpoint’
../src/lib/RtMidi/RtMidi.cpp:446: error: ‘MIDIEndpointDispose’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp: In member function ‘virtual unsigned int RtMidiIn::getPortCount()’:
../src/lib/RtMidi/RtMidi.cpp:455: error: ‘MIDIGetNumberOfSources’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp: At global scope:
../src/lib/RtMidi/RtMidi.cpp:460: error: ‘CFStringRef’ does not name a type
../src/lib/RtMidi/RtMidi.cpp:530: error: ‘CFStringRef’ does not name a type
../src/lib/RtMidi/RtMidi.cpp: In member function ‘virtual std::string RtMidiIn::getPortName(unsigned int)’:
../src/lib/RtMidi/RtMidi.cpp:584: error: ‘CFStringRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:584: error: expected `;' before ‘nameRef’
../src/lib/RtMidi/RtMidi.cpp:585: error: ‘MIDIEndpointRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:585: error: expected `;' before ‘portRef’
../src/lib/RtMidi/RtMidi.cpp:590: error: ‘MIDIGetNumberOfSources’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:598: error: ‘portRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:598: error: ‘MIDIGetSource’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:599: error: ‘nameRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:599: error: ‘ConnectedEndpointName’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:600: error: ‘CFStringGetCString’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:601: error: ‘CFRelease’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp: In member function ‘virtual unsigned int RtMidiOut::getPortCount()’:
../src/lib/RtMidi/RtMidi.cpp:613: error: ‘MIDIGetNumberOfDestinations’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp: In member function ‘virtual std::string RtMidiOut::getPortName(unsigned int)’:
../src/lib/RtMidi/RtMidi.cpp:618: error: ‘CFStringRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:618: error: expected `;' before ‘nameRef’
../src/lib/RtMidi/RtMidi.cpp:619: error: ‘MIDIEndpointRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:619: error: expected `;' before ‘portRef’
../src/lib/RtMidi/RtMidi.cpp:624: error: ‘MIDIGetNumberOfDestinations’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:632: error: ‘portRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:632: error: ‘MIDIGetDestination’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:633: error: ‘nameRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:633: error: ‘ConnectedEndpointName’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:634: error: ‘CFStringGetCString’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:635: error: ‘CFRelease’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp: In member function ‘void RtMidiOut::initialize(const std::string&)’:
../src/lib/RtMidi/RtMidi.cpp:643: error: ‘MIDIClientRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:643: error: expected `;' before ‘client’
../src/lib/RtMidi/RtMidi.cpp:644: error: ‘OSStatus’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:644: error: expected `;' before ‘result’
../src/lib/RtMidi/RtMidi.cpp:645: error: ‘result’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:645: error: ‘noErr’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:652: error: ‘struct CoreMidiData’ has no member named ‘client’
../src/lib/RtMidi/RtMidi.cpp:652: error: ‘client’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:653: error: ‘struct CoreMidiData’ has no member named ‘endpoint’
../src/lib/RtMidi/RtMidi.cpp: In member function ‘virtual void RtMidiOut::openPort(unsigned int, std::string)’:
../src/lib/RtMidi/RtMidi.cpp:665: error: ‘MIDIGetNumberOfDestinations’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:678: error: ‘MIDIPortRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:678: error: expected `;' before ‘port’
../src/lib/RtMidi/RtMidi.cpp:680: error: ‘OSStatus’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:680: error: expected `;' before ‘result’
../src/lib/RtMidi/RtMidi.cpp:683: error: ‘result’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:683: error: ‘noErr’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:684: error: ‘struct CoreMidiData’ has no member named ‘client’
../src/lib/RtMidi/RtMidi.cpp:684: error: ‘MIDIClientDispose’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:690: error: ‘MIDIEndpointRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:690: error: expected `;' before ‘destination’
../src/lib/RtMidi/RtMidi.cpp:691: error: ‘destination’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:692: error: ‘port’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:692: error: ‘MIDIPortDispose’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:693: error: ‘struct CoreMidiData’ has no member named ‘client’
../src/lib/RtMidi/RtMidi.cpp:693: error: ‘MIDIClientDispose’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:699: error: ‘struct CoreMidiData’ has no member named ‘port’
../src/lib/RtMidi/RtMidi.cpp:699: error: ‘port’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:700: error: ‘struct CoreMidiData’ has no member named ‘destinationId’
../src/lib/RtMidi/RtMidi.cpp:700: error: ‘destination’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp: In member function ‘virtual void RtMidiOut::closePort()’:
../src/lib/RtMidi/RtMidi.cpp:708: error: ‘struct CoreMidiData’ has no member named ‘port’
../src/lib/RtMidi/RtMidi.cpp:708: error: ‘MIDIPortDispose’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp: In member function ‘virtual void RtMidiOut::openVirtualPort(std::string)’:
../src/lib/RtMidi/RtMidi.cpp:717: error: ‘struct CoreMidiData’ has no member named ‘endpoint’
../src/lib/RtMidi/RtMidi.cpp:724: error: ‘MIDIEndpointRef’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:724: error: expected `;' before ‘endpoint’
../src/lib/RtMidi/RtMidi.cpp:725: error: ‘OSStatus’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:725: error: expected `;' before ‘result’
../src/lib/RtMidi/RtMidi.cpp:728: error: ‘result’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:728: error: ‘noErr’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:734: error: ‘struct CoreMidiData’ has no member named ‘endpoint’
../src/lib/RtMidi/RtMidi.cpp:734: error: ‘endpoint’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp: In destructor ‘virtual RtMidiOut::~RtMidiOut()’:
../src/lib/RtMidi/RtMidi.cpp:744: error: ‘struct CoreMidiData’ has no member named ‘client’
../src/lib/RtMidi/RtMidi.cpp:744: error: ‘MIDIClientDispose’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:745: error: ‘struct CoreMidiData’ has no member named ‘endpoint’
../src/lib/RtMidi/RtMidi.cpp:745: error: ‘struct CoreMidiData’ has no member named ‘endpoint’
../src/lib/RtMidi/RtMidi.cpp:745: error: ‘MIDIEndpointDispose’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp: At global scope:
../src/lib/RtMidi/RtMidi.cpp:751: error: variable or field ‘sysexCompletionProc’ declared void
../src/lib/RtMidi/RtMidi.cpp:751: error: ‘MIDISysexSendRequest’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:751: error: ‘sreq’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp: In member function ‘void RtMidiOut::sendMessage(std::vector<unsigned char, std::allocator<unsigned char> >*)’:
../src/lib/RtMidi/RtMidi.cpp:771: error: ‘MIDITimeStamp’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:771: error: expected `;' before ‘timeStamp’
../src/lib/RtMidi/RtMidi.cpp:773: error: ‘OSStatus’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:773: error: expected `;' before ‘result’
../src/lib/RtMidi/RtMidi.cpp:788: error: ‘struct CoreMidiData’ has no member named ‘sysexreq’
../src/lib/RtMidi/RtMidi.cpp:788: error: ‘struct CoreMidiData’ has no member named ‘destinationId’
../src/lib/RtMidi/RtMidi.cpp:789: error: ‘struct CoreMidiData’ has no member named ‘sysexreq’
../src/lib/RtMidi/RtMidi.cpp:789: error: ‘Byte’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:789: error: expected primary-expression before ‘)’ token
../src/lib/RtMidi/RtMidi.cpp:789: error: expected `;' before ‘sysexBuffer’
../src/lib/RtMidi/RtMidi.cpp:790: error: ‘struct CoreMidiData’ has no member named ‘sysexreq’
../src/lib/RtMidi/RtMidi.cpp:791: error: ‘struct CoreMidiData’ has no member named ‘sysexreq’
../src/lib/RtMidi/RtMidi.cpp:792: error: ‘struct CoreMidiData’ has no member named ‘sysexreq’
../src/lib/RtMidi/RtMidi.cpp:792: error: ‘sysexCompletionProc’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:793: error: ‘struct CoreMidiData’ has no member named ‘sysexreq’
../src/lib/RtMidi/RtMidi.cpp:793: error: ‘struct CoreMidiData’ has no member named ‘sysexreq’
../src/lib/RtMidi/RtMidi.cpp:795: error: ‘result’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:795: error: ‘struct CoreMidiData’ has no member named ‘sysexreq’
../src/lib/RtMidi/RtMidi.cpp:795: error: ‘MIDISendSysex’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:796: error: ‘noErr’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:808: error: ‘MIDIPacketList’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:808: error: expected `;' before ‘packetList’
../src/lib/RtMidi/RtMidi.cpp:809: error: ‘MIDIPacket’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:809: error: ‘packet’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:809: error: ‘packetList’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:809: error: ‘MIDIPacketListInit’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:810: error: ‘timeStamp’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:810: error: ISO C++ forbids declaration of ‘type name’ with no type
../src/lib/RtMidi/RtMidi.cpp:810: error: ISO C++ forbids declaration of ‘type name’ with no type
../src/lib/RtMidi/RtMidi.cpp:810: error: expected primary-expression before ‘const’
../src/lib/RtMidi/RtMidi.cpp:810: error: expected `)' before ‘const’
../src/lib/RtMidi/RtMidi.cpp:817: error: ‘struct CoreMidiData’ has no member named ‘endpoint’
../src/lib/RtMidi/RtMidi.cpp:818: error: ‘result’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:818: error: ‘struct CoreMidiData’ has no member named ‘endpoint’
../src/lib/RtMidi/RtMidi.cpp:818: error: ‘MIDIReceived’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:819: error: ‘noErr’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:827: error: ‘result’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:827: error: ‘struct CoreMidiData’ has no member named ‘port’
../src/lib/RtMidi/RtMidi.cpp:827: error: ‘struct CoreMidiData’ has no member named ‘destinationId’
../src/lib/RtMidi/RtMidi.cpp:827: error: ‘MIDISend’ was not declared in this scope
../src/lib/RtMidi/RtMidi.cpp:828: error: ‘noErr’ was not declared in this scope
Waf: Leaving directory `/Users/pootsbook/node_modules/midi/build'
Build failed: -> task failed (err #1):
{task: cxx node-midi.cpp -> node-midi_1.o}
make: *** [all] Error 1
npm ERR! error installing [email protected]
npm ERR! [email protected] preinstall: `make`
npm ERR! `sh "-c" "make"` failed with 2
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is most likely a problem with the midi package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make
npm ERR! You can get their info via:
npm ERR! npm owner ls midi
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 11.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "midi"
npm ERR! cwd /Users/pootsbook
npm ERR! node -v v0.6.11
npm ERR! npm -v 1.1.2
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] preinstall: `make`
npm ERR! message `sh "-c" "make"` failed with 2
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/pootsbook/npm-debug.log
npm not ok
Hmm - interesting. Looks like the version of g++ you're using isn't correctly finding the header files from the frameworks. Can you verify that /System/Library/Frameworks/CoreMIDI.framework exists?
Do you have XCode installed? Are you using the version of g++ that is installed with the XCode command line tools?
Can you show me the output of g++ -v on the command line?
Thanks for the prompt response.
/System/Library/Frameworks/CoreMIDI.framework exists.
I installed the osx-gcc-installer available at https://github.com/kennethreitz/osx-gcc-installer, independently of XCode. Maybe this is the issue?
$ g++ -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
Hmm. You can try installing the Apple produced XCode Command Line Tools, which you can download here https://developer.apple.com/downloads or the full version of XCode.
I'll fire up my Lion VM in the next few days and see if I can reproduce the problem. Sorry I can't be of more help at the moment.
Not at all, I appreciate your guidance. I'll install XCode this evening and try again, and then update the issue with my findings.
Ok, so for anyone suffering from the same problem, an install of the official Apple XCode Command Line Tools did the trick. I didn't need the full XCode download, and as I understand it, the Command Line Tools are installed over the OSX-GCC-Installer (http://kennethreitz.com/xcode-gcc-and-homebrew.html#comment-442259045).
Thanks for your help @justinlatimer. You are the most responsive OSS project maintainer I've seen.
$ npm install midi
npm http GET https://registry.npmjs.org/midi
npm http 304 https://registry.npmjs.org/midi
> [email protected] preinstall /Users/pootsbook/node_modules/midi
> make
node-waf clean || true; node-waf configure build
Nothing to clean (project not configured)
Setting srcdir to : /Users/pootsbook/node_modules/midi
Setting blddir to : /Users/pootsbook/node_modules/midi/build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.154s)
Waf: Entering directory `/Users/pootsbook/node_modules/midi/build'
[1/2] cxx: src/node-midi.cpp -> build/Release/src/node-midi_1.o
[2/2] cxx_link: build/Release/src/node-midi_1.o -> build/Release/midi.node
Waf: Leaving directory `/Users/pootsbook/node_modules/midi/build'
'build' finished successfully (1.951s)
[email protected] ./node_modules/midi
No problem, glad you got everything sorted. Let me know if you end up doing anything cool with node-midi!