Thanks Benny/Alejandro, as it turned out, I was getting an error because I was trying to use libtool to combine a .a generated by xcode and the one generated by PJSIP. It seems the Xcode one is some sort of a 'fat file' library that can't be combined with the pjsip one. Anyhow, I solved it by keeping it as two libaries - one for PJSIP (using libtool -static) and one for the Xcode library (which is a wrapper on top of PJ) Benny, I haven't tried your script yet, but I am doing something pretty similar to what Alejandro suggested above - a single line to just group all the .as to a single .a best On Fri, Oct 1, 2010 at 11:26 PM, Benny Prijono <bennylp at teluu.com> wrote: > Hi, > > The attached script should do it (at least it works on Linux. You > should check the various ar and ranlib commands in the script if you > run it on Macs). > > Ideally we should do this in "make install", which already puts all > header/lib files into installation directory tree (the --prefix in > configure cmd), so the next step is to combine them into a single lib > and fix the system/external library dependency and put it in pkgconfig > information. Unfortunately I haven't had time to do it. > > Best regards, > Benny > > > On Sat, Oct 2, 2010 at 4:09 AM, Rob Wilkes <wilkrob at gmail.com> wrote: > > Hi, > > the current PJSIP iphone build process creates a large set of .a files. > Is > > it possible, instead, just to create a single .a easily? > > I tried copying all the generated libs to a folder then used libtool *.a > > -static -o libpjsip.a . While it generates the .a, when I link it to an > > app, I get all sorts of unresolved symbols. OTOH, when I link all the > > individual libraries, it works fine (I even tried ar -x *.a then libtool > *.o > > -static -o libpjsip.a). > > (I am using the right libtool - inside the /Developer/etc. directory, not > > /usr/bin) > > Any thoughts ? > > > > > > _______________________________________________ > > 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/20101002/7183f2a3/attachment.html>