Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» MacOSX - forked.net   » Compile Problems   » Dynamic libraries Question...

UBBFriend: Email this page to someone!    
Author Topic: Dynamic libraries Question...
Obscurian
Junior Member
Member # 90

posted September 12, 2001 11:53 AM      Profile for Obscurian     Send New Private Message      Edit/Delete Post  Reply With Quote 
I'm trying to compile zlib and libpng. (I'm trying to set up enlightenment and it wants a newer version of libpng.dylib...) I can configure, make, and test both libraries, but the created files are .a libraries, and I'm needing the .dylib! Does anybody know if it's possible to generate a .dylib from the .a file? or do I need to change the makefile and add some sort of dynamic flag?
Posts: 10 | Registered: Sep 2001  |  IP: Logged
chrisp
Junior Member
Member # 35

posted September 13, 2001 06:28 AM      Profile for chrisp   Author's Homepage     Send New Private Message      Edit/Delete Post  Reply With Quote 
You can find a lot of information about shared libraries on Darwin in the Porting Tips at the Fink website. In general it's not possible to create shared libs from a static archive, but on Darwin you can do that if you compiled the objects in the static archive with '-fno-common'.

In the case of zlib and libpng you'll have to patch the Makefiles. You can find patches for zlib 1.1.3 and libpng 1.0.12 in the Fink CVS repository. libpng 1.2.0 may already contain the necessary patches, I haven't checked yet.

-chrisp


Posts: 14 | From: Stuttgart, Germany | Registered: Aug 2001  |  IP: Logged

All times are Pacific Time  

Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Hop To:

Contact Us | macosx.forked.net

Powered by Infopop Corporation
Ultimate Bulletin BoardTM 6.1.0.2