[AD] [ alleg-Bugs-2938870 ] PhysFS addon requires internal zlib?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Bugs item #2938870, was opened at 2010-01-24 13:50
Message generated for change (Comment added) made by trentg
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2938870&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Addons
Group: 4.9
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Trent Gamblin (trentg)
Assigned to: Nobody/Anonymous (nobody)
Summary: PhysFS addon requires internal zlib?

Initial Comment:
I'm not sure if this is an MSVC specific issue (I'm guessing not), but I built PhysFS without the internal zlib library so I could share one with libpng. zlib doesn't seem to be linked in the physfs example so I get undefined references to zlib functions. Not sure how to find out of PhysFS is built with or without zlib.

----------------------------------------------------------------------

>Comment By: Trent Gamblin (trentg)
Date: 2010-01-24 20:49

Message:
Sure, whatever you have to do.

----------------------------------------------------------------------

Comment By: Peter Wang (tjaden)
Date: 2010-01-24 20:17

Message:
The patch is not quite right but it's easier if I just make the changes
than tell you about them :)

----------------------------------------------------------------------

Comment By: Trent Gamblin (trentg)
Date: 2010-01-24 19:55

Message:
Here is my proposed solution. Only tested on osx, and windows using mingw
and msvc.

----------------------------------------------------------------------

Comment By: Peter Wang (tjaden)
Date: 2010-01-24 17:12

Message:
You can use the check_c_source_compiles macro to check if a program
requires zlib in addition to ${PHYSFS_LIBRARY}.


----------------------------------------------------------------------

Comment By: Elias Pschernig (elias)
Date: 2010-01-24 14:16

Message:
We can probably simply always link the PhysFS example to zlib.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2938870&group_id=5665




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/