I have a working compile script at http://opensource.mrgeckosmedia.com/?a=tree&p=VoiceMac&h=7884e6e1fcf02d9483f30a09ecfe544ea253d9c4&hb=5dc36cc158c42257da9aaa4da890320199715b22&f=SIPif you want to try it. It compiles iPhone and iPhone simulator and makes a "fat" library. Things to note, you do not want to put it in a folder that it's parents has a space or '. Hope you get it working. Sent from my iPod 3G On Oct 3, 2010, at 9:00 AM, Rob Wilkes <wilkrob at gmail.com> wrote: Even, yes, I am following it exactly. Here is a rundown: a) My OS: Snow Leopard (10.6) b) I've upgraded my iphone SDK to 4.1 c) When I look at the various SDKs I have under iPhoneSimulator, they are iPhoneSimulator3.2.sdk/ iPhoneSimulator4.0.sdk/ iPhoneSimulator4.1.sdk/ Note: In ./configure-iphone, looks like IPHONESDK is hardcoded to pt. to 3.2sdk. I commented it so it takes the latest version. If I did not, all tries would fail (failed sanity check) Try 1 ===== export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 ./configure-iphone checking whether the C compiler works... no aconfigure: error: C compiler cannot create executables config.log error ld: library not found for -lcrt1.10.5.o Try 2 ===== export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 ./configure-iphone LDFLAGS=-L/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/usr/lib/ (works) make dep && make clean && make Undefined symbols: "_AudioComponentInstanceNew" (Followed by many other _Audio symbols) Try 3 (passing LDFLAGS to pt. to 3.2 sdk and forcing configure-iphone to use 3.2sdk) ===== Edit ./configure-iphone, and enable that line at top IPHONESDK=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 ./configure-iphone LDFLAGS=-L/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/usr/lib/ checking how to run the C preprocessor... /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 -E -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk aconfigure: error: in `/Users/arjun/projects/hsc/Saynow/SayNowiPhoneVoIPSDK/pjproject': aconfigure: error: C preprocessor "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 -E -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk" fails sanity check Config.log: In file included from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/include/sys/_types.h:33, from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/include/_types.h:27, from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/include/stdio.h:64, from conftest.c:9: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/include/machine/_types.h:34:25: error: i386/_types.h: No such file or directory On Sun, Oct 3, 2010 at 4:56 AM, Even Andr? Fiskvik <eaf at oyatel.com> wrote: > On OS X, compiling for the simulator should not be a problem. > > Did you try to follow the instructions presented in this thread, and which > now also are available on the wiki? > I'm compiling for both simulator and device without any problems on OS X > 10.6, iOS 4.x SDKs. > > See: https://trac.pjsip.org/repos/wiki/Getting-Started/iPhone under > "Simulator" > > > Best regards, > Even Andr? > > On 3. okt. 2010, at 03.39, Rob Wilkes wrote: > > Sorry, I missed the -L in LDFLAGS. That was solved, but now I've landed > into other issues like failed sanity checks (blah blah). Let me spend more > time tomorrow and then I'll get back.... > > > > On Sat, Oct 2, 2010 at 9:35 PM, Rob Wilkes <wilkrob at gmail.com> wrote: > >> Grr, spoke to soon. >> Mr Gecko, I tried invoking this line from the cmd line and it worked after >> switching my CC as I wrote before, but aconfigure still cannot find the >> right crt file (fortunately, it is 10.6 not 10.5) >> >> aconfigure:2745: >> /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/i686-apple-darwin10-gcc-4.2.1 >> -O2 -Wno-unused-label -isysroot >> /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk -O2 >> -isysroot >> /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk >> -framework AudioToolbox -framework Foundation conftest.c >&5 >> ld: library not found for -lcrt1.10.6.o >> >> I tried calling ./configure-iphone >> LDFLAGS=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/usr/lib >> but got the same error when running ./configure-iphone >> >> Any thoughts? >> >> On Sat, Oct 2, 2010 at 9:21 PM, Rob Wilkes <wilkrob at gmail.com> wrote: >> >>> Well, heck problem solved. I tried adding LDFLAGS. that did not work too. >>> The solution was to use i686-apple-darwin10-gcc-4.2.1 not gcc-4.0.1 >>> >>> >>> On Sat, Oct 2, 2010 at 9:16 PM, Mr. Gecko <grmrgecko at gmail.com> wrote: >>> >>>> crt1.10.5.o is quite annoying on 10.5. I had problems with compiling >>>> with 10.4 that had to do with that. Maybe you can try and add >>>> LDFLAGS="-L/usr/lib" before the configure command. >>>> >>>> On Oct 2, 2010, at 8:09 PM, Rob Wilkes wrote: >>>> >>>> Hehe. >>>> I did, but I looked again. >>>> I think I know what the problem is, but don't yet know how to solve >>>> it... let me see... >>>> >>>> aconfigure:2723: checking whether the C compiler works >>>> aconfigure:2745: >>>> /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/i686-apple-darwin10-gcc-4.0.1 >>>> -O2 -Wno-unused-label -isysroot >>>> /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk -O2 >>>> -isysroot >>>> /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk >>>> -framework AudioToolbox -framework Foundation conftest.c >&5 >>>> ld: library not found for -lcrt1.10.5.o >>>> collect2: ld returned 1 exit status >>>> >>>> I am running Snow Leopard, which i 10.6. Looks like the scrpt is looking >>>> for 10.5 ? >>>> >>>> >>>> On Sat, Oct 2, 2010 at 9:00 PM, Mr. Gecko <grmrgecko at gmail.com> wrote: >>>> >>>>> How about that? That suggests something you should try. If all fails, >>>>> look at >>>>> http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2010-October/011832.html >>>>> . >>>>> >>>>> On Oct 2, 2010, at 7:51 PM, Rob Wilkes wrote: >>>>> >>>>> > See `config.log' for more details >>>>> >>>>> >>>> >>>> >>> >> > _______________________________________________ > 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 > > _______________________________________________ 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/20101003/d9f0a013/attachment.html>