|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
modifying makefile/cHello, I am trying to get an audio synthesis api written with portaudio to work on the iPhone. I can probably just use the native audio api on the iphone, but it is exactly like the regular mac os api, as far as I know. It uses <AudioUnit/AudioUnit.h> and <AudioToolbox/AudioToolbox.h>, the two header files that portaudio uses. The problem is that when I try to use the synthesis api on the iphone, the compiler complains when linking because, not surprisingly, portaudio wasn't compiled with the iphone architecture. It says:
"warning: no rule to process file '/usr/local/include/portaudio.h' of type sourcecode.c.h for architecture armv6"
I am not an expert in config files or makefiles, but I tried to recompile portaudio after changing the config file to do the mac osx compilation if the architecture is armv6. I added this to the config.in file:
--------------------------------- AC_DEFINE(PA_USE_COREAUDIO)
if [[ -d /Developer/SDKs/MacOSX10.5.sdk ]] ; then SHARED_FLAGS="-Werror -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon -dynamiclib -arch x86_64 -arch ppc64 -arch i386 -arch ppc -arch armv6 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.3";
CFLAGS="-Werror $CFLAGS -arch x86_64 -arch ppc64 -arch i386 -arch ppc -arch armv6 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.3";
else SHARED_FLAGS="-Werror -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon -dynamiclib -arch i386 -arch ppc -arch armv6 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.3";
CFLAGS="-Werror $CFLAGS -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.3"; fi
-------------------- This changed the makefile to be: SHARED_FLAGS = -Werror -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon -dynamiclib -arch x86_64 -arch ppc64 -arch i386 -arch ppc -arch armv6 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.3
--------------- Unfortunately, after reconfiging and making, it didn't fix the above mentioned error. Is it hopeless trying to get portaudio on the iphone? That is, without getting down and dirty in the code? If it's too hairy and not as easy as I am expecting, I'll just use the regular audio callback api of the iphone...
Thanks a lot! Aaron _______________________________________________ Portaudio mailing list Portaudio@... http://techweb.rfa.org/mailman/listinfo/portaudio |
| Free Forum Powered by Nabble | Forum Help |