On Nov 13, 2006, at 11:00 AM, Thomas Grill wrote:
Hi all, actually, OSX builds _need_ portaudio. Therefore, you can't just
specify portaudio=0. You'd need to download portaudio-v19 (or check out from portaudio
SVN) and the latest portmidi package. You don't need to build
those, just point the scons variables portaudiopath and
portmidipath to these folders and set portaudio to 1. (You get a list of config variables with scons --help).
...one problem I've found with setting the portaudiopath and
portmidipath's explicitly is that they assume some non-standard
arrangement...for example, if I download cvs of portaudio, I get:
portaudio/pa_common portaudio/pa_mac_core ...etc...
...but if I scons with "portaudiopath=path/to/cvs/portaudio", scons
looks for something like this:
path/to/portaudio/include path/to/portaudio/src/common
...to make the point further, here's the compile line I've used:
gcc -g -Wall -faltivec -maltivec -fnested-functions -fasm-blocks -DPD
-DDL_OPEN -DNEWHASH -DLOCKFREE -DDESIRE -DPABLIO -DPA_LOG_API_CALLS -
DUNISTD -DPA_USE_COREAUDIO -DMACOSX -DUSEAPI_JACK -DUSEAPI_PORTAUDIO -
DPA19 -DDEBUG -DHAVE_ALLOCA -DPD_INTERNAL -I/Library/Frameworks/
Tk.framework/Headers -I/Library/Frameworks/Tcl.framework/Headers -I/
usr/include/tcl8.4 -Isrc -I/Users/tigital/dev/portmidi -I/Users/
tigital/dev/portmidi/pm_common -I/Users/tigital/dev/portmidi/porttime
-I/Users/tigital/dev/portmidi/pm_mac -I/Users/tigital/dev/portaudio/
include -I/Users/tigital/dev/portaudio/src/common -c -o src/
s_audio_pa.o src/s_audio_pa.c
...of course, an easy fix here is to add ",papath+'/pa_common'" to
line 497 of the src/SConscript (ex. pdenv.Append(CPPPATH=[papath+'/
include',papath+'/src/common',papath+'/pa_common']) ), but that leads
to the following error:
gcc -g -Wall -faltivec -maltivec -fnested-functions -fasm-blocks -DPD
-DDL_OPEN -DNEWHASH -DLOCKFREE -DDESIRE -DPABLIO -DPA_LOG_API_CALLS -
DUNISTD -DPA_USE_COREAUDIO -DMACOSX -DUSEAPI_JACK -DUSEAPI_PORTAUDIO -
DPA19 -DDEBUG -DHAVE_ALLOCA -DPD_INTERNAL -I/Library/Frameworks/
Tk.framework/Headers -I/Library/Frameworks/Tcl.framework/Headers -I/
usr/include/tcl8.4 -Isrc -I/Users/tigital/dev/portmidi -I/Users/
tigital/dev/portmidi/pm_common -I/Users/tigital/dev/portmidi/porttime
-I/Users/tigital/dev/portmidi/pm_mac -I/Users/tigital/dev/portaudio/
include -I/Users/tigital/dev/portaudio/src/common -I/Users/tigital/
dev/portaudio/pa_common -c -o src/s_audio_paring.o src/s_audio_paring.c
scons: *** Source /Users/tigital/dev/portaudio/src/common/ pa_allocation.c' not found, needed by target
/Users/tigital/dev/
portaudio/src/common/pa_allocation.o'. Stop.
...unfortunately, I don't know where this is coming from: portaudio
in scons is spread out in several spots...
...one last question: are we now using s_audio_pa.c or
s_audio_portaudio.c?
james