Luketski Posted March 2, 2011 Report Share Posted March 2, 2011 (edited) I'm trying to compile UFO2000 from the SVN trunk dir, on Linux. I have installed these libs (from source):Freetype - 2.4.4Allegro - 4.4.0.1Expat - 2.0.1libpng - 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.osrc/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 typesrc/loadpng/loadpng.c: In function 'load_memory_png':src/loadpng/loadpng.c:365: error: dereferencing pointer to incomplete typemake: *** [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 March 2, 2011 by Luketski Link to comment Share on other sites More sharing options...
Luketski Posted March 3, 2011 Author Report Share Posted March 3, 2011 Ok, I could successfully compile it with libpng version 1.4.6beta05. Everything else stayed the same. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now