JGR's Patch Pack

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

User avatar
JGR
Tycoon
Tycoon
Posts: 2590
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: JGR's Patch Pack

Post by JGR »

Mizari wrote:This seems to have that bug (day-length related) that makes departure boards display erroneous and constantly updating times, as used to happen to Hard Patch-pack before it was fixed.

Also, the time (the minutes, etc) seem to move extremely slow compared to Spring Patch Pack?
I've used a different day-length patch to SpringPP, so the authors may have had different ideas about how long a minute should be by default.
There a setting (in interface -> wall clock) to set the number of ticks per minute.

I'll have a look at the departure boards issue, thanks for reporting the bug.
Edit: It seems the timetable window has the same issue.
Edit 2: This is fixed now. Will probably do a release tomorrow or so.
Edit 3: This is now in v0.2.0.

Edit 3:
Comm Cody wrote:Now if there was only a way to merge this with Cirdan's map pack and HackABit tree line patch, I would have my dream OTTD build.
The tree line patch is also now in v0.2.0, with some modifications.
Ex TTDPatch Coder
Patch Pack, Github
User avatar
Valle
Transport Coordinator
Transport Coordinator
Posts: 284
Joined: 15 May 2007 11:35
Location: Germany

Re: JGR's Patch Pack

Post by Valle »

With the latest source from github (v0.2.0), one warning and four errors occurred while compiling on OS X Yosemite.
It looks like rail_cmd.cpp is the culprit to my uneducated eyes.

Code: Select all

Last login: Tue Aug 25 12:54:08 on ttys000
Valentins-MacBook-Pro:~ Val$ cd /Users/Val/Downloads/OpenTTD-patches-jgrpp-2 
Valentins-MacBook-Pro:OpenTTD-patches-jgrpp-2 Val$ ./configure
checking awk... awk
detecting OS... OSX
checking build system type... x86_64-apple-darwin14.5.0
checking host system type... x86_64-apple-darwin14.5.0
checking universal build... no
checking build cc... gcc
checking host cc... gcc
checking build c++... g++
checking host c++... g++
checking strip... disabled
checking builtin depend... yes
checking makedepend... disabled
detecting cpu-type... 64 bits
detecting SSE... found
checking static... no
checking unicode... no
using debug level... no
using desync debug level... no
using link time optimization... no
checking OSX sysroot... no (use system default)
checking Allegro... OSX, skipping
checking SDL... OSX, skipping
checking COCOA... found
checking whether to enable the Quartz window subdriver... yes
checking Quickdraw window subdriver... disabled (64 bits)
checking GDI video driver... not Windows, skipping
checking dedicated... not selected
checking console application... not Windows, skipping
checking network... found
checking squirrel... found
checking translator... no
checking assert... enabled
checking zlib... found
checking liblzma... found
checking lzo2... found
checking libxdg-basedir... found
checking libpng... found
checking freetype2... not found
checking libfontconfig... OSX, skipping
checking icu-lx... not found
checking icu-i18n... not found
checking psp-config... not PSP, skipping
checking libtimidity... not found
checking direct-music... not Windows, skipping
checking sort... sort
checking endianness... PREPROCESSOR
suppress language errors... no
checking stripping... skipped
checking distcc... no (only used when forced)
checking ccache... no (only used when forced)
checking grfcodec... not found
checking nforenum... not found
detecting ppc970 (G5)... no
checking revision... no detection
WARNING: there is no means to determine the version.
WARNING: please use a subversion, mercurial, or git checkout of OpenTTD.
WARNING: you can only join game servers that have been compiled without
WARNING:   version detection.
WARNING: there is a great chance you desync.
WARNING: USE WITH CAUTION!
checking iconv... found
checking if iconv has non-const inbuf... yes
checking whether to link to iconv... yes
personal home directory... Documents/OpenTTD
shared data directory... /Library/Application\ Support/OpenTTD
installation directory... /
icon theme directory... none
manual page directory... share/man/man6
menu item directory... none
clang: error: unsupported option '-dumpspecs'
clang: error: no input files
clang: error: unsupported option '-dumpspecs'
clang: error: no input files
using CFLAGS_BUILD...  -Wall -Wno-multichar -Wsign-compare -Wundef -Wwrite-strings -Wpointer-arith -W -Wno-unused-parameter -Wredundant-decls -Wformat=2 -Wformat-security -Winit-self -fno-strict-aliasing -Wcast-qual -fno-strict-overflow -Wnon-virtual-dtor -DOSX
using CXXFLAGS_BUILD... 
using LDFLAGS_BUILD... 
using CFLAGS...  -O2 -fomit-frame-pointer  -Wall -Wno-multichar -Wsign-compare -Wundef -Wwrite-strings -Wpointer-arith -W -Wno-unused-parameter -Wredundant-decls -Wformat=2 -Wformat-security -Winit-self -fno-strict-aliasing -Wcast-qual -fno-strict-overflow -Wnon-virtual-dtor -DOSX -DWITH_SSE -isystem/opt/local/include -DNO_QUICKTIME -mmacosx-version-min=10.5 -DUNIX -DWITH_COCOA -DENABLE_COCOA_QUARTZ -DWITH_ZLIB   -DWITH_LZMA -I/usr/local/Cellar/xz/5.2.1/include   -DWITH_LZO -DWITH_XDG_BASEDIR -I/usr/local/Cellar/libxdg-basedir/1.2.0/include   -D_SQ64 -I/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/3rdparty/squirrel/include -DWITH_PNG -I/usr/local/Cellar/libpng/1.6.17/include/libpng16   -DWITH_ICONV -DENABLE_NETWORK -DWITH_PERSONAL_DIR -DPERSONAL_DIR=\"Documents/OpenTTD\" -DWITH_SHARED_DIR -DSHARED_DIR=\"/Library/Application\ Support/OpenTTD\" -DGLOBAL_DATA_DIR=\"/usr/local/share/games/openttd\"
using CXXFLAGS... 
using LDFLAGS... -lstdc++ -lc -F/System/Library/Frameworks -framework Cocoa -framework Carbon -framework AudioUnit -framework AudioToolbox -L/usr/lib -lz   -L/usr/local/Cellar/xz/5.2.1/lib -llzma   -llzo2 -L/usr/local/Cellar/libxdg-basedir/1.2.0/lib -lxdg-basedir   -L/usr/local/Cellar/libpng/1.6.17/lib -lpng16   -liconv   -framework Cocoa
Generating Makefile...
Generating lang/Makefile...
Generating setting/Makefile...
Generating grf/Makefile...
Generating objs/Makefile...
Valentins-MacBook-Pro:OpenTTD-patches-jgrpp-2 Val$ make
[LANG] Compiling and Linking endian_check
[LANG] Testing endianness for host
[LANG] Compiling core/alloc_func.cpp
[LANG] Compiling string.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/string.cpp:54:49: warning: 
      format string is not a string literal [-Wformat-nonliteral]
        return min((int)diff, vsnprintf(str, diff + 1, format, ap));
                                                       ^~~~~~
1 warning generated.
[LANG] Compiling strgen/strgen_base.cpp
[LANG] Compiling strgen/strgen.cpp
[LANG] Compiling getoptdata.cpp
[LANG] Compiling and Linking strgen
[LANG] Generating table/strings.h
[LANG] Compiling language afrikaans
[LANG] Compiling language arabic_egypt
[LANG] Compiling language basque
[LANG] Compiling language belarusian
[LANG] Compiling language brazilian_portuguese
[LANG] Compiling language bulgarian
[LANG] Compiling language catalan
[LANG] Compiling language croatian
[LANG] Compiling language czech
[LANG] Compiling language danish
[LANG] Compiling language dutch
[LANG] Compiling language english
[LANG] Compiling language english_AU
[LANG] Compiling language english_US
[LANG] Compiling language esperanto
[LANG] Compiling language estonian
[LANG] Compiling language faroese
[LANG] Compiling language finnish
[LANG] Compiling language french
[LANG] Compiling language gaelic
[LANG] Compiling language galician
[LANG] Compiling language german
[LANG] Compiling language greek
[LANG] Compiling language hebrew
[LANG] Compiling language hungarian
[LANG] Compiling language icelandic
[LANG] Compiling language indonesian
[LANG] Compiling language irish
[LANG] Compiling language italian
[LANG] Compiling language japanese
[LANG] Compiling language korean
[LANG] Compiling language latin
[LANG] Compiling language latvian
[LANG] Compiling language lithuanian
[LANG] Compiling language luxembourgish
[LANG] Compiling language malay
[LANG] Compiling language norwegian_bokmal
[LANG] Compiling language norwegian_nynorsk
[LANG] Compiling language polish
[LANG] Compiling language portuguese
[LANG] Compiling language romanian
[LANG] Compiling language russian
[LANG] Compiling language serbian
[LANG] Compiling language simplified_chinese
[LANG] Compiling language slovak
[LANG] Compiling language slovenian
[LANG] Compiling language spanish
[LANG] Compiling language swedish
[LANG] Compiling language tamil
[LANG] Compiling language thai
[LANG] Compiling language traditional_chinese
[LANG] Compiling language turkish
[LANG] Compiling language ukrainian
[LANG] Compiling language vietnamese
[LANG] Compiling language welsh
[SETTING] Compiling and Linking endian_check
[SETTING] Testing endianness for host
[SETTING] Compiling core/alloc_func.cpp
[SETTING] Compiling string.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/string.cpp:54:49: warning: 
      format string is not a string literal [-Wformat-nonliteral]
        return min((int)diff, vsnprintf(str, diff + 1, format, ap));
                                                       ^~~~~~
