Jump to content
XCOMUFO & Xenocide

Compiling from SVN trunk, what versions of PNG and ZLIB do I need?


Recommended Posts

I'm trying to compile UFO2000 from the SVN trunk dir, on Linux.

 

I have installed these libs (from source):

Freetype - 2.4.4

Allegro - 4.4.0.1

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...