To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dev.macOpen lugnet.cad.dev.mac in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / Macintosh / 210
209  |  211
Subject: 
Re: pressing keys causes LDGLite to step
Newsgroups: 
lugnet.cad.dev.mac
Date: 
Fri, 21 Jun 2002 20:33:51 GMT
Viewed: 
2447 times
  
In lugnet.cad.dev.mac, Jim DeVona writes:
On Friday, June 21, 2002, at 03:17  PM, Don Heyse wrote:
I just built a version with libpng statically linked:

  http://ldglite.sf.net/ldgliteosx0_9_5e.zip

Give this one a try and see if it has the same problem with zlib.  If
so, I'll try and statically link zlib as well.

PNG works now! Please clarify for me, does having it statically linked
still require that you install libpng? I gather that it does.

No.  Static linking means the PNG code from libpng is added to the
ldglite executable.  It should not search for libpng.dylib at runtime.
However since zlib is dynamically linked, it will search for that at
runtime.  But it looks like that library comes with OS X by default.

I discovered the OS X machine on the sourceforge compile farm had the
fink packages installed in the /sw directory.  This includes both static
and dynamic versions of libpng.  Because everyone will not necessarily
have the fink packages installed, I built a version of ldglite with the
static library version of libpng.  Just edit the PNG_ lines in
makefile.macx to look like this to build it.

  PNG_FLAGS=-DUSE_PNG -I/sw/include
  PNG_LIBS= /sw/lib/libpng.a -lz

You can use the shared libpng library if you have the fink packages.
If you're able to build it for yourself with libpng, then you probably
have both the static library and the dynamic one, so you might well use
the dynamic library to reduce the size of the ldglite executable.

  PNG_LIBS= -lpng -lz -L/sw/lib

Don



Message is in Reply To:
  Re: pressing keys causes LDGLite to step
 
(...) PNG works now! Please clarify for me, does having it statically linked still require that you install libpng? I gather that it does. Sometime, maybe this weekend, I hope to write up some new instructions on using ldglite on Mac OS X, to help (...) (22 years ago, 21-Jun-02, to lugnet.cad.dev.mac)

12 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR