UPDATE: I accidentally ran port for swig NOT swig-python. This cleared the error with python.swg. BUT, it led to new errors:
dewitt@NIDCDX-01913220-Wernicke [32] sudo python setup.py install dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid g++ -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -O2 -Wall -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c eplSound.cpp -o eplSound.o clang: warning: argument unused during compilation: '-mno-fused-madd' warning: unknown warning option '-Wno-long-double'; did you mean '-Wno-long-long'? [-Wunknown-warning-option] In file included from eplSound.cpp:10: ./eplSound.h:78:7: warning: private field 'rate' is not used [-Wunused-private-field] int rate; ^ 2 warnings generated. g++ -O2 -Wall -D__MACOSX_CORE__ -c RtAudio.cpp -o RtAudio.o RtAudio.cpp:1625:9: warning: 'AudioHardwareGetPropertyInfo' is deprecated: first deprecated in OS X 10.6 [-Wdeprecated-declarations] err = AudioHardwareGetPropertyInfo(kAudioHardwarePropertyDevices, &dataSize, NULL); ^ /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareDeprecated.h:306:1: note: 'AudioHardwareGetPropertyInfo' declared here AudioHardwareGetPropertyInfo( AudioHardwarePropertyID inPropertyID, ^ RtAudio.cpp:1642:9: warning: 'AudioHardwareGetProperty' is deprecated: first deprecated in OS X 10.6 [-Wdeprecated-declarations] err = AudioHardwareGetProperty(kAudioHardwarePropertyDevices, &dataSize, (void *) deviceList); ^ /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareDeprecated.h:327:1: note: 'AudioHardwareGetProperty' declared here AudioHardwareGetProperty( AudioHardwarePropertyID inPropertyID, ^ RtAudio.cpp:1667:21: warning: 'AudioHardwareGetProperty' is deprecated: first deprecated in OS X 10.6 [-Wdeprecated-declarations] OSStatus result = AudioHardwareGetProperty( kAudioHardwarePropertyDefaultInputDevice, ^ /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareDeprecated.h:327:1: note: 'AudioHardwareGetProperty' declared here AudioHardwareGetProperty( AudioHardwarePropertyID inPropertyID, ^ ... RtAudio.cpp:2378:5: warning: 'AudioDeviceRemoveIOProc' is deprecated: first deprecated in OS X 10.5 [-Wdeprecated-declarations] AudioDeviceRemoveIOProc( id, callbackHandler ); ^ /System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardwareDeprecated.h:712:1: note: 'AudioDeviceRemoveIOProc' declared here AudioDeviceRemoveIOProc( AudioDeviceID inDevice, ^ 23 warnings generated. g++ -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -O2 -Wall -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c fifo.cpp -o fifo.o clang: warning: argument unused during compilation: '-mno-fused-madd' warning: unknown warning option '-Wno-long-double'; did you mean '-Wno-long-long'? [-Wunknown-warning-option] 1 warning generated. swig -c++ -python eplSound.i eplSound.i:12: Warning 124: Specifying the language name in %typemap is deprecated - use #ifdef SWIG<LANG> instead. g++ -Wno-long-double -DHAVE_CONFIG_H -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -L/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config -c eplSound_wrap.cxx clang: warning: argument unused during compilation: '-L/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config' warning: unknown warning option '-Wno-long-double'; did you mean '-Wno-long-long'? [-Wunknown-warning-option] 1 warning generated. g++ -bundle -undefined suppress -flat_namespace -lpthread -framework CoreAudio eplSound.o eplSound_wrap.o RtAudio.o fifo.o -o _eplSound.so g++ -O2 -W -Wall -Wcast-align -Wcast-qual -Wwrite-strings -pipe -fpascal-strings -c soundFile.cpp -o soundFile.o -L/usr/local/lib -L/opt/local/lib -L/sw/lib -I/usr/local/include -I/opt/local/include -I/sw/include clang: warning: argument unused during compilation: '-L/usr/local/lib' clang: warning: argument unused during compilation: '-L/opt/local/lib' clang: warning: argument unused during compilation: '-L/sw/lib' swig -c++ -python soundFile.i soundFile.i:13: Warning 124: Specifying the language name in %typemap is deprecated - use #ifdef SWIG<LANG> instead. soundFile.i:18: Warning 124: Specifying the language name in %typemap is deprecated - use #ifdef SWIG<LANG> instead. soundFile.i:24: Warning 124: Specifying the language name in %typemap is deprecated - use #ifdef SWIG<LANG> instead. soundFile.i:30: Warning 124: Specifying the language name in %typemap is deprecated - use #ifdef SWIG<LANG> instead. g++ -Wno-long-double -c soundFile_wrap.cxx -DHAVE_CONFIG_H -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 warning: unknown warning option '-Wno-long-double'; did you mean '-Wno-long-long'? [-Wunknown-warning-option] In file included from soundFile_wrap.cxx:3039: ./soundFile.h:15:10: fatal error: 'sndfile.h' file not found #include <sndfile.h> ^ 1 warning and 1 error generated. make: *** [_soundFile.so] Error 1 !!! Compilation Error !!! Make failed for target hardware/sound Exiting...Please fix the above error and try again…
The problem is with:
g++ -Wno-long-double -c soundFile_wrap.cxx -DHAVE_CONFIG_H -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
When I run:
ls /opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
There is indeed no sndfile.h:
ls /opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/ Python-ast.h bytes_methods.h compile.h floatobject.h iterobject.h node.h py_curses.h pymacconfig.h pythread.h timefuncs.h Python.h bytesobject.h complexobject.h frameobject.h listobject.h object.h pyarena.h pymactoolbox.h rangeobject.h token.h abstract.h cStringIO.h datetime.h funcobject.h longintrepr.h objimpl.h pyconfig.h pymath.h setobject.h traceback.h asdl.h cellobject.h descrobject.h genobject.h longobject.h opcode.h pydebug.h pymem.h sliceobject.h tupleobject.h ast.h ceval.h dictobject.h graminit.h marshal.h osdefs.h pyerrors.h pyport.h stringobject.h ucnhash.h bitset.h classobject.h enumobject.h grammar.h metagrammar.h parsetok.h pyexpat.h pystate.h structmember.h unicodeobject.h boolobject.h cobject.h errcode.h import.h methodobject.h patchlevel.h pyfpe.h pystrcmp.h structseq.h warnings.h bufferobject.h code.h eval.h intobject.h modsupport.h pgen.h pygame/ pystrtod.h symtable.h weakrefobject.h bytearrayobject.h codecs.h fileobject.h intrcheck.h moduleobject.h pgenheaders.h pygetopt.h pythonrun.h sysmodule.h
Any thoughts!
UPDATE: I accidentally ran port for swig NOT swig-python. This cleared the error with python.swg. BUT, it led to new errors:
The problem is with:
g++ -Wno-long-double -c soundFile_wrap.cxx -DHAVE_CONFIG_H -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
When I run:
ls /opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
There is indeed no sndfile.h:
Any thoughts!
Last edit: Iain 2014-01-14