1 warning generated.
[SETTING] Compiling ini_load.cpp
[SETTING] Compiling settingsgen/settingsgen.cpp
[SETTING] Compiling getoptdata.cpp
[SETTING] Compiling and Linking settings_gen
[SETTING] Generating table/settings.h
make[1]: Nothing to be done for `all'.
[SRC] Compiling and Linking endian_check
[SRC] Testing endianness for target
[SRC] Compiling and linking depend
[SRC] DEP CHECK (all files)
[SRC] Compiling 3rdparty/md5/md5.cpp
[SRC] Compiling 3rdparty/squirrel/sqstdlib/sqstdaux.cpp
[SRC] Compiling 3rdparty/squirrel/sqstdlib/sqstdmath.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqapi.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqbaselib.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqclass.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqcompiler.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqdebug.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqfuncstate.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqlexer.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqmem.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqobject.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqstate.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqtable.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqvm.cpp
[SRC] Compiling ai/ai_config.cpp
[SRC] Compiling ai/ai_core.cpp
[SRC] Compiling ai/ai_gui.cpp
[SRC] Compiling ai/ai_info.cpp
[SRC] Compiling ai/ai_instance.cpp
[SRC] Compiling ai/ai_scanner.cpp
[SRC] Compiling aircraft_cmd.cpp
[SRC] Compiling aircraft_gui.cpp
[SRC] Compiling airport.cpp
[SRC] Compiling airport_gui.cpp
[SRC] Compiling animated_tile.cpp
[SRC] Compiling articulated_vehicles.cpp
[SRC] Compiling autoreplace.cpp
[SRC] Compiling autoreplace_cmd.cpp
[SRC] Compiling autoreplace_gui.cpp
[SRC] Compiling base_consist.cpp
[SRC] Compiling blitter/32bpp_anim.cpp
[SRC] Compiling blitter/32bpp_anim_sse4.cpp
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_anim_sse4.cpp:17:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_anim_sse4.hpp:26:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_sse4.hpp:25:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_ssse3.hpp:25:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_sse2.hpp:25:
/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_sse_type.h:33:10: warning: 
      'ALIGN' macro redefined [-Wmacro-redefined]
        #define ALIGN(n) __attribute__ ((aligned (n)))
                ^
/usr/include/i386/param.h:83:9: note: previous definition is here
#define ALIGN(p)        __DARWIN_ALIGN(p)
        ^
1 warning generated.
[SRC] Compiling blitter/32bpp_base.cpp
[SRC] Compiling blitter/32bpp_optimized.cpp
[SRC] Compiling blitter/32bpp_simple.cpp
[SRC] Compiling blitter/32bpp_sse2.cpp
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_sse2.cpp:17:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_sse2.hpp:25:
/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_sse_type.h:33:10: warning: 
      'ALIGN' macro redefined [-Wmacro-redefined]
        #define ALIGN(n) __attribute__ ((aligned (n)))
                ^
/usr/include/i386/param.h:83:9: note: previous definition is here
#define ALIGN(p)        __DARWIN_ALIGN(p)
        ^
1 warning generated.
[SRC] Compiling blitter/32bpp_sse4.cpp
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_sse4.cpp:17:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_sse4.hpp:25:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_ssse3.hpp:25:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_sse2.hpp:25:
/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_sse_type.h:33:10: warning: 
      'ALIGN' macro redefined [-Wmacro-redefined]
        #define ALIGN(n) __attribute__ ((aligned (n)))
                ^
/usr/include/i386/param.h:83:9: note: previous definition is here
#define ALIGN(p)        __DARWIN_ALIGN(p)
        ^
1 warning generated.
[SRC] Compiling blitter/32bpp_ssse3.cpp
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_ssse3.cpp:17:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_ssse3.hpp:25:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_sse2.hpp:25:
/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/blitter/32bpp_sse_type.h:33:10: warning: 
      'ALIGN' macro redefined [-Wmacro-redefined]
        #define ALIGN(n) __attribute__ ((aligned (n)))
                ^
/usr/include/i386/param.h:83:9: note: previous definition is here
#define ALIGN(p)        __DARWIN_ALIGN(p)
        ^
1 warning generated.
[SRC] Compiling blitter/8bpp_base.cpp
[SRC] Compiling blitter/8bpp_optimized.cpp
[SRC] Compiling blitter/8bpp_simple.cpp
[SRC] Compiling blitter/base.cpp
[SRC] Compiling blitter/null.cpp
[SRC] Compiling bmp.cpp
[SRC] Compiling bootstrap_gui.cpp
[SRC] Compiling bridge_gui.cpp
[SRC] Compiling bridge_map.cpp
[SRC] Compiling build_vehicle_gui.cpp
[SRC] Compiling cargoaction.cpp
[SRC] Compiling cargomonitor.cpp
[SRC] Compiling cargopacket.cpp
[SRC] Compiling cargotype.cpp
[SRC] Compiling cheat.cpp
[SRC] Compiling cheat_gui.cpp
[SRC] Compiling clear_cmd.cpp
[SRC] Compiling command.cpp
[SRC] Compiling company_cmd.cpp
[SRC] Compiling company_gui.cpp
[SRC] Compiling console.cpp
[SRC] Compiling console_cmds.cpp
[SRC] Compiling console_gui.cpp
[SRC] Compiling core/alloc_func.cpp
[SRC] Compiling core/bitmath_func.cpp
[SRC] Compiling core/geometry_func.cpp
[SRC] Compiling core/math_func.cpp
[SRC] Compiling core/pool_func.cpp
[SRC] Compiling core/random_func.cpp
[SRC] Compiling cpu.cpp
[SRC] Compiling crashlog.cpp
[SRC] Compiling currency.cpp
[SRC] Compiling date.cpp
[SRC] Compiling date_gui.cpp
[SRC] Compiling debug.cpp
[SRC] Compiling dedicated.cpp
[SRC] Compiling departures.cpp
[SRC] Compiling departures_gui.cpp
[SRC] Compiling depot.cpp
[SRC] Compiling depot_cmd.cpp
[SRC] Compiling depot_gui.cpp
[SRC] Compiling disaster_vehicle.cpp
[SRC] Compiling dock_gui.cpp
[SRC] Compiling driver.cpp
[SRC] Compiling economy.cpp
[SRC] Compiling effectvehicle.cpp
[SRC] Compiling elrail.cpp
[SRC] Compiling engine.cpp
[SRC] Compiling engine_gui.cpp
[SRC] Compiling error_gui.cpp
[SRC] Compiling fileio.cpp
[SRC] Compiling fios.cpp
[SRC] Compiling fios_gui.cpp
[SRC] Compiling fontcache.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/fontcache.cpp:30:18: warning: 
      unused variable 'MAX_FONT_SIZE' [-Wunused-const-variable]
static const int MAX_FONT_SIZE     = 72; ///< Maximum font size.
                 ^
1 warning generated.
[SRC] Compiling fontdetection.cpp
[SRC] Compiling game/game_config.cpp
[SRC] Compiling game/game_core.cpp
[SRC] Compiling game/game_info.cpp
[SRC] Compiling game/game_instance.cpp
[SRC] Compiling game/game_scanner.cpp
[SRC] Compiling game/game_text.cpp
[SRC] Compiling gamelog.cpp
[SRC] Compiling genworld.cpp
[SRC] Compiling genworld_gui.cpp
[SRC] Compiling gfx.cpp
[SRC] Compiling gfx_layout.cpp
[SRC] Compiling gfxinit.cpp
[SRC] Compiling goal.cpp
[SRC] Compiling goal_gui.cpp
[SRC] Compiling graph_gui.cpp
[SRC] Compiling ground_vehicle.cpp
[SRC] Compiling group_cmd.cpp
[SRC] Compiling group_gui.cpp
[SRC] Compiling heightmap.cpp
[SRC] Compiling highscore.cpp
[SRC] Compiling highscore_gui.cpp
[SRC] Compiling hotkeys.cpp
[SRC] Compiling industry_cmd.cpp
[SRC] Compiling industry_gui.cpp
[SRC] Compiling infrastructure.cpp
[SRC] Compiling ini.cpp
[SRC] Compiling ini_load.cpp
[SRC] Compiling intro_gui.cpp
[SRC] Compiling landscape.cpp
[SRC] Compiling linkgraph/demands.cpp
[SRC] Compiling linkgraph/flowmapper.cpp
[SRC] Compiling linkgraph/linkgraph.cpp
[SRC] Compiling linkgraph/linkgraph_gui.cpp
[SRC] Compiling linkgraph/linkgraphjob.cpp
[SRC] Compiling linkgraph/linkgraphschedule.cpp
[SRC] Compiling linkgraph/mcf.cpp
[SRC] Compiling linkgraph/refresh.cpp
[SRC] Compiling main_gui.cpp
[SRC] Compiling map.cpp
[SRC] Compiling misc.cpp
[SRC] Compiling misc/countedobj.cpp
[SRC] Compiling misc/dbg_helpers.cpp
[SRC] Compiling misc/getoptdata.cpp
[SRC] Compiling misc_cmd.cpp
[SRC] Compiling misc_gui.cpp
[SRC] Compiling mixer.cpp
[SRC] Compiling music.cpp
[SRC] Compiling music/cocoa_m.cpp
[SRC] Compiling music/extmidi.cpp
[SRC] Compiling music/null_m.cpp
[SRC] Compiling music/qtmidi.cpp
[SRC] Compiling music_gui.cpp
[SRC] Compiling network/core/address.cpp
[SRC] Compiling network/core/core.cpp
[SRC] Compiling network/core/host.cpp
[SRC] Compiling network/core/packet.cpp
[SRC] Compiling network/core/tcp.cpp
[SRC] Compiling network/core/tcp_admin.cpp
[SRC] Compiling network/core/tcp_connect.cpp
[SRC] Compiling network/core/tcp_content.cpp
[SRC] Compiling network/core/tcp_game.cpp
[SRC] Compiling network/core/tcp_http.cpp
[SRC] Compiling network/core/udp.cpp
[SRC] Compiling network/network.cpp
[SRC] Compiling network/network_admin.cpp
[SRC] Compiling network/network_chat_gui.cpp
[SRC] Compiling network/network_client.cpp
[SRC] Compiling network/network_command.cpp
[SRC] Compiling network/network_content.cpp
[SRC] Compiling network/network_content_gui.cpp
[SRC] Compiling network/network_gamelist.cpp
[SRC] Compiling network/network_gui.cpp
[SRC] Compiling network/network_server.cpp
[SRC] Compiling network/network_udp.cpp
[SRC] Compiling newgrf.cpp
[SRC] Compiling newgrf_airport.cpp
[SRC] Compiling newgrf_airporttiles.cpp
[SRC] Compiling newgrf_canal.cpp
[SRC] Compiling newgrf_cargo.cpp
[SRC] Compiling newgrf_commons.cpp
[SRC] Compiling newgrf_config.cpp
[SRC] Compiling newgrf_debug_gui.cpp
[SRC] Compiling newgrf_engine.cpp
[SRC] Compiling newgrf_generic.cpp
[SRC] Compiling newgrf_gui.cpp
[SRC] Compiling newgrf_house.cpp
[SRC] Compiling newgrf_industries.cpp
[SRC] Compiling newgrf_industrytiles.cpp
[SRC] Compiling newgrf_object.cpp
[SRC] Compiling newgrf_railtype.cpp
[SRC] Compiling newgrf_sound.cpp
[SRC] Compiling newgrf_spritegroup.cpp
[SRC] Compiling newgrf_station.cpp
[SRC] Compiling newgrf_storage.cpp
[SRC] Compiling newgrf_text.cpp
[SRC] Compiling newgrf_town.cpp
[SRC] Compiling newgrf_townname.cpp
[SRC] Compiling news_gui.cpp
[SRC] Compiling object_cmd.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/object_cmd.cpp:165:23: warning: 
      expression result unused [-Wunused-value]
        (val++, score < 720) ||
        ~~~~~~~~~~~~~~~~~~~~ ^
1 warning generated.
[SRC] Compiling object_gui.cpp
[SRC] Compiling openttd.cpp
[SRC] Compiling order_backup.cpp
[SRC] Compiling order_cmd.cpp
[SRC] Compiling order_gui.cpp
[SRC] Compiling os/macosx/crashlog_osx.cpp
[SRC] Compiling os/macosx/splash.cpp
[SRC] Compiling os/unix/unix.cpp
[SRC] Compiling osk_gui.cpp
[SRC] Compiling pathfinder/npf/aystar.cpp
[SRC] Compiling pathfinder/npf/npf.cpp
[SRC] Compiling pathfinder/npf/queue.cpp
[SRC] Compiling pathfinder/opf/opf_ship.cpp
[SRC] Compiling pathfinder/yapf/yapf_rail.cpp
[SRC] Compiling pathfinder/yapf/yapf_road.cpp
[SRC] Compiling pathfinder/yapf/yapf_ship.cpp
[SRC] Compiling pbs.cpp
[SRC] Compiling plans.cpp
[SRC] Compiling plans_cmd.cpp
[SRC] Compiling plans_gui.cpp
[SRC] Compiling programmable_signals.cpp
[SRC] Compiling programmable_signals_gui.cpp
[SRC] Compiling progress.cpp
[SRC] Compiling rail.cpp
[SRC] Compiling rail_cmd.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/rail_cmd.cpp:1984:27: error: 
      default initialization of an object of const type 'const SubSprite'
      without a user-provided default constructor
                        static const SubSprite lower_part { -50, -10, 50, 50 };
                                               ^
/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/rail_cmd.cpp:1984:37: note: 
      add an explicit initializer to initialize 'lower_part'
                        static const SubSprite lower_part { -50, -10, 50, 50 };
                                                         ^
                                                          = {}
/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/rail_cmd.cpp:1984:37: error: 
      expected ';' at end of declaration
                        static const SubSprite lower_part { -50, -10, 50, 50 };
                                                         ^
                                                         ;
/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/rail_cmd.cpp:1985:27: error: 
      default initialization of an object of const type 'const SubSprite'
      without a user-provided default constructor
                        static const SubSprite upper_part { -50, -50, 50, -11 };
                                               ^
/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/rail_cmd.cpp:1985:37: note: 
      add an explicit initializer to initialize 'upper_part'
                        static const SubSprite upper_part { -50, -50, 50, -11 };
                                                         ^
                                                          = {}
/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/rail_cmd.cpp:1985:37: error: 
      expected ';' at end of declaration
                        static const SubSprite upper_part { -50, -50, 50, -11 };
                                                         ^
                                                         ;
/Users/Val/Downloads/OpenTTD-patches-jgrpp-2/src/rail_cmd.cpp:2378:73: warning: 
      expression result unused [-Wunused-value]
  ...(image++,                          (track & TRACK_BIT_3WAY_SE) == 0) ||
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
1 warning and 4 errors generated.
make[1]: *** [rail_cmd.o] Error 1
make: *** [all] Error 1
Valentins-MacBook-Pro:OpenTTD-patches-jgrpp-2 Val$ 
User avatar
JGR
Tycoon
Tycoon
Posts: 2590
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: JGR's Patch Pack

Post by JGR »

Valle wrote:With the latest source from github (v0.2.0), one warning and four errors occurred while compiling on OS X Yosemite.
It looks like rail_cmd.cpp is the culprit to my uneducated eyes.
This is probably fixed in 0.2.1.
Which compiler/version are you using incidentally?
Ex TTDPatch Coder
Patch Pack, Github
User avatar
Valle
Transport Coordinator
Transport Coordinator
Posts: 284
Joined: 15 May 2007 11:35
Location: Germany

Re: JGR's Patch Pack

Post by Valle »

JGR wrote:
Valle wrote:With the latest source from github (v0.2.0), one warning and four errors occurred while compiling on OS X Yosemite.
It looks like rail_cmd.cpp is the culprit to my uneducated eyes.
This is probably fixed in 0.2.1.
Which compiler/version are you using incidentally?
C-Compiler: gcc v4.2.1
C++-Compiler: g++ v4.2.1

Is v0.2.1 of your patchpack already on github or is the src update from 3 hours ago a "work in progress" state?
User avatar
JGR
Tycoon
Tycoon
Posts: 2590
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: JGR's Patch Pack

Post by JGR »

Valle wrote:
JGR wrote:
Valle wrote:With the latest source from github (v0.2.0), one warning and four errors occurred while compiling on OS X Yosemite.
It looks like rail_cmd.cpp is the culprit to my uneducated eyes.
This is probably fixed in 0.2.1.
Which compiler/version are you using incidentally?
C-Compiler: gcc v4.2.1
C++-Compiler: g++ v4.2.1

Is v0.2.1 of your patchpack already on github or is the src update from 3 hours ago a "work in progress" state?
v0.2.1 is on github. It only addresses those those errors you listed.
gcc 4.2.1 is ancient and I don't have anything that old to test on, but I'm fairly sure that it'll fix compilation, if it still doesn't work I'll bump it again.
Ex TTDPatch Coder
Patch Pack, Github
User avatar
Valle
Transport Coordinator
Transport Coordinator
Posts: 284
Joined: 15 May 2007 11:35
Location: Germany

Re: JGR's Patch Pack

Post by Valle »

I loaded 0.2.1 but left my compilers at the old state they were at, just in case that this brings relevant errors to the surface that would otherwise go unnoticed.
There were three warnings and one error with settings.cpp. Please let me know if you want me to update my compilers.

Code: Select all

Last login: Tue Aug 25 21:58:45 on ttys000
Valentins-MacBook-Pro:~ Val$ cd /Users/Val/Downloads/OpenTTD-patches-jgrpp 
Valentins-MacBook-Pro:OpenTTD-patches-jgrpp Val$ ./configure
checking awk... awk
detecting OS... OSX
checking build system type... x86_64-apple-darwin14.5.0
checking host system type... x86_64-apple-darwin14.5.0
checking universal build... no
checking build cc... gcc
checking host cc... gcc
checking build c++... g++
checking host c++... g++
checking strip... disabled
checking builtin depend... yes
checking makedepend... disabled
detecting cpu-type... 64 bits
detecting SSE... found
checking static... no
checking unicode... no
using debug level... no
using desync debug level... no
using link time optimization... no
checking OSX sysroot... no (use system default)
checking Allegro... OSX, skipping
checking SDL... OSX, skipping
checking COCOA... found
checking whether to enable the Quartz window subdriver... yes
checking Quickdraw window subdriver... disabled (64 bits)
checking GDI video driver... not Windows, skipping
checking dedicated... not selected
checking console application... not Windows, skipping
checking network... found
checking squirrel... found
checking translator... no
checking assert... enabled
checking zlib... found
checking liblzma... found
checking lzo2... found
checking libxdg-basedir... found
checking libpng... found
checking freetype2... not found
checking libfontconfig... OSX, skipping
checking icu-lx... not found
checking icu-i18n... not found
checking psp-config... not PSP, skipping
checking libtimidity... not found
checking direct-music... not Windows, skipping
checking sort... sort
checking endianness... PREPROCESSOR
suppress language errors... no
checking stripping... skipped
checking distcc... no (only used when forced)
checking ccache... no (only used when forced)
checking grfcodec... not found
checking nforenum... not found
detecting ppc970 (G5)... no
checking revision... no detection
WARNING: there is no means to determine the version.
WARNING: please use a subversion, mercurial, or git checkout of OpenTTD.
WARNING: you can only join game servers that have been compiled without
WARNING:   version detection.
WARNING: there is a great chance you desync.
WARNING: USE WITH CAUTION!
checking iconv... found
checking if iconv has non-const inbuf... yes
checking whether to link to iconv... yes
personal home directory... Documents/OpenTTD
shared data directory... /Library/Application\ Support/OpenTTD
installation directory... /
icon theme directory... none
manual page directory... share/man/man6
menu item directory... none
clang: error: unsupported option '-dumpspecs'
clang: error: no input files
clang: error: unsupported option '-dumpspecs'
clang: error: no input files
using CFLAGS_BUILD...  -Wall -Wno-multichar -Wsign-compare -Wundef -Wwrite-strings -Wpointer-arith -W -Wno-unused-parameter -Wredundant-decls -Wformat=2 -Wformat-security -Winit-self -fno-strict-aliasing -Wcast-qual -fno-strict-overflow -Wnon-virtual-dtor -DOSX
using CXXFLAGS_BUILD... 
using LDFLAGS_BUILD... 
using CFLAGS...  -O2 -fomit-frame-pointer  -Wall -Wno-multichar -Wsign-compare -Wundef -Wwrite-strings -Wpointer-arith -W -Wno-unused-parameter -Wredundant-decls -Wformat=2 -Wformat-security -Winit-self -fno-strict-aliasing -Wcast-qual -fno-strict-overflow -Wnon-virtual-dtor -DOSX -DWITH_SSE -isystem/opt/local/include -DNO_QUICKTIME -mmacosx-version-min=10.5 -DUNIX -DWITH_COCOA -DENABLE_COCOA_QUARTZ -DWITH_ZLIB   -DWITH_LZMA -I/usr/local/Cellar/xz/5.2.1/include   -DWITH_LZO -DWITH_XDG_BASEDIR -I/usr/local/Cellar/libxdg-basedir/1.2.0/include   -D_SQ64 -I/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/3rdparty/squirrel/include -DWITH_PNG -I/usr/local/Cellar/libpng/1.6.17/include/libpng16   -DWITH_ICONV -DENABLE_NETWORK -DWITH_PERSONAL_DIR -DPERSONAL_DIR=\"Documents/OpenTTD\" -DWITH_SHARED_DIR -DSHARED_DIR=\"/Library/Application\ Support/OpenTTD\" -DGLOBAL_DATA_DIR=\"/usr/local/share/games/openttd\"
using CXXFLAGS... 
using LDFLAGS... -lstdc++ -lc -F/System/Library/Frameworks -framework Cocoa -framework Carbon -framework AudioUnit -framework AudioToolbox -L/usr/lib -lz   -L/usr/local/Cellar/xz/5.2.1/lib -llzma   -llzo2 -L/usr/local/Cellar/libxdg-basedir/1.2.0/lib -lxdg-basedir   -L/usr/local/Cellar/libpng/1.6.17/lib -lpng16   -liconv   -framework Cocoa
Generating Makefile...
Generating lang/Makefile...
Generating setting/Makefile...
Generating grf/Makefile...
Generating objs/Makefile...
Valentins-MacBook-Pro:OpenTTD-patches-jgrpp Val$ make
[LANG] Compiling and Linking endian_check
[LANG] Testing endianness for host
[LANG] Compiling core/alloc_func.cpp
[LANG] Compiling string.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/string.cpp:54:49: warning: 
      format string is not a string literal [-Wformat-nonliteral]
        return min((int)diff, vsnprintf(str, diff + 1, format, ap));
                                                       ^~~~~~
1 warning generated.
[LANG] Compiling strgen/strgen_base.cpp
[LANG] Compiling strgen/strgen.cpp
[LANG] Compiling getoptdata.cpp
[LANG] Compiling and Linking strgen
[LANG] Generating table/strings.h
[LANG] Compiling language afrikaans
[LANG] Compiling language arabic_egypt
[LANG] Compiling language basque
[LANG] Compiling language belarusian
[LANG] Compiling language brazilian_portuguese
[LANG] Compiling language bulgarian
[LANG] Compiling language catalan
[LANG] Compiling language croatian
[LANG] Compiling language czech
[LANG] Compiling language danish
[LANG] Compiling language dutch
[LANG] Compiling language english
[LANG] Compiling language english_AU
[LANG] Compiling language english_US
[LANG] Compiling language esperanto
[LANG] Compiling language estonian
[LANG] Compiling language faroese
[LANG] Compiling language finnish
[LANG] Compiling language french
[LANG] Compiling language gaelic
[LANG] Compiling language galician
[LANG] Compiling language german
[LANG] Compiling language greek
[LANG] Compiling language hebrew
[LANG] Compiling language hungarian
[LANG] Compiling language icelandic
[LANG] Compiling language indonesian
[LANG] Compiling language irish
[LANG] Compiling language italian
[LANG] Compiling language japanese
[LANG] Compiling language korean
[LANG] Compiling language latin
[LANG] Compiling language latvian
[LANG] Compiling language lithuanian
[LANG] Compiling language luxembourgish
[LANG] Compiling language malay
[LANG] Compiling language norwegian_bokmal
[LANG] Compiling language norwegian_nynorsk
[LANG] Compiling language polish
[LANG] Compiling language portuguese
[LANG] Compiling language romanian
[LANG] Compiling language russian
[LANG] Compiling language serbian
[LANG] Compiling language simplified_chinese
[LANG] Compiling language slovak
[LANG] Compiling language slovenian
[LANG] Compiling language spanish
[LANG] Compiling language swedish
[LANG] Compiling language tamil
[LANG] Compiling language thai
[LANG] Compiling language traditional_chinese
[LANG] Compiling language turkish
[LANG] Compiling language ukrainian
[LANG] Compiling language vietnamese
[LANG] Compiling language welsh
[SETTING] Compiling and Linking endian_check
[SETTING] Testing endianness for host
[SETTING] Compiling core/alloc_func.cpp
[SETTING] Compiling string.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/string.cpp:54:49: warning: 
      format string is not a string literal [-Wformat-nonliteral]
        return min((int)diff, vsnprintf(str, diff + 1, format, ap));
                                                       ^~~~~~
1 warning generated.
[SETTING] Compiling ini_load.cpp
[SETTING] Compiling settingsgen/settingsgen.cpp
[SETTING] Compiling getoptdata.cpp
[SETTING] Compiling and Linking settings_gen
[SETTING] Generating table/settings.h
make[1]: Nothing to be done for `all'.
[SRC] Compiling and Linking endian_check
[SRC] Testing endianness for target
[SRC] Compiling and linking depend
[SRC] DEP CHECK (all files)
[SRC] Compiling 3rdparty/md5/md5.cpp
[SRC] Compiling 3rdparty/squirrel/sqstdlib/sqstdaux.cpp
[SRC] Compiling 3rdparty/squirrel/sqstdlib/sqstdmath.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqapi.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqbaselib.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqclass.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqcompiler.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqdebug.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqfuncstate.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqlexer.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqmem.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqobject.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqstate.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqtable.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqvm.cpp
[SRC] Compiling ai/ai_config.cpp
[SRC] Compiling ai/ai_core.cpp
[SRC] Compiling ai/ai_gui.cpp
[SRC] Compiling ai/ai_info.cpp
[SRC] Compiling ai/ai_instance.cpp
[SRC] Compiling ai/ai_scanner.cpp
[SRC] Compiling aircraft_cmd.cpp
[SRC] Compiling aircraft_gui.cpp
[SRC] Compiling airport.cpp
[SRC] Compiling airport_gui.cpp
[SRC] Compiling animated_tile.cpp
[SRC] Compiling articulated_vehicles.cpp
[SRC] Compiling autoreplace.cpp
[SRC] Compiling autoreplace_cmd.cpp
[SRC] Compiling autoreplace_gui.cpp
[SRC] Compiling base_consist.cpp
[SRC] Compiling blitter/32bpp_anim.cpp
[SRC] Compiling blitter/32bpp_anim_sse4.cpp
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_anim_sse4.cpp:17:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_anim_sse4.hpp:26:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse4.hpp:25:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_ssse3.hpp:25:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse2.hpp:25:
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse_type.h:33:10: warning: 
      'ALIGN' macro redefined [-Wmacro-redefined]
        #define ALIGN(n) __attribute__ ((aligned (n)))
                ^
