• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: including dylibs in my .app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: including dylibs in my .app


  • Subject: Re: including dylibs in my .app
  • From: Taylor Holliday <email@hidden>
  • Date: Fri, 29 May 2009 14:57:07 -0700

So I should stick the path in the "Other Linker Flags" in the target
info I presume?

Its unfortunate Xcode doesn't do this correctly.

thanks!
- Taylor

On Fri, May 29, 2009 at 2:52 PM, Tommy Nordgren
<email@hidden> wrote:
>
> On May 29, 2009, at 11:32 PM, Taylor Holliday wrote:
>
>> On Fri, May 29, 2009 at 2:17 PM, Taylor Holliday <email@hidden>
>> wrote:
>>>
>>>
>>> Since I'd like to go with including the libs in my app bundle and it
>>> seems I have to compile them myself, is there any reason why I
>>> shouldn't just statically link them?
>>>
>>> - Taylor
>>>
>>
>> It seems like whenever there's a corresponding dylib, Xcode links to
>> it instead of the static lib. For example, I replaced
>> libportaudio.dylib with libportaudio.a in my project. However the link
>> command still has -lportaudio and otool still reports that I'm linked
>> against the dylib. Any ideas?
>>
>> thanks!
>> - Taylor
>
>        If you link against a library libmylib.<ext> with option -lmylib, gcc
> will prefer a shared lib.
>        If you want to link against the static version libmylib.a,
> pass the full path of the library on the linker command line.
>
> -------------------------------------
> This sig is dedicated to the advancement of Nuclear Power
> Tommy Nordgren
> email@hidden
>
>
>
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >including dylibs in my .app (From: Taylor Holliday <email@hidden>)
 >Re: including dylibs in my .app (From: Nick Zitzmann <email@hidden>)
 >Re: including dylibs in my .app (From: Tommy Nordgren <email@hidden>)
 >Re: including dylibs in my .app (From: Taylor Holliday <email@hidden>)
 >Re: including dylibs in my .app (From: Tommy Nordgren <email@hidden>)
 >Re: including dylibs in my .app (From: Jason Foreman <email@hidden>)
 >Re: including dylibs in my .app (From: Taylor Holliday <email@hidden>)
 >Re: including dylibs in my .app (From: Taylor Holliday <email@hidden>)
 >Re: including dylibs in my .app (From: Tommy Nordgren <email@hidden>)

  • Prev by Date: Re: including dylibs in my .app
  • Next by Date: Re: Writing Cocoa apps w/o using Interface Builder
  • Previous by thread: Re: including dylibs in my .app
  • Next by thread: Re: including dylibs in my .app
  • Index(es):
    • Date
    • Thread