Re: JGR's Patch Pack
Posted: 06 May 2018 13:52
When time permits I will look into the feasibility of it.SimYouLater wrote:JGR, is there still any chance of large depots being added?
The place to talk about Transport Tycoon
https://www.tt-forums.net/
When time permits I will look into the feasibility of it.SimYouLater wrote:JGR, is there still any chance of large depots being added?
KeldorKatarn wrote:### v1.25.0 (2018-05-05)
...
* Make it possible to stop road vehicles from slowing down in curves, so players are not punished for building "diagonal" roads while true diagonal roads don't exist.
...
That might be a problem. Try ../configure CC=gcc-4.9 CXX=g++-4.9 --without-lzmaSnail wrote: I managed to make 4.9.4 as my default, instead of 4.2.1, by editing the path and creating a "gcc" alias that points to "gcc-4.9". I did the same with g++, c++, and cpp.
Any reason you can't just use clang?Snail wrote:I'm trying to compile JGR's patchpack on my computer (running macOS Sierra 10.12.26), but it seems it doesn't agree with my GCC compiler.
Thanks!ino wrote:That might be a problem. Try ../configure CC=gcc-4.9 CXX=g++-4.9 --without-lzma
Not sure though.
Code: Select all
In file included from /roba/ottdjgr/src/video/cocoa/event.mm:18:0:
/roba/ottdjgr/src/video/cocoa/../../stdafx.h:348:1: warning: identifier 'static_assert' is a keyword in C++11 [-Wc++0x-compat]
assert_compile(sizeof(uint64) == 8);
^
In file included from /roba/ottdjgr/src/video/cocoa/fullscreen.mm:18:0:
/roba/ottdjgr/src/video/cocoa/../../stdafx.h:348:1: warning: identifier 'static_assert' is a keyword in C++11 [-Wc++0x-compat]
assert_compile(sizeof(uint64) == 8);
^
In file included from /roba/ottdjgr/src/os/macosx/macos.mm:12:0:
/roba/ottdjgr/src/os/macosx/../../stdafx.h:348:1: warning: identifier 'static_assert' is a keyword in C++11 [-Wc++0x-compat]
assert_compile(sizeof(uint64) == 8);
^
In file included from /roba/ottdjgr/src/video/cocoa/cocoa_v.mm:20:0:
/roba/ottdjgr/src/video/cocoa/../../stdafx.h:348:1: warning: identifier 'static_assert' is a keyword in C++11 [-Wc++0x-compat]
assert_compile(sizeof(uint64) == 8);
^
In file included from /usr/local/Cellar/gcc@4.9/4.9.4_1/include/c++/4.9.4/type_traits:35:0,
from /roba/ottdjgr/src/os/macosx/../../core/bitmath_func.hpp:15,
from /roba/ottdjgr/src/os/macosx/macos.mm:13:
/usr/local/Cellar/gcc@4.9/4.9.4_1/include/c++/4.9.4/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from /usr/include/Availability.h:190:0,
from /usr/include/stdlib.h:61,
from /usr/include/assert.h:44,
from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:18,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/video/cocoa/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/video/cocoa/../../stdafx.h:16,
from /roba/ottdjgr/src/video/cocoa/fullscreen.mm:18:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: expected '}' before '__attribute__'
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:53:0,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/video/cocoa/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/video/cocoa/../../stdafx.h:16,
from /roba/ottdjgr/src/video/cocoa/fullscreen.mm:18:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:100: error: expected unqualified-id before '=' token
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
In file included from /usr/include/Availability.h:190:0,
from /usr/include/stdlib.h:61,
from /usr/include/assert.h:44,
from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:18,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/video/cocoa/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/video/cocoa/../../stdafx.h:16,
from /roba/ottdjgr/src/video/cocoa/fullscreen.mm:18:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:0,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/video/cocoa/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/video/cocoa/../../stdafx.h:16,
from /roba/ottdjgr/src/video/cocoa/fullscreen.mm:18:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:183:1: error: expected declaration before '}' token
CF_EXTERN_C_END
^
make[1]: *** [video/cocoa/fullscreen.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from /usr/include/Availability.h:190:0,
from /usr/include/stdlib.h:61,
from /usr/include/assert.h:44,
from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:18,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/video/cocoa/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/video/cocoa/../../stdafx.h:16,
from /roba/ottdjgr/src/video/cocoa/event.mm:18:
/System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:107:35: error: too many decimal points in number
NSURLErrorFileOutsideSafeArea API_AVAILABLE(macosx(10.12.4), ios(10.3), watchos(3.2), tvos(10.2)) = -1104,
^
In file included from /usr/include/Availability.h:190:0,
from /usr/include/stdlib.h:61,
from /usr/include/assert.h:44,
from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:18,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/video/cocoa/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/video/cocoa/../../stdafx.h:16,
from /roba/ottdjgr/src/video/cocoa/cocoa_v.mm:20:
/System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:107:35: error: too many decimal points in number
NSURLErrorFileOutsideSafeArea API_AVAILABLE(macosx(10.12.4), ios(10.3), watchos(3.2), tvos(10.2)) = -1104,
^
In file included from /usr/include/Availability.h:190:0,
from /usr/include/stdlib.h:61,
from /usr/include/assert.h:44,
from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:18,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/os/macosx/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/os/macosx/../../stdafx.h:16,
from /roba/ottdjgr/src/os/macosx/macos.mm:12:
/System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:107:35: error: too many decimal points in number
NSURLErrorFileOutsideSafeArea API_AVAILABLE(macosx(10.12.4), ios(10.3), watchos(3.2), tvos(10.2)) = -1104,
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: expected '}' before '__attribute__'
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:53:0,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/os/macosx/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/os/macosx/../../stdafx.h:16,
from /roba/ottdjgr/src/os/macosx/macos.mm:12:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:100: error: expected unqualified-id before '=' token
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
In file included from /usr/include/Availability.h:190:0,
from /usr/include/stdlib.h:61,
from /usr/include/assert.h:44,
from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:18,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/os/macosx/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/os/macosx/../../stdafx.h:16,
from /roba/ottdjgr/src/os/macosx/macos.mm:12:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:0,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/os/macosx/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/os/macosx/../../stdafx.h:16,
from /roba/ottdjgr/src/os/macosx/macos.mm:12:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:183:1: error: expected declaration before '}' token
CF_EXTERN_C_END
^
make[1]: *** [os/macosx/macos.o] Error 1
In file included from /usr/local/Cellar/gcc@4.9/4.9.4_1/include/c++/4.9.4/type_traits:35:0,
from /roba/ottdjgr/src/video/cocoa/../../blitter/../core/bitmath_func.hpp:15,
from /roba/ottdjgr/src/video/cocoa/../../blitter/../string_func.h:31,
from /roba/ottdjgr/src/video/cocoa/../../blitter/factory.hpp:17,
from /roba/ottdjgr/src/video/cocoa/cocoa_v.mm:33:
/usr/local/Cellar/gcc@4.9/4.9.4_1/include/c++/4.9.4/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from /usr/local/Cellar/gcc@4.9/4.9.4_1/include/c++/4.9.4/type_traits:35:0,
from /roba/ottdjgr/src/video/cocoa/../../blitter/../core/bitmath_func.hpp:15,
from /roba/ottdjgr/src/video/cocoa/../../blitter/../string_func.h:31,
from /roba/ottdjgr/src/video/cocoa/../../blitter/factory.hpp:17,
from /roba/ottdjgr/src/video/cocoa/event.mm:33:
/usr/local/Cellar/gcc@4.9/4.9.4_1/include/c++/4.9.4/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from /usr/include/Availability.h:190:0,
from /usr/include/stdlib.h:61,
from /usr/include/assert.h:44,
from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:18,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/video/cocoa/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/video/cocoa/../../stdafx.h:16,
from /roba/ottdjgr/src/video/cocoa/event.mm:18:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: expected '}' before '__attribute__'
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:53:0,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/video/cocoa/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/video/cocoa/../../stdafx.h:16,
from /roba/ottdjgr/src/video/cocoa/event.mm:18:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:100: error: expected unqualified-id before '=' token
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
In file included from /usr/include/Availability.h:190:0,
from /usr/include/stdlib.h:61,
from /usr/include/assert.h:44,
from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:18,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/video/cocoa/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/video/cocoa/../../stdafx.h:16,
from /roba/ottdjgr/src/video/cocoa/event.mm:18:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:0,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/video/cocoa/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/video/cocoa/../../stdafx.h:16,
from /roba/ottdjgr/src/video/cocoa/event.mm:18:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:183:1: error: expected declaration before '}' token
CF_EXTERN_C_END
^
make[1]: *** [video/cocoa/event.o] Error 1
In file included from /usr/include/Availability.h:190:0,
from /usr/include/stdlib.h:61,
from /usr/include/assert.h:44,
from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:18,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/video/cocoa/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/video/cocoa/../../stdafx.h:16,
from /roba/ottdjgr/src/video/cocoa/cocoa_v.mm:20:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: expected '}' before '__attribute__'
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' was not declared in this scope
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:53:0,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/video/cocoa/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/video/cocoa/../../stdafx.h:16,
from /roba/ottdjgr/src/video/cocoa/cocoa_v.mm:20:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:100: error: expected unqualified-id before '=' token
kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
^
In file included from /usr/include/Availability.h:190:0,
from /usr/include/stdlib.h:61,
from /usr/include/assert.h:44,
from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:18,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/video/cocoa/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/video/cocoa/../../stdafx.h:16,
from /roba/ottdjgr/src/video/cocoa/cocoa_v.mm:20:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:80:126: error: 'introduced' was not declared in this scope
CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, CFISO8601DateFormatOptions formatOptions) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
^
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:0,
from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:19,
from /roba/ottdjgr/src/video/cocoa/../../os/macosx/osx_stdafx.h:87,
from /roba/ottdjgr/src/video/cocoa/../../stdafx.h:16,
from /roba/ottdjgr/src/video/cocoa/cocoa_v.mm:20:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:183:1: error: expected declaration before '}' token
CF_EXTERN_C_END
^
make[1]: *** [video/cocoa/cocoa_v.o] Error 1
make: *** [all] Error 1
Code: Select all
"using CXXFLAGS... -std=gnu++11 "
You probably need to set both CC and CXX instead of just CC.Snail wrote:Thanks!ino wrote:That might be a problem. Try ../configure CC=gcc-4.9 CXX=g++-4.9 --without-lzma
Not sure though.
If I do that, it tells me it's "unable to determine cpu time (pointer width)".
Using "./configure CC=gcc-4.9 --without-lzma" however, made "configure" work.
However, now I get an error when I'm "making" it:
Standard place for environment overrides in Unices is before the actual command, ieino wrote:Try ../configure CC=gcc-4.9 CXX=g++-4.9 --without-lzma
Not sure though.
Code: Select all
CC=gcc-4.9 CXX=g++-4.9 ./configure --without-lzma
From what I understand, for configure and make it is preferred to be passed as parameter instead of environment variable. But both works.Alberth wrote:Standard place for environment overrides in Unices is before the actual command, ieino wrote:Try ../configure CC=gcc-4.9 CXX=g++-4.9 --without-lzma
Not sure though.Code: Select all
CC=gcc-4.9 CXX=g++-4.9 ./configure --without-lzma
This seems to work in "bash", but not in "tcsh".Alberth wrote:Standard place for environment overrides in Unices is before the actual command, ieCode: Select all
CC=gcc-4.9 CXX=g++-4.9 ./configure --without-lzma
OK, so here's what I tried:JGR wrote:You probably need to set both CC and CXX instead of just CC.
Code: Select all
./configure CC=gcc-4.9 CXX=g++-4.9 --without-lzma --cpu-type=64
Code: Select all
make CXXFLAGS="--std=gnu++11" -j 4
Code: Select all
make CXXFLAGS="--std=gnu++11" bundle -j 4
make CXXFLAGS="-std=gnu++11" bundle -j 4
make CXXFLAGS="--std=c++11" bundle -j 4
make CXXFLAGS="-std=c++11" bundle -j 4
Code: Select all
./configure CC=gcc-4.9 CXXFLAGS="--std=gnu++11" --without-lzma
Code: Select all
./configure CC=gcc-8 CXX=g++-8 --without-lzma
make CXXFLAGS="--std=gnu++11" -j 4
It looks like the handling of the attached refit order is the problem.Tintinfan wrote:Good Evening,
Great work as always.Upgraded the server to the latest version and we set out to try the new freight loading features, only to have the server implode. Log in spoiler and save attached.
I can't test or debug Apple-specific issues, so do not know which if any version will work.Snail wrote:It seems to me it really depends on the version of gcc I'm running. Which one is required to successfully compile this patchpack?
Otherwise, any further suggestions about what I might be doing wrong? I tested all this both in tcsh and bash, and got the same results...
Thanks. My default was gcc4.2.1, which is not supported by your patchpack (it required gcc4.6 or newer).JGR wrote:On OSX I'd suggest just using clang, that should be the default anyway.
The errors suggest that the OSX system headers use non-standard syntax supported by clang.
On OSX, clang is standard compiler, not GCC. It also appears that the header/library file you have for your system is for clang, and not GCC, so no matter what version of GCC you use, it won't succeed. By default the system should use clang, so reverse whatever you did to install GCC?Snail wrote:Thanks. My default was gcc4.2.1, which is not supported by your patchpack (it required gcc4.6 or newer).JGR wrote:On OSX I'd suggest just using clang, that should be the default anyway.
The errors suggest that the OSX system headers use non-standard syntax supported by clang.
What syntax should I use, for "configure" and "make", to switch to clang instead?
Well, the first time I tried to compile this, I did the same way as I'd do for plain OTTD, just using "configure" and "make" without specifying anything. This usually works for trunk. However, when applied to this patch pack, "make" failed, telling me I was using gcc4.2.1 while the patch pack required gcc4.6 .ino wrote: On OSX, clang is standard compiler, not GCC. It also appears that the header/library file you have for your system is for clang, and not GCC, so no matter what version of GCC you use, it won't succeed. By default the system should use clang, so reverse whatever you did to install GCC?
I don't know how to switch to clang as I don't know how you install GCC 4.2.1 in the first place. And I am not using OSX either.
Step 1: what do you get from this?Snail wrote:so if there's any way to specify I want to use clang onstage of gcc, I'd be happy to know it so that I can test that too.
Code: Select all
clang --version
Many thanks for your quick reply and soultion! It's all good now and we'll look forward to the fix, thanks again for all your hard work.JGR wrote:It looks like the handling of the attached refit order is the problem.Tintinfan wrote:Good Evening,
Great work as always.Upgraded the server to the latest version and we set out to try the new freight loading features, only to have the server implode. Log in spoiler and save attached.
If you remove those it works correctly in the current release (in any case the two refit orders are the wrong way round, such that the train is always mostly empty).
I've committed a fix which will be in the next release.
In the meantime, you can avoid the crash on load by loading whilst paused, using the skip button to advance the train to the next order, and then removing the refit orders.
For reference its "Great Eastern Railways" train 37.
I get the following:andythenorth wrote:Step 1: what do you get from this?Snail wrote:so if there's any way to specify I want to use clang onstage of gcc, I'd be happy to know it so that I can test that too.![]()
Code: Select all
clang --version
Code: Select all
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Code: Select all
./configure CC=clang CXXFLAGS="--std=gnu++11" --without-lzma