/usr/include/i386/param.h:83:9: note: previous definition is here
#define ALIGN(p)        __DARWIN_ALIGN(p)
        ^
1 warning generated.
[SRC] Compiling blitter/32bpp_base.cpp
[SRC] Compiling blitter/32bpp_optimized.cpp
[SRC] Compiling blitter/32bpp_simple.cpp
[SRC] Compiling blitter/32bpp_sse2.cpp
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse2.cpp:17:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse2.hpp:25:
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse_type.h:33:10: warning: 
      'ALIGN' macro redefined [-Wmacro-redefined]
        #define ALIGN(n) __attribute__ ((aligned (n)))
                ^
/usr/include/i386/param.h:83:9: note: previous definition is here
#define ALIGN(p)        __DARWIN_ALIGN(p)
        ^
1 warning generated.
[SRC] Compiling blitter/32bpp_sse4.cpp
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse4.cpp:17:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse4.hpp:25:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_ssse3.hpp:25:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse2.hpp:25:
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse_type.h:33:10: warning: 
      'ALIGN' macro redefined [-Wmacro-redefined]
        #define ALIGN(n) __attribute__ ((aligned (n)))
                ^
/usr/include/i386/param.h:83:9: note: previous definition is here
#define ALIGN(p)        __DARWIN_ALIGN(p)
        ^
1 warning generated.
[SRC] Compiling blitter/32bpp_ssse3.cpp
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_ssse3.cpp:17:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_ssse3.hpp:25:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse2.hpp:25:
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse_type.h:33:10: warning: 
      'ALIGN' macro redefined [-Wmacro-redefined]
        #define ALIGN(n) __attribute__ ((aligned (n)))
                ^
/usr/include/i386/param.h:83:9: note: previous definition is here
#define ALIGN(p)        __DARWIN_ALIGN(p)
        ^
1 warning generated.
[SRC] Compiling blitter/8bpp_base.cpp
[SRC] Compiling blitter/8bpp_optimized.cpp
[SRC] Compiling blitter/8bpp_simple.cpp
[SRC] Compiling blitter/base.cpp
[SRC] Compiling blitter/null.cpp
[SRC] Compiling bmp.cpp
[SRC] Compiling bootstrap_gui.cpp
[SRC] Compiling bridge_gui.cpp
[SRC] Compiling bridge_map.cpp
[SRC] Compiling build_vehicle_gui.cpp
[SRC] Compiling cargoaction.cpp
[SRC] Compiling cargomonitor.cpp
[SRC] Compiling cargopacket.cpp
[SRC] Compiling cargotype.cpp
[SRC] Compiling cheat.cpp
[SRC] Compiling cheat_gui.cpp
[SRC] Compiling clear_cmd.cpp
[SRC] Compiling command.cpp
[SRC] Compiling company_cmd.cpp
[SRC] Compiling company_gui.cpp
[SRC] Compiling console.cpp
[SRC] Compiling console_cmds.cpp
[SRC] Compiling console_gui.cpp
[SRC] Compiling core/alloc_func.cpp
[SRC] Compiling core/bitmath_func.cpp
[SRC] Compiling core/geometry_func.cpp
[SRC] Compiling core/math_func.cpp
[SRC] Compiling core/pool_func.cpp
[SRC] Compiling core/random_func.cpp
[SRC] Compiling cpu.cpp
[SRC] Compiling crashlog.cpp
[SRC] Compiling currency.cpp
[SRC] Compiling date.cpp
[SRC] Compiling date_gui.cpp
[SRC] Compiling debug.cpp
[SRC] Compiling dedicated.cpp
[SRC] Compiling departures.cpp
[SRC] Compiling departures_gui.cpp
[SRC] Compiling depot.cpp
[SRC] Compiling depot_cmd.cpp
[SRC] Compiling depot_gui.cpp
[SRC] Compiling disaster_vehicle.cpp
[SRC] Compiling dock_gui.cpp
[SRC] Compiling driver.cpp
[SRC] Compiling economy.cpp
[SRC] Compiling effectvehicle.cpp
[SRC] Compiling elrail.cpp
[SRC] Compiling engine.cpp
[SRC] Compiling engine_gui.cpp
[SRC] Compiling error_gui.cpp
[SRC] Compiling fileio.cpp
[SRC] Compiling fios.cpp
[SRC] Compiling fios_gui.cpp
[SRC] Compiling fontcache.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/fontcache.cpp:30:18: warning: 
      unused variable 'MAX_FONT_SIZE' [-Wunused-const-variable]
static const int MAX_FONT_SIZE     = 72; ///< Maximum font size.
                 ^
1 warning generated.
[SRC] Compiling fontdetection.cpp
[SRC] Compiling game/game_config.cpp
[SRC] Compiling game/game_core.cpp
[SRC] Compiling game/game_info.cpp
[SRC] Compiling game/game_instance.cpp
[SRC] Compiling game/game_scanner.cpp
[SRC] Compiling game/game_text.cpp
[SRC] Compiling gamelog.cpp
[SRC] Compiling genworld.cpp
[SRC] Compiling genworld_gui.cpp
[SRC] Compiling gfx.cpp
[SRC] Compiling gfx_layout.cpp
[SRC] Compiling gfxinit.cpp
[SRC] Compiling goal.cpp
[SRC] Compiling goal_gui.cpp
[SRC] Compiling graph_gui.cpp
[SRC] Compiling ground_vehicle.cpp
[SRC] Compiling group_cmd.cpp
[SRC] Compiling group_gui.cpp
[SRC] Compiling heightmap.cpp
[SRC] Compiling highscore.cpp
[SRC] Compiling highscore_gui.cpp
[SRC] Compiling hotkeys.cpp
[SRC] Compiling industry_cmd.cpp
[SRC] Compiling industry_gui.cpp
[SRC] Compiling infrastructure.cpp
[SRC] Compiling ini.cpp
[SRC] Compiling ini_load.cpp
[SRC] Compiling intro_gui.cpp
[SRC] Compiling landscape.cpp
[SRC] Compiling linkgraph/demands.cpp
[SRC] Compiling linkgraph/flowmapper.cpp
[SRC] Compiling linkgraph/linkgraph.cpp
[SRC] Compiling linkgraph/linkgraph_gui.cpp
[SRC] Compiling linkgraph/linkgraphjob.cpp
[SRC] Compiling linkgraph/linkgraphschedule.cpp
[SRC] Compiling linkgraph/mcf.cpp
[SRC] Compiling linkgraph/refresh.cpp
[SRC] Compiling main_gui.cpp
[SRC] Compiling map.cpp
[SRC] Compiling misc.cpp
[SRC] Compiling misc/countedobj.cpp
[SRC] Compiling misc/dbg_helpers.cpp
[SRC] Compiling misc/getoptdata.cpp
[SRC] Compiling misc_cmd.cpp
[SRC] Compiling misc_gui.cpp
[SRC] Compiling mixer.cpp
[SRC] Compiling music.cpp
[SRC] Compiling music/cocoa_m.cpp
[SRC] Compiling music/extmidi.cpp
[SRC] Compiling music/null_m.cpp
[SRC] Compiling music/qtmidi.cpp
[SRC] Compiling music_gui.cpp
[SRC] Compiling network/core/address.cpp
[SRC] Compiling network/core/core.cpp
[SRC] Compiling network/core/host.cpp
[SRC] Compiling network/core/packet.cpp
[SRC] Compiling network/core/tcp.cpp
[SRC] Compiling network/core/tcp_admin.cpp
[SRC] Compiling network/core/tcp_connect.cpp
[SRC] Compiling network/core/tcp_content.cpp
[SRC] Compiling network/core/tcp_game.cpp
[SRC] Compiling network/core/tcp_http.cpp
[SRC] Compiling network/core/udp.cpp
[SRC] Compiling network/network.cpp
[SRC] Compiling network/network_admin.cpp
[SRC] Compiling network/network_chat_gui.cpp
[SRC] Compiling network/network_client.cpp
[SRC] Compiling network/network_command.cpp
[SRC] Compiling network/network_content.cpp
[SRC] Compiling network/network_content_gui.cpp
[SRC] Compiling network/network_gamelist.cpp
[SRC] Compiling network/network_gui.cpp
[SRC] Compiling network/network_server.cpp
[SRC] Compiling network/network_udp.cpp
[SRC] Compiling newgrf.cpp
[SRC] Compiling newgrf_airport.cpp
[SRC] Compiling newgrf_airporttiles.cpp
[SRC] Compiling newgrf_canal.cpp
[SRC] Compiling newgrf_cargo.cpp
[SRC] Compiling newgrf_commons.cpp
[SRC] Compiling newgrf_config.cpp
[SRC] Compiling newgrf_debug_gui.cpp
[SRC] Compiling newgrf_engine.cpp
[SRC] Compiling newgrf_generic.cpp
[SRC] Compiling newgrf_gui.cpp
[SRC] Compiling newgrf_house.cpp
[SRC] Compiling newgrf_industries.cpp
[SRC] Compiling newgrf_industrytiles.cpp
[SRC] Compiling newgrf_object.cpp
[SRC] Compiling newgrf_railtype.cpp
[SRC] Compiling newgrf_sound.cpp
[SRC] Compiling newgrf_spritegroup.cpp
[SRC] Compiling newgrf_station.cpp
[SRC] Compiling newgrf_storage.cpp
[SRC] Compiling newgrf_text.cpp
[SRC] Compiling newgrf_town.cpp
[SRC] Compiling newgrf_townname.cpp
[SRC] Compiling news_gui.cpp
[SRC] Compiling object_cmd.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/object_cmd.cpp:165:23: warning: 
      expression result unused [-Wunused-value]
        (val++, score < 720) ||
        ~~~~~~~~~~~~~~~~~~~~ ^
