About Monkey 2 › Forums › Monkey 2 Development › Minimum MacOSX Version?
This topic contains 7 replies, has 5 voices, and was last updated by
cocon 1 year, 6 months ago.
-
AuthorPosts
-
September 24, 2017 at 12:39 am #10762
I’m trying to compiling on an oldish Mac Mini running MacOSX 10.9.5, I’ve downloaded the pkg package from itch, installed and I can execute Ted2Go okay… but when I try to compile I get the following issue:
error: invalid ‘c++14’ in ‘-std=c++14’
I cant copy and paste the output but attached is the output.
Am getting the error due to the version of MacOSX?
Attachments:
September 24, 2017 at 1:06 am #10769I think that means you may need to upgrade XCode which is the c++ toolchain monkey2 uses on MacOS.
September 24, 2017 at 1:08 am #10772Yeah, that could be it… but I think that would need an OS update too, which I dont want to do right now
September 28, 2017 at 8:39 pm #10866It seems the minimum for C++14 support is Xcode 6.3 (up to 7.2) on Mac OSX 10.10.
October 2, 2017 at 10:19 am #10929I’ve got xcode 6.3.2 installed and similar build failures:
Monkey12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485Build error: System command 'g++ -c -std=c++14 -mmacosx-version-min=10.9 -Wno-deprecated-declarations -Wno-tautological-pointer-compare -Wno-undefined-bool-conversion -Wno-int-to-void-pointer-cast -Wno-inconsistent-missing-override -Wno-logical-op-parentheses -Wno-parentheses-equality -O3 -DNDEBUG -I"/Applications/Monkey2-v1.1.07/modules/" -I"/Applications/Monkey2-v1.1.07/modules/monkey/native" -o "/Applications/Monkey2-v1.1.07/modules/monkey/monkey.buildv1.1.07/macos_release/build/_1_1_1native_2bbstring.mm.o" "/Applications/Monkey2-v1.1.07/modules/monkey/native/bbstring.mm"' failed.g++ -c -std=c++14 -mmacosx-version-min=10.9 -Wno-deprecated-declarations -Wno-tautological-pointer-compare -Wno-undefined-bool-conversion -Wno-int-to-void-pointer-cast -Wno-inconsistent-missing-override -Wno-logical-op-parentheses -Wno-parentheses-equality -O3 -DNDEBUG -I"/Applications/Monkey2-v1.1.07/modules/" -I"/Applications/Monkey2-v1.1.07/modules/monkey/native" -o "/Applications/Monkey2-v1.1.07/modules/monkey/monkey.buildv1.1.07/macos_release/build/_1_1_1native_2bbstring.mm.o" "/Applications/Monkey2-v1.1.07/modules/monkey/native/bbstring.mm"warning: unknown warning option '-Wno-inconsistent-missing-override' [-Wunknown-warning-option]In file included from /Applications/Monkey2-v1.1.07/modules/monkey/native/bbstring.mm:2:In file included from /Applications/Monkey2-v1.1.07/modules/monkey/native/bbstring.h:5:In file included from /Applications/Monkey2-v1.1.07/modules/monkey/native/bbtypes.h:5:In file included from /Applications/Monkey2-v1.1.07/modules/monkey/native/bbstd.h:6:In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:6:/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:7:15: error: expected ';' after @class@class NSArray<ObjectType>;^/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:7:16: error: cannot find protocol declaration for 'ObjectType'@class NSArray<ObjectType>;^/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:34:25: error: cannot find protocol declaration for 'ObjectType'@interface NSEnumerator<ObjectType> : NSObject <NSFastEnumeration>^/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:34:37: error: expected unqualified-id@interface NSEnumerator<ObjectType> : NSObject <NSFastEnumeration>^/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:36:13: error: expected ')'- (nullable ObjectType)nextObject;^/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:36:3: note: to match this '('- (nullable ObjectType)nextObject;^/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:40:25: error: cannot find protocol declaration for 'ObjectType'@interface NSEnumerator<ObjectType> (NSExtendedEnumerator)^/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:40:1: error: duplicate interface definition for class 'NSEnumerator'@interface NSEnumerator<ObjectType> (NSExtendedEnumerator)^/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:34:12: note: previous definition is here@interface NSEnumerator<ObjectType> : NSObject <NSFastEnumeration>^/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:40:37: error: method type specifier must start with '-' or '+'@interface NSEnumerator<ObjectType> (NSExtendedEnumerator)^/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:40:38: error: expected a type@interface NSEnumerator<ObjectType> (NSExtendedEnumerator)^/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:42:1: error: expected selector for Objective-C method@property (readonly, copy) NSArray<ObjectType> *allObjects;^/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h:42:36: error: cannot find protocol declaration for 'ObjectType'@property (readonly, copy) NSArray<ObjectType> *allObjects;^In file included from /Applications/Monkey2-v1.1.07/modules/monkey/native/bbstring.mm:2:In file included from /Applications/Monkey2-v1.1.07/modules/monkey/native/bbstring.h:5:In file included from /Applications/Monkey2-v1.1.07/modules/monkey/native/bbtypes.h:5:In file included from /Applications/Monkey2-v1.1.07/modules/monkey/native/bbstd.h:6:In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10:/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:16:32: error: cannot find protocol declaration for 'ObjectType'@interface NSArray<__covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>^/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:16:44: error: expected unqualified-id@interface NSArray<__covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>^/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:19:4: error: expected a type- (ObjectType)objectAtIndex:(NSUInteger)index;^/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:21:40: error: C++ requires a type specifier for all declarations- (instancetype)initWithObjects:(const ObjectType [])objects count:(NSUInteger)cnt NS_DESIGNATED_INITIALIZER;~~~~~~^~~~~~~~~~/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:21:40: error: expected ')'/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:21:33: note: to match this '('- (instancetype)initWithObjects:(const ObjectType [])objects count:(NSUInteger)cnt NS_DESIGNATED_INITIALIZER;^/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:26:20: error: cannot find protocol declaration for 'ObjectType'@interface NSArray<ObjectType> (NSExtendedArray)^/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:26:1: error: duplicate interface definition for class 'NSArray'@interface NSArray<ObjectType> (NSExtendedArray)^/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:16:12: note: previous definition is here@interface NSArray<__covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>^/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:26:32: error: method type specifier must start with '-' or '+'@interface NSArray<ObjectType> (NSExtendedArray)^fatal error: too many errors emitted, stopping now [-ferror-limit=]1 warning and 20 errors generated.October 2, 2017 at 2:01 pm #10932Which g++ version do you have?
For example:
Monkey12345g++ -v...gcc version 5.3.0 (i686-posix-dwarf-rev0, Built by MinGW-W64 project)October 2, 2017 at 9:40 pm #10940I’ve updated xcode to version 8 and now compiles well. So this might be the Solution for compile errors like these
October 3, 2017 at 12:37 am #10941Good that it works.
-
AuthorPosts
You must be logged in to reply to this topic.
