Pardon, my reply what's your CC step? for me 1. export PATH=$PATH:<compiler path> 2. export CC=<target>-gcc ex: mipsel-linux-gcc 3. make dep;make if u get GCC Linked against, u'r can fix it on build.mak file On Thu, 2008-09-18 at 15:07 +0200, samuel.vinson wrote: > > > Hi Salman, > > I think you need to create a symbolic link ;-) > You should localize arm-apple-darwin9-gcc ('wich > arm-apple-darwin9-gcc-4.0.1') > Go in this directory, and link ('ln -s arm-apple-darwin9-gcc-4.0.1 > arm-apple-darwin9-gcc') > > Samuel > > > Message du 18/09/08 12:50 > > De : "Salman" > > A : "pjsip list" > > Copie ? : > > Objet : [pjsip] Cross compiling PJSIP for iPhone ARM on Mac > 10.5.5 > > > > > > 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 > > > > > > > [ (pas de nom de fichier) (0.2 Ko) ] > > > Cr?ez votre adresse ?lectronique prenom.nom at laposte.net > 1 Go d'espace de stockage, anti-spam et anti-virus int?gr?s. > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org