1 warning generated.
[SRC] Compiling object_gui.cpp
[SRC] Compiling openttd.cpp
[SRC] Compiling order_backup.cpp
[SRC] Compiling order_cmd.cpp
[SRC] Compiling order_gui.cpp
[SRC] Compiling os/macosx/crashlog_osx.cpp
[SRC] Compiling os/macosx/splash.cpp
[SRC] Compiling os/unix/unix.cpp
[SRC] Compiling osk_gui.cpp
[SRC] Compiling pathfinder/npf/aystar.cpp
[SRC] Compiling pathfinder/npf/npf.cpp
[SRC] Compiling pathfinder/npf/queue.cpp
[SRC] Compiling pathfinder/opf/opf_ship.cpp
[SRC] Compiling pathfinder/yapf/yapf_rail.cpp
[SRC] Compiling pathfinder/yapf/yapf_road.cpp
[SRC] Compiling pathfinder/yapf/yapf_ship.cpp
[SRC] Compiling pbs.cpp
[SRC] Compiling plans.cpp
[SRC] Compiling plans_cmd.cpp
[SRC] Compiling plans_gui.cpp
[SRC] Compiling programmable_signals.cpp
[SRC] Compiling programmable_signals_gui.cpp
[SRC] Compiling progress.cpp
[SRC] Compiling rail.cpp
[SRC] Compiling rail_cmd.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/rail_cmd.cpp:2378:73: warning: 
      expression result unused [-Wunused-value]
  ...(image++,                          (track & TRACK_BIT_3WAY_SE) == 0) ||
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
1 warning generated.
[SRC] Compiling rail_gui.cpp
[SRC] Compiling rev.cpp
[SRC] Compiling road.cpp
[SRC] Compiling road_cmd.cpp
[SRC] Compiling road_gui.cpp
[SRC] Compiling road_map.cpp
[SRC] Compiling roadstop.cpp
[SRC] Compiling roadveh_cmd.cpp
[SRC] Compiling roadveh_gui.cpp
[SRC] Compiling saveload/afterload.cpp
[SRC] Compiling saveload/ai_sl.cpp
[SRC] Compiling saveload/airport_sl.cpp
[SRC] Compiling saveload/animated_tile_sl.cpp
[SRC] Compiling saveload/autoreplace_sl.cpp
[SRC] Compiling saveload/cargomonitor_sl.cpp
[SRC] Compiling saveload/cargopacket_sl.cpp
[SRC] Compiling saveload/cheat_sl.cpp
[SRC] Compiling saveload/company_sl.cpp
[SRC] Compiling saveload/depot_sl.cpp
[SRC] Compiling saveload/economy_sl.cpp
[SRC] Compiling saveload/engine_sl.cpp
[SRC] Compiling saveload/extended_ver_sl.cpp
[SRC] Compiling saveload/game_sl.cpp
[SRC] Compiling saveload/gamelog_sl.cpp
[SRC] Compiling saveload/goal_sl.cpp
[SRC] Compiling saveload/group_sl.cpp
[SRC] Compiling saveload/industry_sl.cpp
[SRC] Compiling saveload/labelmaps_sl.cpp
[SRC] Compiling saveload/linkgraph_sl.cpp
[SRC] Compiling saveload/map_sl.cpp
[SRC] Compiling saveload/misc_sl.cpp
[SRC] Compiling saveload/newgrf_sl.cpp
[SRC] Compiling saveload/object_sl.cpp
[SRC] Compiling saveload/oldloader.cpp
[SRC] Compiling saveload/oldloader_sl.cpp
[SRC] Compiling saveload/order_sl.cpp
[SRC] Compiling saveload/plans_sl.cpp
[SRC] Compiling saveload/saveload.cpp
[SRC] Compiling saveload/signal_sl.cpp
[SRC] Compiling saveload/signs_sl.cpp
[SRC] Compiling saveload/station_sl.cpp
[SRC] Compiling saveload/storage_sl.cpp
[SRC] Compiling saveload/story_sl.cpp
[SRC] Compiling saveload/strings_sl.cpp
[SRC] Compiling saveload/subsidy_sl.cpp
[SRC] Compiling saveload/town_sl.cpp
[SRC] Compiling saveload/tracerestrict_sl.cpp
[SRC] Compiling saveload/vehicle_sl.cpp
[SRC] Compiling saveload/waypoint_sl.cpp
[SRC] Compiling screenshot.cpp
[SRC] Compiling script/api/script_accounting.cpp
[SRC] Compiling script/api/script_admin.cpp
[SRC] Compiling script/api/script_airport.cpp
[SRC] Compiling script/api/script_base.cpp
[SRC] Compiling script/api/script_basestation.cpp
[SRC] Compiling script/api/script_bridge.cpp
[SRC] Compiling script/api/script_bridgelist.cpp
[SRC] Compiling script/api/script_cargo.cpp
[SRC] Compiling script/api/script_cargolist.cpp
[SRC] Compiling script/api/script_cargomonitor.cpp
[SRC] Compiling script/api/script_company.cpp
[SRC] Compiling script/api/script_companymode.cpp
[SRC] Compiling script/api/script_controller.cpp
[SRC] Compiling script/api/script_date.cpp
[SRC] Compiling script/api/script_depotlist.cpp
[SRC] Compiling script/api/script_engine.cpp
[SRC] Compiling script/api/script_enginelist.cpp
[SRC] Compiling script/api/script_error.cpp
[SRC] Compiling script/api/script_event.cpp
[SRC] Compiling script/api/script_event_types.cpp
[SRC] Compiling script/api/script_execmode.cpp
[SRC] Compiling script/api/script_game.cpp
[SRC] Compiling script/api/script_gamesettings.cpp
[SRC] Compiling script/api/script_goal.cpp
[SRC] Compiling script/api/script_group.cpp
[SRC] Compiling script/api/script_grouplist.cpp
[SRC] Compiling script/api/script_industry.cpp
[SRC] Compiling script/api/script_industrylist.cpp
[SRC] Compiling script/api/script_industrytype.cpp
[SRC] Compiling script/api/script_industrytypelist.cpp
[SRC] Compiling script/api/script_infrastructure.cpp
[SRC] Compiling script/api/script_list.cpp
[SRC] Compiling script/api/script_log.cpp
[SRC] Compiling script/api/script_map.cpp
[SRC] Compiling script/api/script_marine.cpp
[SRC] Compiling script/api/script_news.cpp
[SRC] Compiling script/api/script_object.cpp
[SRC] Compiling script/api/script_order.cpp
[SRC] Compiling script/api/script_rail.cpp
[SRC] Compiling script/api/script_railtypelist.cpp
[SRC] Compiling script/api/script_road.cpp
[SRC] Compiling script/api/script_sign.cpp
[SRC] Compiling script/api/script_signlist.cpp
[SRC] Compiling script/api/script_station.cpp
[SRC] Compiling script/api/script_stationlist.cpp
[SRC] Compiling script/api/script_story_page.cpp
[SRC] Compiling script/api/script_storypageelementlist.cpp
[SRC] Compiling script/api/script_storypagelist.cpp
[SRC] Compiling script/api/script_subsidy.cpp
[SRC] Compiling script/api/script_subsidylist.cpp
[SRC] Compiling script/api/script_testmode.cpp
[SRC] Compiling script/api/script_text.cpp
[SRC] Compiling script/api/script_tile.cpp
[SRC] Compiling script/api/script_tilelist.cpp
[SRC] Compiling script/api/script_town.cpp
[SRC] Compiling script/api/script_townlist.cpp
[SRC] Compiling script/api/script_tunnel.cpp
[SRC] Compiling script/api/script_vehicle.cpp
[SRC] Compiling script/api/script_vehiclelist.cpp
[SRC] Compiling script/api/script_viewport.cpp
[SRC] Compiling script/api/script_waypoint.cpp
[SRC] Compiling script/api/script_waypointlist.cpp
[SRC] Compiling script/api/script_window.cpp
[SRC] Compiling script/script_config.cpp
[SRC] Compiling script/script_info.cpp
[SRC] Compiling script/script_info_dummy.cpp
[SRC] Compiling script/script_instance.cpp
[SRC] Compiling script/script_scanner.cpp
[SRC] Compiling script/squirrel.cpp
[SRC] Compiling script/squirrel_std.cpp
[SRC] Compiling settings.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/settings.cpp:2296:2: warning: 
      template argument uses local type 'StringSorter'
      [-Wlocal-type-template-args]
        std::sort(_sorted_patx_settings.begin(), _sorted_patx_settings.e...
        ^~~
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/settings.cpp:2349:53: warning: 
      template argument uses local type 'StringSearcher'
      [-Wlocal-type-template-args]
  ...std::vector<const SettingDesc *>::iterator iter = std::lower_bound(_sort...
                                                       ^~~
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/settings.cpp:2395:14: warning: 
      template argument uses local type 'SettingToAdd'
      [-Wlocal-type-template-args]
        std::vector<SettingToAdd> settings_to_add;
                    ^~~~~~~~~~~~
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/settings.cpp:2411:29: error: 
      expected expression
                settings_to_add.push_back({ desc, setting_length });
                                          ^
3 warnings and 1 error generated.
make[1]: *** [settings.o] Error 1
make: *** [all] Error 1
Valentins-MacBook-Pro:OpenTTD-patches-jgrpp Val$ 
User avatar
JGR
Tycoon
Tycoon
Posts: 2590
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: JGR's Patch Pack

Post by JGR »

Valle wrote:I loaded 0.2.1 but left my compilers at the old state they were at, just in case that this brings relevant errors to the surface that would otherwise go unnoticed.
There were three warnings and one error with settings.cpp. Please let me know if you want me to update my compilers.
I've pushed some more changes to github which ought to fix it, and moved the 0.2.1 tag. You shouldn't need to update your compiler.
With some fiddling of the configure scripts/headers I can build using an old version of the standard for testing.
Other than OpenTTD it's been quite a while since I've worked on any projects using old-style C++, so I got caught out on a few things.
Ex TTDPatch Coder
Patch Pack, Github
User avatar
Valle
Transport Coordinator
Transport Coordinator
Posts: 284
Joined: 15 May 2007 11:35
Location: Germany

Re: JGR's Patch Pack

Post by Valle »

Thank you for your quick reaction. Unfortunately, another error occurred.

Code: Select all

Last login: Wed Aug 26 18:41:36 on ttys000
Valentins-MacBook-Pro:~ Val$ cd /Users/Val/Downloads/OpenTTD-patches-jgrpp 
Valentins-MacBook-Pro:OpenTTD-patches-jgrpp Val$ ./configure
checking awk... awk
detecting OS... OSX
checking build system type... x86_64-apple-darwin14.5.0
checking host system type... x86_64-apple-darwin14.5.0
checking universal build... no
checking build cc... gcc
checking host cc... gcc
checking build c++... g++
checking host c++... g++
checking strip... disabled
checking builtin depend... yes
checking makedepend... disabled
detecting cpu-type... 64 bits
detecting SSE... found
checking static... no
checking unicode... no
using debug level... no
using desync debug level... no
using link time optimization... no
checking OSX sysroot... no (use system default)
checking Allegro... OSX, skipping
checking SDL... OSX, skipping
checking COCOA... found
checking whether to enable the Quartz window subdriver... yes
checking Quickdraw window subdriver... disabled (64 bits)
checking GDI video driver... not Windows, skipping
checking dedicated... not selected
checking console application... not Windows, skipping
checking network... found
checking squirrel... found
checking translator... no
checking assert... enabled
checking zlib... found
checking liblzma... found
checking lzo2... found
checking libxdg-basedir... found
checking libpng... found
checking freetype2... not found
checking libfontconfig... OSX, skipping
checking icu-lx... not found
checking icu-i18n... not found
checking psp-config... not PSP, skipping
checking libtimidity... not found
checking direct-music... not Windows, skipping
checking sort... sort
checking endianness... PREPROCESSOR
suppress language errors... no
checking stripping... skipped
checking distcc... no (only used when forced)
checking ccache... no (only used when forced)
checking grfcodec... not found
checking nforenum... not found
detecting ppc970 (G5)... no
checking revision... no detection
WARNING: there is no means to determine the version.
WARNING: please use a subversion, mercurial, or git checkout of OpenTTD.
WARNING: you can only join game servers that have been compiled without
WARNING:   version detection.
WARNING: there is a great chance you desync.
WARNING: USE WITH CAUTION!
checking iconv... found
checking if iconv has non-const inbuf... yes
checking whether to link to iconv... yes
personal home directory... Documents/OpenTTD
shared data directory... /Library/Application\ Support/OpenTTD
installation directory... /
icon theme directory... none
manual page directory... share/man/man6
menu item directory... none
clang: error: unsupported option '-dumpspecs'
clang: error: no input files
clang: error: unsupported option '-dumpspecs'
clang: error: no input files
using CFLAGS_BUILD...  -Wall -Wno-multichar -Wsign-compare -Wundef -Wwrite-strings -Wpointer-arith -W -Wno-unused-parameter -Wredundant-decls -Wformat=2 -Wformat-security -Winit-self -fno-strict-aliasing -Wcast-qual -fno-strict-overflow -Wnon-virtual-dtor -DOSX
using CXXFLAGS_BUILD... 
using LDFLAGS_BUILD... 
using CFLAGS...  -O2 -fomit-frame-pointer  -Wall -Wno-multichar -Wsign-compare -Wundef -Wwrite-strings -Wpointer-arith -W -Wno-unused-parameter -Wredundant-decls -Wformat=2 -Wformat-security -Winit-self -fno-strict-aliasing -Wcast-qual -fno-strict-overflow -Wnon-virtual-dtor -DOSX -DWITH_SSE -isystem/opt/local/include -DNO_QUICKTIME -mmacosx-version-min=10.5 -DUNIX -DWITH_COCOA -DENABLE_COCOA_QUARTZ -DWITH_ZLIB   -DWITH_LZMA -I/usr/local/Cellar/xz/5.2.1/include   -DWITH_LZO -DWITH_XDG_BASEDIR -I/usr/local/Cellar/libxdg-basedir/1.2.0/include   -D_SQ64 -I/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/3rdparty/squirrel/include -DWITH_PNG -I/usr/local/Cellar/libpng/1.6.17/include/libpng16   -DWITH_ICONV -DENABLE_NETWORK -DWITH_PERSONAL_DIR -DPERSONAL_DIR=\"Documents/OpenTTD\" -DWITH_SHARED_DIR -DSHARED_DIR=\"/Library/Application\ Support/OpenTTD\" -DGLOBAL_DATA_DIR=\"/usr/local/share/games/openttd\"
using CXXFLAGS... 
using LDFLAGS... -lstdc++ -lc -F/System/Library/Frameworks -framework Cocoa -framework Carbon -framework AudioUnit -framework AudioToolbox -L/usr/lib -lz   -L/usr/local/Cellar/xz/5.2.1/lib -llzma   -llzo2 -L/usr/local/Cellar/libxdg-basedir/1.2.0/lib -lxdg-basedir   -L/usr/local/Cellar/libpng/1.6.17/lib -lpng16   -liconv   -framework Cocoa
Generating Makefile...
Generating lang/Makefile...
Generating setting/Makefile...
Generating grf/Makefile...
Generating objs/Makefile...
Valentins-MacBook-Pro:OpenTTD-patches-jgrpp Val$ make
[LANG] Compiling and Linking endian_check
[LANG] Testing endianness for host
[LANG] Compiling core/alloc_func.cpp
[LANG] Compiling string.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/string.cpp:54:49: warning: 
      format string is not a string literal [-Wformat-nonliteral]
        return min((int)diff, vsnprintf(str, diff + 1, format, ap));
                                                       ^~~~~~
1 warning generated.
[LANG] Compiling strgen/strgen_base.cpp
[LANG] Compiling strgen/strgen.cpp
[LANG] Compiling getoptdata.cpp
[LANG] Compiling and Linking strgen
[LANG] Generating table/strings.h
[LANG] Compiling language afrikaans
[LANG] Compiling language arabic_egypt
[LANG] Compiling language basque
[LANG] Compiling language belarusian
[LANG] Compiling language brazilian_portuguese
[LANG] Compiling language bulgarian
[LANG] Compiling language catalan
[LANG] Compiling language croatian
[LANG] Compiling language czech
[LANG] Compiling language danish
[LANG] Compiling language dutch
[LANG] Compiling language english
[LANG] Compiling language english_AU
[LANG] Compiling language english_US
[LANG] Compiling language esperanto
[LANG] Compiling language estonian
[LANG] Compiling language faroese
[LANG] Compiling language finnish
[LANG] Compiling language french
[LANG] Compiling language gaelic
[LANG] Compiling language galician
[LANG] Compiling language german
[LANG] Compiling language greek
[LANG] Compiling language hebrew
[LANG] Compiling language hungarian
[LANG] Compiling language icelandic
[LANG] Compiling language indonesian
[LANG] Compiling language irish
[LANG] Compiling language italian
[LANG] Compiling language japanese
[LANG] Compiling language korean
[LANG] Compiling language latin
[LANG] Compiling language latvian
[LANG] Compiling language lithuanian
[LANG] Compiling language luxembourgish
[LANG] Compiling language malay
[LANG] Compiling language norwegian_bokmal
[LANG] Compiling language norwegian_nynorsk
[LANG] Compiling language polish
[LANG] Compiling language portuguese
[LANG] Compiling language romanian
[LANG] Compiling language russian
[LANG] Compiling language serbian
[LANG] Compiling language simplified_chinese
[LANG] Compiling language slovak
[LANG] Compiling language slovenian
[LANG] Compiling language spanish
[LANG] Compiling language swedish
[LANG] Compiling language tamil
[LANG] Compiling language thai
[LANG] Compiling language traditional_chinese
[LANG] Compiling language turkish
[LANG] Compiling language ukrainian
[LANG] Compiling language vietnamese
[LANG] Compiling language welsh
[SETTING] Compiling and Linking endian_check
[SETTING] Testing endianness for host
[SETTING] Compiling core/alloc_func.cpp
[SETTING] Compiling string.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/string.cpp:54:49: warning: 
      format string is not a string literal [-Wformat-nonliteral]
        return min((int)diff, vsnprintf(str, diff + 1, format, ap));
                                                       ^~~~~~
1 warning generated.
[SETTING] Compiling ini_load.cpp
[SETTING] Compiling settingsgen/settingsgen.cpp
[SETTING] Compiling getoptdata.cpp
[SETTING] Compiling and Linking settings_gen
[SETTING] Generating table/settings.h
make[1]: Nothing to be done for `all'.
[SRC] Compiling and Linking endian_check
[SRC] Testing endianness for target
[SRC] Compiling and linking depend
[SRC] DEP CHECK (all files)
[SRC] Compiling 3rdparty/md5/md5.cpp
[SRC] Compiling 3rdparty/squirrel/sqstdlib/sqstdaux.cpp
[SRC] Compiling 3rdparty/squirrel/sqstdlib/sqstdmath.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqapi.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqbaselib.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqclass.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqcompiler.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqdebug.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqfuncstate.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqlexer.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqmem.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqobject.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqstate.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqtable.cpp
[SRC] Compiling 3rdparty/squirrel/squirrel/sqvm.cpp
[SRC] Compiling ai/ai_config.cpp
[SRC] Compiling ai/ai_core.cpp
[SRC] Compiling ai/ai_gui.cpp
[SRC] Compiling ai/ai_info.cpp
[SRC] Compiling ai/ai_instance.cpp
[SRC] Compiling ai/ai_scanner.cpp
[SRC] Compiling aircraft_cmd.cpp
[SRC] Compiling aircraft_gui.cpp
[SRC] Compiling airport.cpp
[SRC] Compiling airport_gui.cpp
[SRC] Compiling animated_tile.cpp
[SRC] Compiling articulated_vehicles.cpp
[SRC] Compiling autoreplace.cpp
[SRC] Compiling autoreplace_cmd.cpp
[SRC] Compiling autoreplace_gui.cpp
[SRC] Compiling base_consist.cpp
[SRC] Compiling blitter/32bpp_anim.cpp
[SRC] Compiling blitter/32bpp_anim_sse4.cpp
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_anim_sse4.cpp:17:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_anim_sse4.hpp:26:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse4.hpp:25:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_ssse3.hpp:25:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse2.hpp:25:
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse_type.h:33:10: warning: 
      'ALIGN' macro redefined [-Wmacro-redefined]
        #define ALIGN(n) __attribute__ ((aligned (n)))
                ^
/usr/include/i386/param.h:83:9: note: previous definition is here
#define ALIGN(p)        __DARWIN_ALIGN(p)
        ^
1 warning generated.
[SRC] Compiling blitter/32bpp_base.cpp
[SRC] Compiling blitter/32bpp_optimized.cpp
[SRC] Compiling blitter/32bpp_simple.cpp
[SRC] Compiling blitter/32bpp_sse2.cpp
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse2.cpp:17:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse2.hpp:25:
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse_type.h:33:10: warning: 
      'ALIGN' macro redefined [-Wmacro-redefined]
        #define ALIGN(n) __attribute__ ((aligned (n)))
                ^
/usr/include/i386/param.h:83:9: note: previous definition is here
#define ALIGN(p)        __DARWIN_ALIGN(p)
        ^
1 warning generated.
[SRC] Compiling blitter/32bpp_sse4.cpp
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse4.cpp:17:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse4.hpp:25:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_ssse3.hpp:25:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse2.hpp:25:
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse_type.h:33:10: warning: 
      'ALIGN' macro redefined [-Wmacro-redefined]
        #define ALIGN(n) __attribute__ ((aligned (n)))
                ^
/usr/include/i386/param.h:83:9: note: previous definition is here
#define ALIGN(p)        __DARWIN_ALIGN(p)
        ^
1 warning generated.
[SRC] Compiling blitter/32bpp_ssse3.cpp
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_ssse3.cpp:17:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_ssse3.hpp:25:
In file included from /Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse2.hpp:25:
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/blitter/32bpp_sse_type.h:33:10: warning: 
      'ALIGN' macro redefined [-Wmacro-redefined]
        #define ALIGN(n) __attribute__ ((aligned (n)))
                ^
/usr/include/i386/param.h:83:9: note: previous definition is here
#define ALIGN(p)        __DARWIN_ALIGN(p)
        ^
1 warning generated.
[SRC] Compiling blitter/8bpp_base.cpp
[SRC] Compiling blitter/8bpp_optimized.cpp
[SRC] Compiling blitter/8bpp_simple.cpp
[SRC] Compiling blitter/base.cpp
[SRC] Compiling blitter/null.cpp
[SRC] Compiling bmp.cpp
[SRC] Compiling bootstrap_gui.cpp
[SRC] Compiling bridge_gui.cpp
[SRC] Compiling bridge_map.cpp
[SRC] Compiling build_vehicle_gui.cpp
[SRC] Compiling cargoaction.cpp
[SRC] Compiling cargomonitor.cpp
[SRC] Compiling cargopacket.cpp
[SRC] Compiling cargotype.cpp
[SRC] Compiling cheat.cpp
[SRC] Compiling cheat_gui.cpp
[SRC] Compiling clear_cmd.cpp
[SRC] Compiling command.cpp
[SRC] Compiling company_cmd.cpp
[SRC] Compiling company_gui.cpp
[SRC] Compiling console.cpp
[SRC] Compiling console_cmds.cpp
[SRC] Compiling console_gui.cpp
[SRC] Compiling core/alloc_func.cpp
[SRC] Compiling core/bitmath_func.cpp
[SRC] Compiling core/geometry_func.cpp
[SRC] Compiling core/math_func.cpp
[SRC] Compiling core/pool_func.cpp
[SRC] Compiling core/random_func.cpp
[SRC] Compiling cpu.cpp
[SRC] Compiling crashlog.cpp
[SRC] Compiling currency.cpp
[SRC] Compiling date.cpp
[SRC] Compiling date_gui.cpp
[SRC] Compiling debug.cpp
[SRC] Compiling dedicated.cpp
[SRC] Compiling departures.cpp
[SRC] Compiling departures_gui.cpp
[SRC] Compiling depot.cpp
[SRC] Compiling depot_cmd.cpp
[SRC] Compiling depot_gui.cpp
[SRC] Compiling disaster_vehicle.cpp
[SRC] Compiling dock_gui.cpp
[SRC] Compiling driver.cpp
[SRC] Compiling economy.cpp
[SRC] Compiling effectvehicle.cpp
[SRC] Compiling elrail.cpp
[SRC] Compiling engine.cpp
[SRC] Compiling engine_gui.cpp
[SRC] Compiling error_gui.cpp
[SRC] Compiling fileio.cpp
[SRC] Compiling fios.cpp
[SRC] Compiling fios_gui.cpp
[SRC] Compiling fontcache.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/fontcache.cpp:30:18: warning: 
      unused variable 'MAX_FONT_SIZE' [-Wunused-const-variable]
static const int MAX_FONT_SIZE     = 72; ///< Maximum font size.
                 ^
1 warning generated.
[SRC] Compiling fontdetection.cpp
[SRC] Compiling game/game_config.cpp
[SRC] Compiling game/game_core.cpp
[SRC] Compiling game/game_info.cpp
[SRC] Compiling game/game_instance.cpp
[SRC] Compiling game/game_scanner.cpp
[SRC] Compiling game/game_text.cpp
[SRC] Compiling gamelog.cpp
[SRC] Compiling genworld.cpp
[SRC] Compiling genworld_gui.cpp
[SRC] Compiling gfx.cpp
[SRC] Compiling gfx_layout.cpp
[SRC] Compiling gfxinit.cpp
[SRC] Compiling goal.cpp
[SRC] Compiling goal_gui.cpp
[SRC] Compiling graph_gui.cpp
[SRC] Compiling ground_vehicle.cpp
[SRC] Compiling group_cmd.cpp
[SRC] Compiling group_gui.cpp
[SRC] Compiling heightmap.cpp
[SRC] Compiling highscore.cpp
[SRC] Compiling highscore_gui.cpp
[SRC] Compiling hotkeys.cpp
[SRC] Compiling industry_cmd.cpp
[SRC] Compiling industry_gui.cpp
[SRC] Compiling infrastructure.cpp
[SRC] Compiling ini.cpp
[SRC] Compiling ini_load.cpp
[SRC] Compiling intro_gui.cpp
[SRC] Compiling landscape.cpp
[SRC] Compiling linkgraph/demands.cpp
[SRC] Compiling linkgraph/flowmapper.cpp
[SRC] Compiling linkgraph/linkgraph.cpp
[SRC] Compiling linkgraph/linkgraph_gui.cpp
[SRC] Compiling linkgraph/linkgraphjob.cpp
[SRC] Compiling linkgraph/linkgraphschedule.cpp
[SRC] Compiling linkgraph/mcf.cpp
[SRC] Compiling linkgraph/refresh.cpp
[SRC] Compiling main_gui.cpp
[SRC] Compiling map.cpp
[SRC] Compiling misc.cpp
[SRC] Compiling misc/countedobj.cpp
[SRC] Compiling misc/dbg_helpers.cpp
[SRC] Compiling misc/getoptdata.cpp
[SRC] Compiling misc_cmd.cpp
[SRC] Compiling misc_gui.cpp
[SRC] Compiling mixer.cpp
[SRC] Compiling music.cpp
[SRC] Compiling music/cocoa_m.cpp
[SRC] Compiling music/extmidi.cpp
[SRC] Compiling music/null_m.cpp
[SRC] Compiling music/qtmidi.cpp
[SRC] Compiling music_gui.cpp
[SRC] Compiling network/core/address.cpp
[SRC] Compiling network/core/core.cpp
[SRC] Compiling network/core/host.cpp
[SRC] Compiling network/core/packet.cpp
[SRC] Compiling network/core/tcp.cpp
[SRC] Compiling network/core/tcp_admin.cpp
[SRC] Compiling network/core/tcp_connect.cpp
[SRC] Compiling network/core/tcp_content.cpp
[SRC] Compiling network/core/tcp_game.cpp
[SRC] Compiling network/core/tcp_http.cpp
[SRC] Compiling network/core/udp.cpp
[SRC] Compiling network/network.cpp
[SRC] Compiling network/network_admin.cpp
[SRC] Compiling network/network_chat_gui.cpp
[SRC] Compiling network/network_client.cpp
[SRC] Compiling network/network_command.cpp
[SRC] Compiling network/network_content.cpp
[SRC] Compiling network/network_content_gui.cpp
[SRC] Compiling network/network_gamelist.cpp
[SRC] Compiling network/network_gui.cpp
[SRC] Compiling network/network_server.cpp
[SRC] Compiling network/network_udp.cpp
[SRC] Compiling newgrf.cpp
[SRC] Compiling newgrf_airport.cpp
[SRC] Compiling newgrf_airporttiles.cpp
[SRC] Compiling newgrf_canal.cpp
[SRC] Compiling newgrf_cargo.cpp
[SRC] Compiling newgrf_commons.cpp
[SRC] Compiling newgrf_config.cpp
[SRC] Compiling newgrf_debug_gui.cpp
[SRC] Compiling newgrf_engine.cpp
[SRC] Compiling newgrf_generic.cpp
[SRC] Compiling newgrf_gui.cpp
[SRC] Compiling newgrf_house.cpp
[SRC] Compiling newgrf_industries.cpp
[SRC] Compiling newgrf_industrytiles.cpp
[SRC] Compiling newgrf_object.cpp
[SRC] Compiling newgrf_railtype.cpp
[SRC] Compiling newgrf_sound.cpp
[SRC] Compiling newgrf_spritegroup.cpp
[SRC] Compiling newgrf_station.cpp
[SRC] Compiling newgrf_storage.cpp
[SRC] Compiling newgrf_text.cpp
[SRC] Compiling newgrf_town.cpp
[SRC] Compiling newgrf_townname.cpp
[SRC] Compiling news_gui.cpp
[SRC] Compiling object_cmd.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/object_cmd.cpp:165:23: warning: 
      expression result unused [-Wunused-value]
        (val++, score < 720) ||
        ~~~~~~~~~~~~~~~~~~~~ ^
1 warning generated.
[SRC] Compiling object_gui.cpp
[SRC] Compiling openttd.cpp
[SRC] Compiling order_backup.cpp
[SRC] Compiling order_cmd.cpp
[SRC] Compiling order_gui.cpp
[SRC] Compiling os/macosx/crashlog_osx.cpp
[SRC] Compiling os/macosx/splash.cpp
[SRC] Compiling os/unix/unix.cpp
[SRC] Compiling osk_gui.cpp
[SRC] Compiling pathfinder/npf/aystar.cpp
[SRC] Compiling pathfinder/npf/npf.cpp
[SRC] Compiling pathfinder/npf/queue.cpp
[SRC] Compiling pathfinder/opf/opf_ship.cpp
[SRC] Compiling pathfinder/yapf/yapf_rail.cpp
[SRC] Compiling pathfinder/yapf/yapf_road.cpp
[SRC] Compiling pathfinder/yapf/yapf_ship.cpp
[SRC] Compiling pbs.cpp
[SRC] Compiling plans.cpp
[SRC] Compiling plans_cmd.cpp
[SRC] Compiling plans_gui.cpp
[SRC] Compiling programmable_signals.cpp
[SRC] Compiling programmable_signals_gui.cpp
[SRC] Compiling progress.cpp
[SRC] Compiling rail.cpp
[SRC] Compiling rail_cmd.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/rail_cmd.cpp:2378:73: warning: 
      expression result unused [-Wunused-value]
  ...(image++,                          (track & TRACK_BIT_3WAY_SE) == 0) ||
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
1 warning generated.
[SRC] Compiling rail_gui.cpp
[SRC] Compiling rev.cpp
[SRC] Compiling road.cpp
[SRC] Compiling road_cmd.cpp
[SRC] Compiling road_gui.cpp
[SRC] Compiling road_map.cpp
[SRC] Compiling roadstop.cpp
[SRC] Compiling roadveh_cmd.cpp
[SRC] Compiling roadveh_gui.cpp
[SRC] Compiling saveload/afterload.cpp
[SRC] Compiling saveload/ai_sl.cpp
[SRC] Compiling saveload/airport_sl.cpp
[SRC] Compiling saveload/animated_tile_sl.cpp
[SRC] Compiling saveload/autoreplace_sl.cpp
[SRC] Compiling saveload/cargomonitor_sl.cpp
[SRC] Compiling saveload/cargopacket_sl.cpp
[SRC] Compiling saveload/cheat_sl.cpp
[SRC] Compiling saveload/company_sl.cpp
[SRC] Compiling saveload/depot_sl.cpp
[SRC] Compiling saveload/economy_sl.cpp
[SRC] Compiling saveload/engine_sl.cpp
[SRC] Compiling saveload/extended_ver_sl.cpp
[SRC] Compiling saveload/game_sl.cpp
[SRC] Compiling saveload/gamelog_sl.cpp
[SRC] Compiling saveload/goal_sl.cpp
[SRC] Compiling saveload/group_sl.cpp
[SRC] Compiling saveload/industry_sl.cpp
[SRC] Compiling saveload/labelmaps_sl.cpp
[SRC] Compiling saveload/linkgraph_sl.cpp
[SRC] Compiling saveload/map_sl.cpp
[SRC] Compiling saveload/misc_sl.cpp
[SRC] Compiling saveload/newgrf_sl.cpp
[SRC] Compiling saveload/object_sl.cpp
[SRC] Compiling saveload/oldloader.cpp
[SRC] Compiling saveload/oldloader_sl.cpp
[SRC] Compiling saveload/order_sl.cpp
[SRC] Compiling saveload/plans_sl.cpp
[SRC] Compiling saveload/saveload.cpp
[SRC] Compiling saveload/signal_sl.cpp
[SRC] Compiling saveload/signs_sl.cpp
[SRC] Compiling saveload/station_sl.cpp
[SRC] Compiling saveload/storage_sl.cpp
[SRC] Compiling saveload/story_sl.cpp
[SRC] Compiling saveload/strings_sl.cpp
[SRC] Compiling saveload/subsidy_sl.cpp
[SRC] Compiling saveload/town_sl.cpp
[SRC] Compiling saveload/tracerestrict_sl.cpp
[SRC] Compiling saveload/vehicle_sl.cpp
[SRC] Compiling saveload/waypoint_sl.cpp
[SRC] Compiling screenshot.cpp
[SRC] Compiling script/api/script_accounting.cpp
[SRC] Compiling script/api/script_admin.cpp
[SRC] Compiling script/api/script_airport.cpp
[SRC] Compiling script/api/script_base.cpp
[SRC] Compiling script/api/script_basestation.cpp
[SRC] Compiling script/api/script_bridge.cpp
[SRC] Compiling script/api/script_bridgelist.cpp
[SRC] Compiling script/api/script_cargo.cpp
[SRC] Compiling script/api/script_cargolist.cpp
[SRC] Compiling script/api/script_cargomonitor.cpp
[SRC] Compiling script/api/script_company.cpp
[SRC] Compiling script/api/script_companymode.cpp
[SRC] Compiling script/api/script_controller.cpp
[SRC] Compiling script/api/script_date.cpp
[SRC] Compiling script/api/script_depotlist.cpp
[SRC] Compiling script/api/script_engine.cpp
[SRC] Compiling script/api/script_enginelist.cpp
[SRC] Compiling script/api/script_error.cpp
[SRC] Compiling script/api/script_event.cpp
[SRC] Compiling script/api/script_event_types.cpp
[SRC] Compiling script/api/script_execmode.cpp
[SRC] Compiling script/api/script_game.cpp
[SRC] Compiling script/api/script_gamesettings.cpp
[SRC] Compiling script/api/script_goal.cpp
[SRC] Compiling script/api/script_group.cpp
[SRC] Compiling script/api/script_grouplist.cpp
[SRC] Compiling script/api/script_industry.cpp
[SRC] Compiling script/api/script_industrylist.cpp
[SRC] Compiling script/api/script_industrytype.cpp
[SRC] Compiling script/api/script_industrytypelist.cpp
[SRC] Compiling script/api/script_infrastructure.cpp
[SRC] Compiling script/api/script_list.cpp
[SRC] Compiling script/api/script_log.cpp
[SRC] Compiling script/api/script_map.cpp
[SRC] Compiling script/api/script_marine.cpp
[SRC] Compiling script/api/script_news.cpp
[SRC] Compiling script/api/script_object.cpp
[SRC] Compiling script/api/script_order.cpp
[SRC] Compiling script/api/script_rail.cpp
[SRC] Compiling script/api/script_railtypelist.cpp
[SRC] Compiling script/api/script_road.cpp
[SRC] Compiling script/api/script_sign.cpp
[SRC] Compiling script/api/script_signlist.cpp
[SRC] Compiling script/api/script_station.cpp
[SRC] Compiling script/api/script_stationlist.cpp
[SRC] Compiling script/api/script_story_page.cpp
[SRC] Compiling script/api/script_storypageelementlist.cpp
[SRC] Compiling script/api/script_storypagelist.cpp
[SRC] Compiling script/api/script_subsidy.cpp
[SRC] Compiling script/api/script_subsidylist.cpp
[SRC] Compiling script/api/script_testmode.cpp
[SRC] Compiling script/api/script_text.cpp
[SRC] Compiling script/api/script_tile.cpp
[SRC] Compiling script/api/script_tilelist.cpp
[SRC] Compiling script/api/script_town.cpp
[SRC] Compiling script/api/script_townlist.cpp
[SRC] Compiling script/api/script_tunnel.cpp
[SRC] Compiling script/api/script_vehicle.cpp
[SRC] Compiling script/api/script_vehiclelist.cpp
[SRC] Compiling script/api/script_viewport.cpp
[SRC] Compiling script/api/script_waypoint.cpp
[SRC] Compiling script/api/script_waypointlist.cpp
[SRC] Compiling script/api/script_window.cpp
[SRC] Compiling script/script_config.cpp
[SRC] Compiling script/script_info.cpp
[SRC] Compiling script/script_info_dummy.cpp
[SRC] Compiling script/script_instance.cpp
[SRC] Compiling script/script_scanner.cpp
[SRC] Compiling script/squirrel.cpp
[SRC] Compiling script/squirrel_std.cpp
[SRC] Compiling settings.cpp
[SRC] Compiling settings_gui.cpp
[SRC] Compiling ship_cmd.cpp
[SRC] Compiling ship_gui.cpp
[SRC] Compiling signal.cpp
[SRC] Compiling signs.cpp
[SRC] Compiling signs_cmd.cpp
[SRC] Compiling signs_gui.cpp
[SRC] Compiling smallmap_gui.cpp
[SRC] Compiling sound.cpp
[SRC] Compiling sound/cocoa_s.cpp
[SRC] Compiling sound/null_s.cpp
[SRC] Compiling sprite.cpp
[SRC] Compiling spritecache.cpp
[SRC] Compiling spriteloader/grf.cpp
[SRC] Compiling station.cpp
[SRC] Compiling station_cmd.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/station_cmd.cpp:3445:34: warning: 
      expression result unused [-Wunused-value]
                                (rating += 45, waittime > 3) ||
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/station_cmd.cpp:3452:49: warning: 
      expression result unused [-Wunused-value]
                                (rating += 20, ge->max_waiting_cargo > 100) ||
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/station_cmd.cpp:3461:29: warning: 
      expression result unused [-Wunused-value]
                        (rating += 10, age >= 1) ||
                        ~~~~~~~~~~~~~~~~~~~~~~~~ ^
3 warnings generated.
[SRC] Compiling station_gui.cpp
[SRC] Compiling statusbar_gui.cpp
[SRC] Compiling story.cpp
[SRC] Compiling story_gui.cpp
[SRC] Compiling strgen/strgen_base.cpp
[SRC] Compiling string.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/string.cpp:54:49: warning: 
      format string is not a string literal [-Wformat-nonliteral]
        return min((int)diff, vsnprintf(str, diff + 1, format, ap));
                                                       ^~~~~~
1 warning generated.
[SRC] Compiling stringfilter.cpp
[SRC] Compiling strings.cpp
[SRC] Compiling subsidy.cpp
[SRC] Compiling subsidy_gui.cpp
[SRC] Compiling terraform_cmd.cpp
[SRC] Compiling terraform_gui.cpp
[SRC] Compiling textbuf.cpp
[SRC] Compiling texteff.cpp
[SRC] Compiling textfile_gui.cpp
[SRC] Compiling tgp.cpp
[SRC] Compiling thread/thread_pthread.cpp
[SRC] Compiling tile_map.cpp
[SRC] Compiling tilearea.cpp
[SRC] Compiling timetable_cmd.cpp
[SRC] Compiling timetable_gui.cpp
[SRC] Compiling toolbar_gui.cpp
[SRC] Compiling town_cmd.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/town_cmd.cpp:180:49: warning: 
      expression result unused [-Wunused-value]
                (this->town_label++,   r <= RATING_VERYGOOD)  || // Very Good
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
1 warning generated.
[SRC] Compiling town_gui.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/town_gui.cpp:168:55: warning: 
      expression result unused [-Wunused-value]
  ...(str++,                    r <= RATING_EXCELLENT) || // Excellent
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
1 warning generated.
[SRC] Compiling townname.cpp
[SRC] Compiling tracerestrict.cpp
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/tracerestrict.cpp:71:21: warning: 
      unused variable '_tracerestrict_penalty_item_default_value'
      [-Wunused-const-variable]
static const uint16 _tracerestrict_penalty_item_default_value = 500;
                    ^
1 warning generated.
[SRC] Compiling tracerestrict_gui.cpp
[SRC] Compiling train_cmd.cpp
[SRC] Compiling train_gui.cpp
[SRC] Compiling transparency_gui.cpp
[SRC] Compiling tree_cmd.cpp
[SRC] Compiling tree_gui.cpp
[SRC] Compiling tunnel_map.cpp
[SRC] Compiling tunnelbridge_cmd.cpp
[SRC] Compiling vehicle.cpp
[SRC] Compiling vehicle_cmd.cpp
[SRC] Compiling vehicle_gui.cpp
[SRC] Compiling vehiclelist.cpp
[SRC] Compiling video/dedicated_v.cpp
[SRC] Compiling video/null_v.cpp
[SRC] Compiling viewport.cpp
[SRC] Compiling viewport_gui.cpp
[SRC] Compiling viewport_sprite_sorter_sse4.cpp
[SRC] Compiling void_cmd.cpp
[SRC] Compiling water_cmd.cpp
[SRC] Compiling waypoint.cpp
[SRC] Compiling waypoint_cmd.cpp
[SRC] Compiling waypoint_gui.cpp
[SRC] Compiling widget.cpp
[SRC] Compiling widgets/dropdown.cpp
[SRC] Compiling window.cpp
[SRC] Compiling zoning_cmd.cpp
[SRC] Compiling zoning_gui.cpp
[SRC] Compiling os/macosx/macos.mm
[SRC] Compiling video/cocoa/cocoa_v.mm
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/video/cocoa/cocoa_v.mm:225:22: warning: 
      incompatible pointer types sending 'OTTDMain *' to parameter of type
      'id<NSFileManagerDelegate>' [-Wincompatible-pointer-types]
        [ NSApp setDelegate:_ottd_main ];
                            ^~~~~~~~~~
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/video/cocoa/cocoa_v.mm:607:59: warning: 
      format string is not a string literal (potentially insecure)
      [-Wformat-security]
  ...], [ NSString stringWithUTF8String:message ], [ NSString stringWithUTF8S...
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
[SRC] Compiling video/cocoa/event.mm
[SRC] Compiling video/cocoa/fullscreen.mm
[SRC] Compiling video/cocoa/wnd_quartz.mm
/Users/Val/Downloads/OpenTTD-patches-jgrpp/src/video/cocoa/wnd_quartz.mm:332:30: warning: 
      incompatible pointer types sending 'OTTD_CocoaWindowDelegate *' to
      parameter of type 'id<NSFileManagerDelegate>'
      [-Wincompatible-pointer-types]
                [ this->window setDelegate:[ delegate autorelease ] ];
                                           ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/objc/NSObject.h:38:1: note: instance method 'autorelease' is
      assumed to return an instance of its receiver type
      ('OTTD_CocoaWindowDelegate *')
- (instancetype)autorelease OBJC_ARC_UNAVAILABLE;
^
1 warning generated.
[SRC] Compiling video/cocoa/wnd_quickdraw.mm
[SRC] Linking openttd
Undefined symbols for architecture x86_64:
  "std::string::compare(char const*) const", referenced from:
      LoadTranslations() in game_text.o
      IsSameScript(ContentInfo const*, bool, ScriptInfo*, Subdirectory) in script_scanner.o
  "std::string::compare(unsigned long, unsigned long, char const*) const", referenced from:
      LoadTranslations() in game_text.o
  "std::string::_M_leak_hard()", referenced from:
      TarAddLink(std::string const&, std::string const&, Subdirectory) in fileio.o
  "std::string::_Rep::_M_destroy(std::allocator<char> const&)", referenced from:
      FioFOpenFile(char const*, char const*, Subdirectory, unsigned long*) in fileio.o
      FioTarFirstDir(char const*, Subdirectory) in fileio.o
      FioTarAddLink(char const*, char const*, Subdirectory) in fileio.o
      TarAddLink(std::string const&, std::string const&, Subdirectory) in fileio.o
      TarScanner::AddFile(char const*, unsigned long, char const*) in fileio.o
      ExtractTar(char const*, Subdirectory) in fileio.o
      std::map<std::string, TarListEntry, std::less<std::string>, std::allocator<std::pair<std::string const, TarListEntry> > >::operator[](std::string const&) in fileio.o
      ...
  "std::string::_Rep::_S_empty_rep_storage", referenced from:
      FioFOpenFile(char const*, char const*, Subdirectory, unsigned long*) in fileio.o
      FioTarFirstDir(char const*, Subdirectory) in fileio.o
      FioTarAddLink(char const*, char const*, Subdirectory) in fileio.o
      TarAddLink(std::string const&, std::string const&, Subdirectory) in fileio.o
      TarScanner::AddFile(char const*, unsigned long, char const*) in fileio.o
      ExtractTar(char const*, Subdirectory) in fileio.o
      std::map<std::string, TarListEntry, std::less<std::string>, std::allocator<std::pair<std::string const, TarListEntry> > >::operator[](std::string const&) in fileio.o
      ...
  "std::string::append(char const*, unsigned long)", referenced from:
      ScriptAdmin::MakeJSON(SQVM*, long long, int, std::string&) in script_admin.o
  "std::string::append(std::string const&)", referenced from:
      ScriptAdmin::MakeJSON(SQVM*, long long, int, std::string&) in script_admin.o
  "std::string::append(unsigned long, char)", referenced from:
      TarAddLink(std::string const&, std::string const&, Subdirectory) in fileio.o
  "std::string::assign(char const*, unsigned long)", referenced from:
      Layouter::GetCachedParagraphLayout(char const*, unsigned long, FontState const&) in gfx_layout.o
      ScriptAdmin::MakeJSON(SQVM*, long long, int, std::string&) in script_admin.o
  "std::string::assign(std::string const&)", referenced from:
      ScriptAdmin::MakeJSON(SQVM*, long long, int, std::string&) in script_admin.o
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)", referenced from:
      FioFOpenFile(char const*, char const*, Subdirectory, unsigned long*) in fileio.o
      FioTarFirstDir(char const*, Subdirectory) in fileio.o
      FioTarAddLink(char const*, char const*, Subdirectory) in fileio.o
      TarAddLink(std::string const&, std::string const&, Subdirectory) in fileio.o
      TarScanner::AddFile(char const*, unsigned long, char const*) in fileio.o
      ExtractTar(char const*, Subdirectory) in fileio.o
      FiosGetHeightmapListCallback(SaveLoadDialogMode, char const*, char const*, char*, char const*) in fios.o
      ...
  "std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&)", referenced from:
      TarAddLink(std::string const&, std::string const&, Subdirectory) in fileio.o
      TarScanner::AddFile(char const*, unsigned long, char const*) in fileio.o
      std::map<std::string, TarListEntry, std::less<std::string>, std::allocator<std::pair<std::string const, TarListEntry> > >::operator[](std::string const&) in fileio.o
      std::_Rb_tree<std::string, std::pair<std::string const, TarListEntry>, std::_Select1st<std::pair<std::string const, TarListEntry> >, std::less<std::string>, std::allocator<std::pair<std::string const, TarListEntry> > >::_M_create_node(std::pair<std::string const, TarListEntry> const&) in fileio.o
      std::_Rb_tree<std::string, std::pair<std::string const, std::string>, std::_Select1st<std::pair<std::string const, std::string> >, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >::_M_create_node(std::pair<std::string const, std::string> const&) in fileio.o
      std::_Rb_tree<std::string, std::pair<std::string const, TarFileListEntry>, std::_Select1st<std::pair<std::string const, TarFileListEntry> >, std::less<std::string>, std::allocator<std::pair<std::string const, TarFileListEntry> > >::_M_create_node(std::pair<std::string const, TarFileListEntry> const&) in fileio.o
      std::map<Layouter::LineCacheKey, Layouter::LineCacheItem, std::less<Layouter::LineCacheKey>, std::allocator<std::pair<Layouter::LineCacheKey const, Layouter::LineCacheItem> > >::operator[](Layouter::LineCacheKey const&) in gfx_layout.o
      ...
  "std::_List_node_base::hook(std::_List_node_base*)", referenced from:
      AIConfig::PushExtraConfigList() in ai_config.o
      AIInfo::Constructor(SQVM*) in ai_info.o
      StationCargoReroute::operator()(CargoPacket*) in cargoaction.o
      VehicleCargoReroute::operator()(CargoPacket*) in cargoaction.o
      std::_Rb_tree<unsigned short, std::pair<unsigned short const, std::list<CargoPacket*, std::allocator<CargoPacket*> > >, std::_Select1st<std::pair<unsigned short const, std::list<CargoPacket*, std::allocator<CargoPacket*> > > >, std::less<unsigned short>, std::allocator<std::pair<unsigned short const, std::list<CargoPacket*, std::allocator<CargoPacket*> > > > >::_M_create_node(std::pair<unsigned short const, std::list<CargoPacket*, std::allocator<CargoPacket*> > > const&) in cargoaction.o
      VehicleCargoList::Append(CargoPacket*, CargoList<VehicleCargoList, std::list<CargoPacket*, std::allocator<CargoPacket*> > >::MoveToAction) in cargopacket.o
      VehicleCargoList::Stage(bool, unsigned short, SmallStack<unsigned short, unsigned short, (unsigned short)65535, (unsigned short)8, (unsigned short)65533>, unsigned char, GoodsEntry const*, CargoPayment*) in cargopacket.o
      ...
  "std::_List_node_base::swap(std::_List_node_base&, std::_List_node_base&)", referenced from:
      Load_STNN() in station_sl.o
      SwapPackets(GoodsEntry*) in station_sl.o
  "std::_List_node_base::unhook()", referenced from:
      VehicleCargoList::Stage(bool, unsigned short, SmallStack<unsigned short, unsigned short, (unsigned short)65535, (unsigned short)8, (unsigned short)65533>, unsigned char, GoodsEntry const*, CargoPayment*) in cargopacket.o
      VehicleCargoList::Return(unsigned int, StationCargoList*, unsigned short) in cargopacket.o
      VehicleCargoList::Shift(unsigned int, VehicleCargoList*) in cargopacket.o
      VehicleCargoList::Unload(unsigned int, StationCargoList*, CargoPayment*) in cargopacket.o
      VehicleCargoList::Reroute(unsigned int, VehicleCargoList*, unsigned short, unsigned short, GoodsEntry const*) in cargopacket.o
      void VehicleCargoList::PopCargo<CargoRemoval<VehicleCargoList> >(CargoRemoval<VehicleCargoList>) in cargopacket.o
      MultiMap<unsigned short, CargoPacket*, std::less<unsigned short> >::erase(MultiMapIterator<std::_Rb_tree_iterator<std::pair<unsigned short const, std::list<CargoPacket*, std::allocator<CargoPacket*> > > >, std::_List_iterator<CargoPacket*>, unsigned short, CargoPacket*, std::less<unsigned short> >) in cargopacket.o
      ...
  "std::_List_node_base::transfer(std::_List_node_base*, std::_List_node_base*)", referenced from:
      ScheduleErrorMessage(std::list<ErrorMessageData, std::allocator<ErrorMessageData> >&) in error_gui.o
      LinkGraphSchedule::SpawnNext() in linkgraphschedule.o
      void std::list<LinkRefresher::RefitDesc, std::allocator<LinkRefresher::RefitDesc> >::insert<std::_List_const_iterator<LinkRefresher::RefitDesc> >(std::_List_iterator<LinkRefresher::RefitDesc>, std::_List_const_iterator<LinkRefresher::RefitDesc>, std::_List_const_iterator<LinkRefresher::RefitDesc>) in refresh.o
  "std::_Rb_tree_decrement(std::_Rb_tree_node_base const*)", referenced from:
      VehicleCargoList::Stage(bool, unsigned short, SmallStack<unsigned short, unsigned short, (unsigned short)65535, (unsigned short)8, (unsigned short)65533>, unsigned char, GoodsEntry const*, CargoPayment*) in cargopacket.o
      ScriptList::RemoveBottom(int) in script_list.o
      ScriptListSorterValueDescending::Begin() in script_list.o
      ScriptListSorterValueDescending::Next() in script_list.o
      ScriptListSorterValueDescending::Remove(int) in script_list.o
      FlowStat::GetVia(unsigned short, unsigned short) const in station_cmd.o
      FlowStatMap::GetFlow() const in station_cmd.o
      ...
  "std::_Rb_tree_decrement(std::_Rb_tree_node_base*)", referenced from:
      std::_Rb_tree<char const*, std::pair<char const* const, int>, std::_Select1st<std::pair<char const* const, int> >, StringCompare, std::allocator<std::pair<char const* const, int> > >::_M_insert_unique(std::_Rb_tree_iterator<std::pair<char const* const, int> >, std::pair<char const* const, int> const&) in ai_config.o
      std::_Rb_tree<char const*, std::pair<char const* const, int>, std::_Select1st<std::pair<char const* const, int> >, StringCompare, std::allocator<std::pair<char const* const, int> > >::_M_insert_unique(std::pair<char const* const, int> const&) in ai_config.o
      std::_Rb_tree<char const*, std::pair<char const* const, ScriptInfo*>, std::_Select1st<std::pair<char const* const, ScriptInfo*> >, StringCompare, std::allocator<std::pair<char const* const, ScriptInfo*> > >::_M_insert_unique(std::_Rb_tree_iterator<std::pair<char const* const, ScriptInfo*> >, std::pair<char const* const, ScriptInfo*> const&) in ai_scanner.o
      std::_Rb_tree<char const*, std::pair<char const* const, ScriptInfo*>, std::_Select1st<std::pair<char const* const, ScriptInfo*> >, StringCompare, std::allocator<std::pair<char const* const, ScriptInfo*> > >::_M_insert_unique(std::pair<char const* const, ScriptInfo*> const&) in ai_scanner.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::_M_insert_unique(std::pair<char const* const, BlitterFactory*> const&) in 32bpp_anim.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::_M_insert_unique(std::pair<char const* const, BlitterFactory*> const&) in 32bpp_anim_sse4.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::_M_insert_unique(std::pair<char const* const, BlitterFactory*> const&) in 32bpp_optimized.o
      ...
  "std::_Rb_tree_increment(std::_Rb_tree_node_base const*)", referenced from:
      AIListWindow::AIListWindow(WindowDesc*, Owner) in ai_gui.o
      AIListWindow::DrawWidget(OTTD_Rect const&, int) const in ai_gui.o
      AIListWindow::ChangeAI() in ai_gui.o
      AIScannerInfo::SelectRandomAI() const in ai_scanner.o
      CargoList<StationCargoList, MultiMap<unsigned short, CargoPacket*, std::less<unsigned short> > >::InvalidateCache() in cargopacket.o
      FlowRiver(unsigned int, unsigned int) in landscape.o
      LinkGraphOverlay::DrawLinks(DrawPixelInfo const*) const in linkgraph_gui.o
      ...
  "std::_Rb_tree_increment(std::_Rb_tree_node_base*)", referenced from:
      std::_Rb_tree<char const*, std::pair<char const* const, int>, std::_Select1st<std::pair<char const* const, int> >, StringCompare, std::allocator<std::pair<char const* const, int> > >::_M_insert_unique(std::_Rb_tree_iterator<std::pair<char const* const, int> >, std::pair<char const* const, int> const&) in ai_config.o
      AIScannerInfo::FindInfo(char const*, int, bool) in ai_scanner.o
      std::_Rb_tree<char const*, std::pair<char const* const, ScriptInfo*>, std::_Select1st<std::pair<char const* const, ScriptInfo*> >, StringCompare, std::allocator<std::pair<char const* const, ScriptInfo*> > >::_M_insert_unique(std::_Rb_tree_iterator<std::pair<char const* const, ScriptInfo*> >, std::pair<char const* const, ScriptInfo*> const&) in ai_scanner.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::erase(char const* const&) in 32bpp_anim.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::erase(char const* const&) in 32bpp_anim_sse4.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::erase(char const* const&) in 32bpp_optimized.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::erase(char const* const&) in 32bpp_simple.o
      ...
  "std::__throw_length_error(char const*)", referenced from:
      std::vector<ScriptConfigItem const*, std::allocator<ScriptConfigItem const*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<ScriptConfigItem const**, std::vector<ScriptConfigItem const*, std::allocator<ScriptConfigItem const*> > >, ScriptConfigItem const* const&) in ai_gui.o
      std::vector<Path*, std::allocator<Path*> >::_M_fill_insert(__gnu_cxx::__normal_iterator<Path**, std::vector<Path*, std::allocator<Path*> > >, unsigned long, Path* const&) in mcf.o
      std::vector<unsigned int, std::allocator<unsigned int> >::_M_insert_aux(__gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int, std::allocator<unsigned int> > >, unsigned int const&) in plans_cmd.o
      std::vector<PlanLine*, std::allocator<PlanLine*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<PlanLine**, std::vector<PlanLine*, std::allocator<PlanLine*> > >, PlanLine* const&) in plans_cmd.o
      std::vector<unsigned int, std::allocator<unsigned int> >::_M_insert_aux(__gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int, std::allocator<unsigned int> > >, unsigned int const&) in plans_gui.o
      std::vector<PlansWindow::ListItem, std::allocator<PlansWindow::ListItem> >::_M_insert_aux(__gnu_cxx::__normal_iterator<PlansWindow::ListItem*, std::vector<PlansWindow::ListItem, std::allocator<PlansWindow::ListItem> > >, PlansWindow::ListItem const&) in plans_gui.o
      std::vector<Engine*, std::allocator<Engine*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<Engine**, std::vector<Engine*, std::allocator<Engine*> > >, Engine* const&) in engine_sl.o
      ...
  "std::__throw_out_of_range(char const*)", referenced from:
      IndustryCargoesWindow::ComputeIndustryDisplay(unsigned char) in industry_gui.o
      SmallMapWindow::OnInvalidateData(int, bool) in smallmap_gui.o
  "std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)", referenced from:
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::erase(char const* const&) in 32bpp_anim.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::erase(char const* const&) in 32bpp_anim_sse4.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::erase(char const* const&) in 32bpp_optimized.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::erase(char const* const&) in 32bpp_simple.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::erase(char const* const&) in 32bpp_sse2.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::erase(char const* const&) in 32bpp_sse4.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::erase(char const* const&) in 32bpp_ssse3.o
      ...
  "std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)", referenced from:
      std::_Rb_tree<char const*, std::pair<char const* const, int>, std::_Select1st<std::pair<char const* const, int> >, StringCompare, std::allocator<std::pair<char const* const, int> > >::_M_insert_unique(std::_Rb_tree_iterator<std::pair<char const* const, int> >, std::pair<char const* const, int> const&) in ai_config.o
      std::_Rb_tree<char const*, std::pair<char const* const, int>, std::_Select1st<std::pair<char const* const, int> >, StringCompare, std::allocator<std::pair<char const* const, int> > >::_M_insert_unique(std::pair<char const* const, int> const&) in ai_config.o
      std::_Rb_tree<char const*, std::pair<char const* const, ScriptInfo*>, std::_Select1st<std::pair<char const* const, ScriptInfo*> >, StringCompare, std::allocator<std::pair<char const* const, ScriptInfo*> > >::_M_insert_unique(std::_Rb_tree_iterator<std::pair<char const* const, ScriptInfo*> >, std::pair<char const* const, ScriptInfo*> const&) in ai_scanner.o
      std::_Rb_tree<char const*, std::pair<char const* const, ScriptInfo*>, std::_Select1st<std::pair<char const* const, ScriptInfo*> >, StringCompare, std::allocator<std::pair<char const* const, ScriptInfo*> > >::_M_insert_unique(std::pair<char const* const, ScriptInfo*> const&) in ai_scanner.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::_M_insert_unique(std::pair<char const* const, BlitterFactory*> const&) in 32bpp_anim.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::_M_insert_unique(std::pair<char const* const, BlitterFactory*> const&) in 32bpp_anim_sse4.o
      std::_Rb_tree<char const*, std::pair<char const* const, BlitterFactory*>, std::_Select1st<std::pair<char const* const, BlitterFactory*> >, StringCompare, std::allocator<std::pair<char const* const, BlitterFactory*> > >::_M_insert_unique(std::pair<char const* const, BlitterFactory*> const&) in 32bpp_optimized.o
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [openttd] Error 1
make: *** [all] Error 1
Valentins-MacBook-Pro:OpenTTD-patches-jgrpp Val$ 
User avatar
JGR
Tycoon
Tycoon
Posts: 2590
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: JGR's Patch Pack

Post by JGR »

Valle wrote:Thank you for your quick reaction. Unfortunately, another error occurred.
It looks like you're using LLVM/clang rather than gcc, at least for the link step?
Either way, have you checked that you're able to build trunk OpenTTD using your setup?
Ex TTDPatch Coder
Patch Pack, Github
User avatar
Mizari
Traffic Manager
Traffic Manager
Posts: 136
Joined: 22 Apr 2012 14:21

Re: JGR's Patch Pack

Post by Mizari »

How does "ticks per minute" actually work? Because even if I alter this -- to try and make the clock minutes pass faster, more approximate to the other time patch, it doesn't seem to reflect in practice. Even if it is set to the exact same, and - ticks should be the same, right, regardless of the patch? Ticks per minute are set to 74-- yet the time moves so incredibly slowly that a slow service appears to operate at a 4 minute frequency-- weird.
willsym22
Engineer
Engineer
Posts: 118
Joined: 03 Mar 2014 23:14
Location: Essex

Re: JGR's Patch Pack

Post by willsym22 »

Hello,

I recently downloaded this pack and I have been thoroughly enjoying my time using this patch. However, all of a sudden I have been unable to convert track in single player, it works fine in multi player.
Is there some sort of setting in the advanced settings that I have accidentally changed?
Thanks
User avatar
JGR
Tycoon
Tycoon
Posts: 2590
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: JGR's Patch Pack

Post by JGR »

Mizari wrote:How does "ticks per minute" actually work? Because even if I alter this -- to try and make the clock minutes pass faster, more approximate to the other time patch, it doesn't seem to reflect in practice. Even if it is set to the exact same, and - ticks should be the same, right, regardless of the patch? Ticks per minute are set to 74-- yet the time moves so incredibly slowly that a slow service appears to operate at a 4 minute frequency-- weird.
Ticks are not necessarily the same, when the day length is not equal to 1. In the day length patch which I've used, only every Nth tick is counted for the purposes of increasing the current date/time.
74 is the number of ticks per day, which is fixed, so a ticks per minute of 74 is where a minute is the same length as a day. Other day length patches may have different approaches to how ticks/days/minutes are handled.
In general though, the ticks per minute is inversely proportional to the speed at which minutes go by. If the time in minutes seems too slow, you can reduce the value to make them go by faster.
willsym22 wrote:Hello,

I recently downloaded this pack and I have been thoroughly enjoying my time using this patch. However, all of a sudden I have been unable to convert track in single player, it works fine in multi player.
Is there some sort of setting in the advanced settings that I have accidentally changed?
Thanks
I'm not aware of any settings which would cause that. Is this using the convert/upgrade rail tool (at the right end of the railway toolbar)?
Do you get a specific error message when you try to do it? Are you using a rail GRF, and what types are you trying to convert from and to? Are you doing this while paused?
Ex TTDPatch Coder
Patch Pack, Github
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: JGR's Patch Pack

Post by Eddi »

JGR wrote:In the day length patch which I've used, only every Nth tick is counted for the purposes of increasing the current date/time.
that seems like a total misfeature to me. time is meant to be relative to the original ticks, not the daylength-extended ticks. because there is no sense in timetabling according to days with a large daylength, time should be used to provide a finer granularity. if you scale time also by daylength, you completely reverse this purpose.
User avatar
JGR
Tycoon
Tycoon
Posts: 2590
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: JGR's Patch Pack

Post by JGR »

Eddi wrote:
JGR wrote:In the day length patch which I've used, only every Nth tick is counted for the purposes of increasing the current date/time.
that seems like a total misfeature to me. time is meant to be relative to the original ticks, not the daylength-extended ticks. because there is no sense in timetabling according to days with a large daylength, time should be used to provide a finer granularity. if you scale time also by daylength, you completely reverse this purpose.
As ever with day length patches, there doesn't seem to be any consensus on what should and should not be scaled.
Timetables use original ticks, as vehicle motion is not scaled by day length. For display purposes this is scaled by the day length as otherwise it does not match up with the game date/time, and the arrival departures dates are incorrect.
Ex TTDPatch Coder
Patch Pack, Github
willsym22
Engineer
Engineer
Posts: 118
Joined: 03 Mar 2014 23:14
Location: Essex

Re: JGR's Patch Pack

Post by willsym22 »

willsym22 wrote:Hello,

I recently downloaded this pack and I have been thoroughly enjoying my time using this patch. However, all of a sudden I have been unable to convert track in single player, it works fine in multi player.
Is there some sort of setting in the advanced settings that I have accidentally changed?
Thanks
JGR wrote: I'm not aware of any settings which would cause that. Is this using the convert/upgrade rail tool (at the right end of the railway toolbar)?
Do you get a specific error message when you try to do it? Are you using a rail GRF, and what types are you trying to convert from and to? Are you doing this while paused?
Yes, Im using the NuTracks grf and im (From low speed to medium speed), and im using the same parameters and grf preset that i use on Multiplayer.
The error message is "Cannot convert rail type here, No suitable railway track"
I have also checked that the game is not paused.
Thanks
User avatar
JGR
Tycoon
Tycoon
Posts: 2590
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: JGR's Patch Pack

Post by JGR »

willsym22 wrote: Yes, Im using the NuTracks grf and im (From low speed to medium speed), and im using the same parameters and grf preset that i use on Multiplayer.
The error message is "Cannot convert rail type here, No suitable railway track"
I have also checked that the game is not paused.
Thanks
Could you post a savegame which shows the bug please?
Ex TTDPatch Coder
Patch Pack, Github
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: JGR's Patch Pack

Post by Eddi »

JGR wrote:As ever with day length patches, there doesn't seem to be any consensus on what should and should not be scaled.
that may be true for some aspects of daylength, but i don't think this applies here.

date should be scaled, time should not. that's as close to a consensus as you will get.
User avatar
JGR
Tycoon
Tycoon
Posts: 2590
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: JGR's Patch Pack

Post by JGR »

Eddi wrote:
JGR wrote:As ever with day length patches, there doesn't seem to be any consensus on what should and should not be scaled.
that may be true for some aspects of daylength, but i don't think this applies here.

date should be scaled, time should not. that's as close to a consensus as you will get.
I've pushed changes to github to implement this. I've not done a huge amount of testing but it seems to work all right.
Ex TTDPatch Coder
Patch Pack, Github
User avatar
Valle
Transport Coordinator
Transport Coordinator
Posts: 284
Joined: 15 May 2007 11:35
Location: Germany

Re: JGR's Patch Pack

Post by Valle »

JGR wrote:
Valle wrote:Thank you for your quick reaction. Unfortunately, another error occurred.
It looks like you're using LLVM/clang rather than gcc, at least for the link step?
Either way, have you checked that you're able to build trunk OpenTTD using your setup?
I had to escalate this problem to a friend from outside of the OpenTTD community, who provided me with the following solution.

Problem: OSX Mavericks and newer ships with several versions of the standard library libc++

Solution: entering the following code into the terminal window in which OpenTTD is compiled afterwards.

Code: Select all

export LDFLAGS="-stdlib=libstdc++ -lstdc++"
I have attached the Mac OS X build of your patchpack I generated after that. Interestingly, there is a problem with the year display, which also exists with my friend's bundle.
If I'm in the year 1945, OpenTTD displays the year 21395. This problem persists in later years, with the year count rising accordingly.

My build (attached below) doesn't display the version/build correctly in the main menu, just calling the version "norev000". I wasn't able to test it properly yet.
Attachments
bundle.zip
Compiled version of the current GitHub snapshot for Mac OS X Yosemite
(6.68 MiB) Downloaded 544 times
archy
Engineer
Engineer
Posts: 42
Joined: 03 Aug 2012 20:55

Re: JGR's Patch Pack

Post by archy »

Wow, awesome selection of patches!

Also great to see someone do a patch pack "the proper way", with git branches. Hopefully this means it won't bitrot quite as fast as previous patch packs.

PS: I'm trying to build version 0.2.1 directly from https://github.com/JGRennison/OpenTTD-patches/releases but it prints this warning at the start:

Code: Select all

WARNING: there is no means to determine the version.
WARNING: please use a subversion, mercurial, or git checkout of OpenTTD.
WARNING: you can only join game servers that have been compiled without
WARNING:   version detection.
WARNING: there is a great chance you desync.
WARNING: USE WITH CAUTION!
Is this to be expected? Is there some way the configure script can be told the correct version number?

UPDATE:
I had a look at how the official OpenTTD source tarballs from openttd.org do it, and it turns out they have an extra file called .ottdrev with content like:

Code: Select all

"1.5.2-RC1	27356	0	1.5.2-RC1"
(PS: the fields are separated by TABS, it's just that the forum software turned them into spaces.)
The configure script detects this file and sets the version number accordingly.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 1 guest