Just updated fltk3 to current (9661), and am getting these build errors
on a default 'make distclean; make':

* * *
[..]
Compiling fltk3gl/glut_font.cxx...
/usr/bin/ar cr ../lib/libfltk3gl.a ...
Compiling fltk3images/BMPImage.cxx...
Compiling fltk3images/FileIcon2.cxx...
Compiling fltk3images/GIFImage.cxx...
Compiling fltk3images/HelpDialog.cxx...
Compiling fltk3images/images_core.cxx...
Compiling fltk3images/JPEGImage.cxx...
Compiling fltk3images/PNGImage.cxx...
Compiling fltk3images/PNMImage.cxx...
/usr/bin/ar cr ../lib/libfltk3images.a ...
Compiling fltk3png/png.c...
fltk3png/png.c:14:21: error: pngpriv.h: No such file or directory
fltk3png/png.c:17: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'Your_png_h_is_not_version_1_5_10'
fltk3png/png.c:559: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'PNGAPI'
fltk3png/png.c:649: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'PNGAPI'
fltk3png/png.c:680: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'PNGAPI'
fltk3png/png.c:687: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'PNGAPI'
fltk3png/png.c:695: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'PNGAPI'
fltk3png/png.c:762: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before 'PNGAPI'
make[1]: *** [fltk3png/png.o] Error 1
make: *** [all] Error 1
* * *

        I turned off .SILENT so as to see the build flags:

* * *
=== making src ===
make[1]: Entering directory `/usr/local/src/fltk-3.0/src'
echo Compiling fltk3png/png.c...
Compiling fltk3png/png.c...
gcc -I../include     -Os -Wall -Wunused -Wno-format-y2k  -fno-exceptions 
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE 
-D_REENTRANT -I/usr/include/freetype2    -c fltk3png/png.c -o fltk3png/png.o
* * *

        Looks like -I../include/fltk3png might be needed to make that include 
resolve.
        I added that to the .c.o rule in makeinclude just to get past this 
error, but
        not sure what the right solution is.
_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to