I am trying to compile under Hardy 64-bit.
(I have reverted to revision 2153 since that was the last nightly build, and that runs on my machine)
I'm getting the following errors
===> CXX simgraph8.cc
simgraph8.cc:495: error: conflicting declaration ‘int tile_raster_width’
simgraph.h:52: error: ‘tile_raster_width’ has a previous declaration as ‘KOORD_VAL tile_raster_width’
simgraph8.cc:496: error: conflicting declaration ‘int base_tile_raster_width’
simgraph.h:55: error: ‘base_tile_raster_width’ has a previous declaration as ‘KOORD_VAL base_tile_raster_width’
simgraph8.cc:1472: warning: unused parameter ‘player’
simgraph8.cc: In function ‘void display_fb_internal(KOORD_VAL, KOORD_VAL, KOORD_VAL, KOORD_VAL, int, int, KOORD_VAL, KOORD_VAL, KOORD_VAL, KOORD_VAL)’:
simgraph8.cc:1699: error: cannot convert ‘PIXVAL*’ to ‘short unsigned int*’ in ****ignment
simgraph8.cc:1701: error: cannot convert ‘short unsigned int*’ to ‘PIXVAL*’ in ****ignment
simgraph8.cc: In function ‘int simgraph_init(KOORD_VAL, KOORD_VAL, int, int, int)’:
simgraph8.cc:2282: error: cannot convert ‘short unsigned int*’ to ‘PIXVAL*’ in ****ignment
simgraph8.cc:909: error: too many arguments to function ‘bool display_load_font(const char*)’
simgraph8.cc:2287: error: at this point in file
make: *** [simgraph8.o] Error 1
My config.default is this:
# OSTYPE must be one of: cygwin mingw beos mac linux freebsd
OSTYPE = linux
# BACKEND must be one of: sdl mixer_sdl allegro gdi x11
# COLOR_DEPTH must be one of: 8 16
BACKEND = sdl
COLOUR_DEPTH = 8
DEBUG = 3 # Level 1-3, higher number means more debug-friendly, see Makefile
OPTIMISE = 1 # Add umpteen optimisation flags
#PROFILE = 1
# other options are:
# HALF_HEIGHT: Enables half height tiles (8 pixel instead 16)
# OTTD_LIKE: Enables half height tiles and crossconnected industries; default folder pak.ttd/
FLAGS = -DSTEPS16 -DLITTLE_ENDIAN -DUSE_C
am I missing something obvious?