Re: [GD-DEVEL] just installed GD, cannot use PNG

[email protected] (Pierre)
Newsgroups php.gd.devel
Message-ID <[email protected]>
Hi Niklas,


On Nov 5, 2007 7:55 PM, Niklas <[email protected]> wrote:
> Hello
> I have installed GD and some of the other recommended libraries
> (libpng, libjpeg etc).
> After installing it I tried to compile the basic example(http://
> www.boutell.com/gd/manual2.0.33.html#basics).
>
> When I compile using gcc myFile.c -lgd -lpng I get an error saying -
> lpng is not specified.
> So instead I tried linking the libpng.a file. But I did not have one.
> I installed using macports(a tool that downloads and compile some
> software).
> So I then downloaded the source from the libpng website and compiled
> it myself.
>
> -lpng still did not work, but at least I had a libpng.a file. So I
> passed the path to it to gcc. This time I did not get any error
> message, but the PNG file generated by the example cannot be opened.
> Do you guys have any suggestion on how this can be solved? I'm out of
> ideas.

Sorry for the delay, I missed your post in the list. Did you solve
your problem? If not can you show us some code?

Cheers,
--Pierre
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.