Deutsches Simutransforum

Normale Version: Probleme mit dem kompilieren von r3219
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Ich wollte man die neuen Einträge aus der Datei config.template ausprobieren.
Leider kompiliert ST bei mir mit den Einstellungen nicht.
Code:
===> CXX boden/grund.cc
g++ -O3 -fno-schedule-insns -minline-all-stringops -g -DDEBUG -fno-inline -O0 -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align   -DUSE_C -DBIG_ENDIAN -DUSE_SOFTPOINTER -DEBUG_ROUTES -DSHOW_FORE_GRUND -DEBUG_FLUSH_BUFFER -DAUTOMATIC_BRIDGES -DAUTOMATIC_TUNNELS -DAUTOJOIN_PUBLIC -DUSE_DIFFERENT_WIND -DUSE_16BIT_DIB -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -MMD -o boden/grund.o boden/grund.cc
===> CXX boden/wasser.cc
g++ -O3 -fno-schedule-insns -minline-all-stringops -g -DDEBUG -fno-inline -O0 -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align   -DUSE_C -DBIG_ENDIAN -DUSE_SOFTPOINTER -DEBUG_ROUTES -DSHOW_FORE_GRUND -DEBUG_FLUSH_BUFFER -DAUTOMATIC_BRIDGES -DAUTOMATIC_TUNNELS -DAUTOJOIN_PUBLIC -DUSE_DIFFERENT_WIND -DUSE_16BIT_DIB -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -MMD -o boden/wasser.o boden/wasser.cc
===> CXX boden/wege/kanal.cc
g++ -O3 -fno-schedule-insns -minline-all-stringops -g -DDEBUG -fno-inline -O0 -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align   -DUSE_C -DBIG_ENDIAN -DUSE_SOFTPOINTER -DEBUG_ROUTES -DSHOW_FORE_GRUND -DEBUG_FLUSH_BUFFER -DAUTOMATIC_BRIDGES -DAUTOMATIC_TUNNELS -DAUTOJOIN_PUBLIC -DUSE_DIFFERENT_WIND -DUSE_16BIT_DIB -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -MMD -o boden/wege/kanal.o boden/wege/kanal.cc
boden/grund.cc: In member function ‘void grund_t::display_overlay(sint16, sint16)’:
boden/grund.cc:1182: error: ‘raster_tile_width’ was not declared in this scope
make: *** [boden/grund.o] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...

config.default
Code:
#
# to compile:
# copy this file to config.default and adjust the settings
#

#BACKEND = allegro
#BACKEND = gdi
BACKEND = sdl
#BACKEND = mixer_sdl
#BACKEND = x11
#BACKEND = posix

#COLOUR_DEPTH = 8
COLOUR_DEPTH = 16

#OSTYPE = beos
#OSTYPE = cygwin
#OSTYPE = freebsd
#OSTYPE = haiku
OSTYPE = linux
#OSTYPE = mingw
#OSTYPE = mac

DEBUG = 3    # Level 1-3, higher number means more debug-friendly, see Makefile
OPTIMISE = 1 # Add umpteen optimisation flags
# PROFILE = 1

# Define these as empty strings, if you don't have allegro/sdl-config
#ALLEGRO_CONFIG = allegro-config
#SDL_CONFIG = sdl-config

VERBOSE = 1

# The following useful conditional compilation flags exist
#
# Needed to compile:
# USE_C: no assembler for copying (required for not using GCC on x86)
# BIG_ENDIAN: MUST be set for PPC/Motorola byte order! (old mac, amiga)
#
# Changing appearance:
# USE_SOFTPOINTER: emulate mouse pointer (set automatically in Makefile)
# HALF_HEIGHT: Enables half height tiles (8 pixel instead 16)
#
# Useful for debugging:
# DEBUG_ROUTES: show routing calculation information in minimap
# SHOW_FORE_GRUND: show which objects are drawn as foreground
# DEBUG_FLUSH_BUFFER: show the dirty areas on the screen
#
# Following flags alter game engine (and are off for standard builds)
# OTTD_LIKE: Enables half height tiles and crossconnects all industries
# AUTOMATIC_BRIDGES and AUTOMATIC_TUNNELS: will be built also for player
# AUTOJOIN_PUBLIC: stations next to a public stop will be joined to it
# MAX_CHOOSE_BLOCK_TILES=xxx: maximum distance between choose signal and a
#    target (undefined means no limit)
# USE_DIFFERENT_WIND: different airplane approach directions over the map
# DESTINATION_CITYCARS: Citycars can have a destination (not recommended)
#
# In order to use the flags, add a line like this: (-Dxxx)
FLAGS = -DUSE_C -DBIG_ENDIAN -DUSE_SOFTPOINTER -DEBUG_ROUTES -DSHOW_FORE_GRUND -DEBUG_FLUSH_BUFFER -DAUTOMATIC_BRIDGES -DAUTOMATIC_TUNNELS -DAUTOJOIN_PUBLIC -DUSE_DIFFERENT_WIND

EDIT:
Ohne die Option "-DSHOW_FORE_GRUND" funktioniert das Kompilieren.

Dwachs

das kompilieren mit sHOW_FOREGROUND soltle gehen.

Ist aber auch nur zum debuggen gedacht: das zeigt alle Kacheln die als Vordergrund gemalt werden (vor/hinter den kuenstlichen Aufschuettungen). Das sind auch meistens die stellen, die heisse Kandidaten fuer Grafikfehler waren (Sind?).