When time permits I will look into the feasibility of it.SimYouLater wrote:JGR, is there still any chance of large depots being added?
JGR's Patch Pack
Moderator: OpenTTD Developers
Re: JGR's Patch Pack
Ex TTDPatch Coder
Patch Pack, Github
Patch Pack, Github
Re: JGR's Patch Pack
A little feature request, if you don't mind. From Joker's patch pack thread:
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.
...
Re: JGR's Patch Pack
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.
I downloaded the source from the website, then placed it in a folder and ran "./configure". The exact syntax I had to use was "./configure --without-lzma", otherwise it wouldn't work.
During configuration, I get a complaint that my GCC is "too old", because it's detected as 4.2.1 (the default compiler for OSX), while JGR requires 4.7 .
However, as you can see from the screenshot, my default compiler is indeed... 4.9.4 ! I got this information by typing "gcc --version".
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.
I get this error using both "tcsh" and "bash' as shells.
However, it looks like this is not enough. Does anyone have any ideas about how to solve this issue? Or any alternative ways to get this run on a Mac?
Thanks in advance
I downloaded the source from the website, then placed it in a folder and ran "./configure". The exact syntax I had to use was "./configure --without-lzma", otherwise it wouldn't work.
During configuration, I get a complaint that my GCC is "too old", because it's detected as 4.2.1 (the default compiler for OSX), while JGR requires 4.7 .
However, as you can see from the screenshot, my default compiler is indeed... 4.9.4 ! I got this information by typing "gcc --version".
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.
I get this error using both "tcsh" and "bash' as shells.
However, it looks like this is not enough. Does anyone have any ideas about how to solve this issue? Or any alternative ways to get this run on a Mac?
Thanks in advance
The French Narrow Gauge Train Set is now released! Get it here
Re: JGR's Patch Pack
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.
Not sure though.
- andythenorth
- Tycoon
- Posts: 5656
- Joined: 31 Mar 2007 14:23
- Location: Lost in Music
Re: JGR's Patch Pack
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.
I can compile JGR PP on 10.12.6 with simple './configure' and 'make'. Clang comes from XCode (mine is 9.2), and I have the OpenTTD library deps installed via Homebrew.
FIRS Industry Replacement Set (released) | HEQS Heavy Equipment Set (trucks, industrial trams and more) (finished)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Re: JGR's Patch Pack
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:
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
I can see this error message seems to suggest me to use the "-std=c++11 or -std=gnu++11 compiler options". I don't know if it's related, but the text coming out when I was "configuring" included the following:
Code: Select all
"using CXXFLAGS... -std=gnu++11 "
The French Narrow Gauge Train Set is now released! Get it here
Re: JGR's Patch Pack
Yep, add CXXFLAGS="--std=gnu++11" to configure or make
Re: JGR's Patch Pack
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:
Ex TTDPatch Coder
Patch Pack, Github
Patch Pack, Github
Re: JGR's Patch Pack
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
Being a retired OpenTTD developer does not mean I know what I am doing.
Re: JGR's Patch Pack
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.
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.
- Attachments
-
- crash.sav
- (3.33 MiB) Downloaded 45 times
Regards,
Tinny/Tintinfan.
Tinny/Tintinfan.
Re: JGR's Patch Pack
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
Re: JGR's Patch Pack
Thanks for your suggestions, guys!
I had to specify the CPU type, to make it work. With this, "configure" works fine. However, when I then run the following:
the compiler exits almost immediately, with this error message:
If, instead, I don't specify "CXX=g++-4.9" in the "./configure", the compiler goes on and finds an error at the same place I had written before ("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.")
I tried to run "make" with different syntaxes, such as:
but they all failed with the same error.
Even embedding the CXXFLAGS in the configure such as:
and then running "make" ends up in the same error.
I then decided to give gcc8 (instead of gcc4.9) a try:
Funnily enough, this one displays different warnings, and fails mentioning a different error:
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...
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
If, instead, I don't specify "CXX=g++-4.9" in the "./configure", the compiler goes on and finds an error at the same place I had written before ("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.")
I tried to run "make" with different syntaxes, such as:
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
Even embedding the CXXFLAGS in the configure such as:
Code: Select all
./configure CC=gcc-4.9 CXXFLAGS="--std=gnu++11" --without-lzma
I then decided to give gcc8 (instead of gcc4.9) a try:
Code: Select all
./configure CC=gcc-8 CXX=g++-8 --without-lzma
make CXXFLAGS="--std=gnu++11" -j 4
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...
The French Narrow Gauge Train Set is now released! Get it here
Re: JGR's Patch Pack
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 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...
There are several OSX-specific changes in trunk/upstream which I've merged. I have assumed that these are all correct and reasonable as I don't really have any way of determining otherwise.
Can you build the upstream trunk master (i.e. https://github.com/OpenTTD/OpenTTD ) successfully?
Ex TTDPatch Coder
Patch Pack, Github
Patch Pack, Github
Re: JGR's Patch Pack
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.
The errors suggest that the OSX system headers use non-standard syntax supported by clang.
Ex TTDPatch Coder
Patch Pack, Github
Patch Pack, Github
Re: JGR's Patch Pack
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?
The French Narrow Gauge Train Set is now released! Get it here
Re: JGR's Patch Pack
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?
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.
Re: JGR's Patch Pack
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.
I remember reading somewhere that Xcode still uses gcc4.2.1 as default, so this is consistent with what I found.
This is why I had to change compiler in the first place.
I can retry it later today and post the same message I got (I'm not at my computer right now).
I'm not sure what I was using by default, 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.
The French Narrow Gauge Train Set is now released! Get it here
- andythenorth
- Tycoon
- Posts: 5656
- Joined: 31 Mar 2007 14:23
- Location: Lost in Music
Re: JGR's Patch Pack
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
FIRS Industry Replacement Set (released) | HEQS Heavy Equipment Set (trucks, industrial trams and more) (finished)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Re: JGR's Patch Pack
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.
Regards,
Tinny/Tintinfan.
Tinny/Tintinfan.
Re: JGR's Patch Pack
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
-EDIT- I just successfully compiled plain OTTD again... simply using "./configure CC=clang CXX=clang++" and "make bundle -j 4" as commands. Which makes me even more puzzled
The French Narrow Gauge Train Set is now released! Get it here
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 8 guests