building for OSX with llvm

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

 



Hi Thomas,

Just add:
export AR="/Developer/usr/bin/ar rv"
export RANLIB=/Developer/usr/bin/ranlib

and re-run configure

Best regards,
Ming

On Fri, Nov 11, 2011 at 5:17 AM, Thomas Martin <tmemail at gmx.de> wrote:
> Hello Everybody,
>
> I successfully built 1.12 on OSX 10.6.8 with the standard build instructions (./configure, make dep, etc).
>
> However, when I step through an OSX application (that is linked with this version of the PJLIB) in XCode (4.2) the debugger does not always proceed step-by-step, but oftentimes jumps backwards a few lines, or skips certain section of my source-code altogether (reproducable).
>
> While the OSX app compiles with llvm-gcc-4.2 (since gcc is unsupported with XCode 4.2), it seems that the pjlib compiled with gcc (using the standard instructions).
>
> My suspicion is that the object-files/libraries (generated by llvm-gcc-4.2 and gcc) are not compatible enough to be linked correctly - thus, confusing the debugger. I have tried to re-build the pjlib with export CC=/Developer/usr/bin/llvm-gcc-4.2 prior to ./configure. This causes make to terminate with:
>
> make[2]: /Developer/usr/bin/llvm--4.2ar: No such file or directory
> make[2]: *** [../lib/libpj-i386-apple-darwin10.8.0.a] Error 1
> make[1]: *** [pjlib] Error 2
> make: *** [all] Error 1
>
> Has anybody encountered this problem and/or knows how to correctly build the pjlib for OSX using llvm-gcc-4.2 ?
>
> Thanks in advance.
>
> Best regards,
>
> Thomas
>
>
>
>
> _______________________________________________
> 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
>



[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