• 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: Converting a set of static libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting a set of static libraries


  • Subject: Re: Converting a set of static libraries
  • From: Jonas Maebe <email@hidden>
  • Date: Tue, 22 Aug 2006 10:16:02 +0200


On 21 aug 2006, at 23:36, Turtle Creek Software wrote:

mkdir fooobj
cd fooobj
ar x ../libfoo.a
gcc -dynamiclib -o ../libfoo.dylib *.o -install_name /usr/local/lib/
libfoo.dylib
cd ..
rm -rf fooobj

I was drinking liquid when I read the above, and unfortunately had to clean it off the screen! I guess some part of my brain accidentally read it out loud, and found it rather like Dr. Seuss.

To be honest, I don't know of a single IDE which is able to convert compiled static libraries into dynamic libraries using the GUI. Normally if you want to do that, you'll be told to get the source and recompile it into a dynamic library (which can be perfectly done using the GUI in Xcode or any other IDE). In fact, it's possible the above won't even work in case the static library has been compiled without PIC code.



Jonas _______________________________________________ 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: 
 >Re: Converting a set of static libraries (From: Turtle Creek Software <email@hidden>)

  • Prev by Date: Re: Re: *** file inconsistency: read 'I', expecting 'L'
  • Next by Date: Re: *** file inconsistency: read 'I', expecting 'L'
  • Previous by thread: Re: Converting a set of static libraries
  • Next by thread: gdb -arch flag not working
  • Index(es):
    • Date
    • Thread