Re: ERROR: function LockSemaphoreInfo, file magick/semaphore.c, line 525

Bob Friesenhahn <[email protected]> Tue, 30 Mar 2010 13:39:06 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.bugs
Message-ID <[email protected]>
On Tue, 30 Mar 2010, Ron Lussier wrote:

> 
> On Mar 30, 2010, at 11:10 AM, Ron Lussier wrote:
>
>       When I build libpng 1.4 myself, it conflicts with the built-in libpng that OSX supplies.  I'm not sure if this is
>       a problem for GM... I'll leave that for you guys to decide.
> 
> 
> One more thing... if I *don't* build libpng 1.2 and try to rely on the theoretical OSX version, GM reports that it doesn't
> support PNGs.

On my G5 system with OS-X Leopard installed, there is no -lpng 
explicitly added, but GraphicsMagick does support PNG.  Here is the 
trailing part of the output from 'gm -version'.  Note that I have a 
config.site file which adds CC, CFLAGS, CPPFLAGS, CXX, CXXFLAGS, and 
LDFLAGS suitable for the GCC compiler I built and the libraries I 
installed:

Host type: powerpc-apple-darwin9.8.0

Configured using the command:
   /home/bfriesen/src/graphics/GraphicsMagick-head/configure 
'--with-quantum-depth=16' 'CFLAGS=-mcpu=G5 -O2 -g -Wall -Winline' 
'CXXFLAGS=-mcpu=G5 -O -g -Wall' '--enable-shared' '--with-modules' 
'--enable-static'

Final Build Parameters:
   CC       = gcc-4.4.0 -std=gnu99
   CFLAGS   = -fopenmp -mcpu=G5 -O2 -g -Wall -Winline -Wall 
-D_THREAD_SAFE
   CPPFLAGS = -I/usr/X11/include/freetype2 -I/usr/local/include 
-I/usr/X11/include -I/usr/local/include/libxml2
   CXX      = c++-4.4.0
   CXXFLAGS = -mcpu=G5 -O -g -Wall -D_THREAD_SAFE
   LDFLAGS  = -L/usr/local/lib -L/usr/X11/lib -L/usr/X11/lib 
-L/usr/local/lib
   LIBS     = -llcms -lfreetype -lXext -lSM -lICE -lX11 -lbz2 -lz -lm 
-lgomp -lpthread

% gm convert -list formats | grep PNG
       PNG P  rw-  Portable Network Graphics (libpng 1.2.24,1.2.35, zlib 1.2.3)
             See http://www.libpng.org/ for information on PNG..
     PNG24 P  rw-  24-bit RGB PNG, opaque only (libpng 1.2.24,1.2.35, zlib 1.2.3)
     PNG32 P  rw-  32-bit RGBA PNG, semitransparency OK (libpng 1.2.24,1.2.35, zlib 1.2.3)
      PNG8 P  rw-  8-bit indexed PNG, binary transparency only (libpng 1.2.24,1.2.35, zlib 1.2.3)

Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
Graphicsmagick-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-bugs