Compile Error

149 views
Skip to first unread message

Mac

unread,
Mar 4, 2010, 4:43:14 PM3/4/10
to libHaru
Hi 2 all,

I'm getting following error when compiling with "--with-png"

checking libpng install prefix... /usr/local
checking for png_init_io in -lpng... no
configure: error: png_init_io() is missing, check config.log for more
details

and I'm quite stuck now ... if somebody could help me .. i would
really appreciate it ;-)

thx in advance

regards
mac

Antony Dovgal

unread,
Mar 5, 2010, 4:48:42 AM3/5/10
to lib...@googlegroups.com

Well.. I'm afraid the question might sound strange, but did you check the config.log ?

--
Wbr,
Antony Dovgal
---
http://pinba.org - realtime statistics for PHP

Mr. Kostuch Andreas

unread,
Mar 6, 2010, 8:07:31 AM3/6/10
to lib...@googlegroups.com
Hi,

well to be more specific ... interesting is to in include special compiled libpng in the config
I've already tried with the Includes and Library paths ( -L / -I ) but had no success.

I'm getting that the PNG Headers are not found ( but they are in the direcory : pngconf.h, png.h ) ... especially I'm getting this error with : --with-png=/path/to/headerdir

and in the config.log theres the message that the config.c is not found .. but the real error i believe is that the libpng is not in the same architecure i need

grtx.
mac

> --
> ---
> libHaru.org development mailing list
> To unsubscribe, send email to libharu-u...@googlegroups.com

Antony Dovgal

unread,
Mar 6, 2010, 9:33:08 AM3/6/10
to lib...@googlegroups.com
On 03/06/2010 04:07 PM, Mr. Kostuch Andreas wrote:
> I'm getting that the PNG Headers are not found ( but they are in the direcory : pngconf.h, png.h ) ...
> especially I'm getting this error with : --with-png=/path/to/headerdir

It should be --with-png=<libpng install PREFIX>, i.e. if the headers are in /usr/local/include, you should specify /usr/local as a value for this option.

> and in the config.log theres the message that the config.c is not found ..

No need to retell an error message when you can copy/paste it.

> but the real error i believe is that the libpng is not in the same architecure i need

What makes you think so?

Mr. Kostuch Andreas

unread,
Mar 6, 2010, 9:52:46 AM3/6/10
to lib...@googlegroups.com
I got it working .. thx

I've moved the files from a subdir in include in the include <dir> ... /test/include/png.h
and now it worked ... thx

mac

Am 06.03.2010 um 15:33 schrieb Antony Dovgal:

> On 03/06/2010 04:07 PM, Mr. Kostuch Andreas wrote:
>> I'm getting that the PNG Headers are not found ( but they are in the direcory : pngconf.h, png.h ) ...
>> especially I'm getting this error with : --with-png=/path/to/headerdir
>
> It should be --with-png=<libpng install PREFIX>, i.e. if the headers are in /usr/local/include, you should specify /usr/local as a value for this option.
>
>> and in the config.log theres the message that the config.c is not found ..
>
> No need to retell an error message when you can copy/paste it.
>
>> but the real error i believe is that the libpng is not in the same architecure i need
>
> What makes you think so?
>

ld: warning: in /usr/local/lib/libpng.dylib, file is not of required architecture
;-)

> --
> Wbr,
> Antony Dovgal
> ---
> http://pinba.org - realtime statistics for PHP
>

Reply all
Reply to author
Forward
0 new messages