Thank you all for your replies and help. I got it working. Here's how. First I had to export the compiler path with PATH=$PATH\:/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ Then I had to symbolically link using 'ln -s arm-apple-darwin9-gcc-4.0.1 arm-apple-darwin9-gcc' ---> Thanks Samuel :) Strangely, I also had to symbolically link the AR c"ar" with 'arm-apple-darwin9-ar' AND 'ranlib' with 'arm-apple-darwin9-ranlib' or I got the 'command not found' error for these. But now when I do make, I get the following ranlib error, which says 'no output file specified'. ranlib: file: ../lib/libpj-arm-apple-darwin9.a(pool_dbg.o) has no symbols arm-apple-darwin9-ranlib ../lib/libpj-arm-apple-darwin9.a arm-apple-darwin9-ranlib: no output file specified (specify with -o output) Usage: arm-apple-darwin9-ranlib -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] Usage: arm-apple-darwin9-ranlib -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load] make[2]: *** [../lib/libpj-arm-apple-darwin9.a] Error 1 make[1]: *** [pjlib] Error 2 make: *** [all] Error 1 Doesn't ranlib automatically generate the index without specifying an output. Can anyone please elaborate. Thanks. -- Regards, Salman On Fri, Sep 19, 2008 at 10:47 AM, pureroot <pureroot at gmail.com> wrote: > 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 > > > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080919/bdb6441c/attachment-0001.html