Cross compiling PJSIP for iPhone ARM on Mac 10.5.5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I am trying to compile PJSIP on a mac with the official IPhone 2.0 SDK.I
followed the instructions given at
http://code.google.com/p/siphon/wiki/Compilation

This is what I've done so far (after following the instructions on the site)
.

> autoconf aconfigure.ac > aconfigure

This works fine. Next I did

> ./aconfigure --host=arm-apple-darwin9
CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1
CFLAGS="-arch armv6 -pipe -O0 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk -I
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/usr/include/gcc/darwin/4.0"
LDFLAGS="-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/IphoneOS2.0.sdk/usr/lib"
CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp
AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar
RANLIB=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib
--disable-speex-aec --disable-speex-codec --disable-l16-codec
--disable-g722-codec --disable-ilbc-codec

This works fine. It detects that I am trying to cross compile and finds the
arm-apple-darwin9-gcc compiler. Here's a snip of the output.

checking build system type... i386-apple-darwin9.5.0
checking host system type... arm-apple-darwin9
checking target system type... arm-apple-darwin9
checking for arm-apple-darwin9-gcc...
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1
accepts -g... yes
checking for
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1
option to accept ISO C89... none needed

Now when I try make dep or make, I get the error:
 "arm-apple-darwin9-gcc....... Command not found". Here's a snip of the
output.

for dir in pjlib pjlib-util pjnath third_party pjmedia pjsip pjsip-apps; do
\
if make  -C $dir/build all; then \
    true; \
else \
    exit 1; \
fi; \
done
make -f /Users/salman/Pjsip/pjproject-1.0/build/rules.mak APP=PJLIB
app=pjlib ../lib/libpj-arm-apple-darwin9.a
arm-apple-darwin9-gcc -c -Wall  -DPJ_AUTOCONF=1 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk
 -I../include \
-o output/pjlib-arm-apple-darwin9/file_access_unistd.o \
../src/pj/file_access_unistd.c
make[2]: arm-apple-darwin9-gcc: Command not found
make[2]: *** [output/pjlib-arm-apple-darwin9/file_access_unistd.o] Error 127
make[1]: *** [pjlib] Error 2
make: *** [all] Error 1


Is there sometihing that I'm missing? Any help will be appreciated.
Thanks.

-- 
Regards,
Salman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080918/9dbabfec/attachment-0001.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux