On 10 Nov 2012, at 10:46, Edzard Egberts wrote:
> For older projects I need fltk 1.1.10 and tried to compile it at new set
> up system. Compiling fltk-1.3.0 works, but 1.1.10 tells about an error
> in "png.h" and doesn't create libfltk_images.a (libfltk.a and
> libfltk_forms.a it creates):
>
> /usr/include/png.h:722:16: Fehler: forward declaration of »png_info {aka
> struct png_info_def}«
>
> I think it must be a problem of header-sequence or something like that.
>
> To work around I tried "./configure --disable-localpng" and "./configure
> --enable-localpng=no" but this doesn't work - configure finds system
> files and uses them, even when disabled or =no.
>
> So, how to solve the png.h problem, or how to build without using system
> files?
Hi Edzard,
I don't have an FC17 box, so this may not be relevant, but fltk-1.1 svn builds
fine for me on ubuntu-12.10, which I guess is of roughly the same "age" as FC17?
Anyway, I tried two trees, one with the system png and one with the local fltk
png; both built just fine and appear to be working correctly.
I configured with:
$ ./configure --enable-threads --enable-xft
and with:
$ ./configure --enable-threads --enable-xft --enable-localpng
--enable-localzlib
In each case.
What pnglib version does your system have? Mine appears to be 1.2.46 on the
system and 1.2.40 in the fltk built-in pulled from svn.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk