On 08/13/12 12:43, Gonzalo Garramuno wrote:
> I'm trying to compile fltk3 but it fails with:
>
> Compiling fltk3png/png.c...
> fltk3png/png.c:14:21: fatal error: pngpriv.h: No such file or directory
> The file is in include/fltk3png, but the makefile does not refer to it.
Yes, just reported this on fltk.development myself.
Easy fix is to add the following to the makeinclude, and then 'make':
---- SNIP
.c.o:
echo Compiling $<...
$(CC) -I../include -I../include/fltk3png $(ARCHFLAGS) $(CFLAGS) -c
$< -o $@
^^^^^^^^^^^^^^^^^^^^^
ADD THIS
---- SNIP
So in other words:
BEFORE: $(CC) -I../include $(ARCHFLAGS) $(CFLAGS) -c $< -o $@
AFTER: $(CC) -I../include -I../include/fltk3png $(ARCHFLAGS) $(CFLAGS) -c
$< -o $@
Only needed that for the .c.o rule.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk