I have installed these libs (from source):
Freetype - 2.4.4
Allegro - 126.96.36.199
Expat - 2.0.1
libpng - 1.5.1
zlib - 1.2.5
I have modified the makefile so it would find all the libs and includes.
Unfortunately I get this error when I run make:
g++ -x c -MMD -funsigned-char -Wall -Wno-deprecated-declarations -I src/lua -I src/luasqlite3 -DDEBUGMODE -I /mnt/tmp2/stuff/libs/expat-2.0.1/../expat_bin/include -I /mnt/tmp2/stuff/libs/libpng_bin/include -I /mnt/tmp2/stuff/libs/zlib_bin/include -DUFO_SVNVERSION=\"1154M\" -O2 -pipe -I/mnt/tmp2/stuff/libs/freetype-2.4.4/../freetype_bin/include/freetype2 -I/mnt/tmp2/stuff/libs/freetype-2.4.4/../freetype_bin/include -DHAVE_FREETYPE -DGLYPH_TARGET=GLYPH_TARGET_ALLEGRO -DGK_NO_LEGACY -DHAVE_PNG -DLINUX -I/usr/local/include -c src/loadpng/loadpng.c -o obj/loadpng.o
src/loadpng/loadpng.c:22: error: 'Z_BEST_COMPRESSION' undeclared here (not in a function)
src/loadpng/loadpng.c: In function 'check_if_png':
src/loadpng/loadpng.c:72: warning: pointer targets in passing argument 1 of 'png_sig_cmp' differ in signedness
/mnt/tmp2/stuff/libs/libpng_bin/include/png.h:931: note: expected 'png_const_bytep' but argument is of type 'char *'
src/loadpng/loadpng.c: In function 'load_png':
src/loadpng/loadpng.c:266: error: dereferencing pointer to incomplete type
src/loadpng/loadpng.c: In function 'load_memory_png':
src/loadpng/loadpng.c:365: error: dereferencing pointer to incomplete type
make: *** [obj/loadpng.o] Error 1
I think Z_BEST_COMPRESSION has to do with PNG and ZLIB, so maybe I have the wrong versions of these...
Does anyone have an idea what's causing this error?
Edited by Luketski, 02 March 2011 - 06:07 AM.