Previous Thread
Next Thread
Print Thread
Page 1 of 2 1 2
Joined: May 2016
Posts: 35
L
Llaffer Offline OP
Member
OP Offline
Member
L
Joined: May 2016
Posts: 35
Greetings. I started a compile of the latest version that was just released and this error was thrown in the build process:

Code
Clang 10.0.0 detected
Objective-C compiling 3rdparty/bgfx/src/glcontext_nsgl.mm...
In file included from ../../../../../3rdparty/bgfx/src/glcontext_nsgl.mm:11:
In file included from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:87:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:14:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /Library/Frameworks/AE.framework/Headers/AE.h:29:
/Library/Frameworks/AE.framework/Headers/AppleEvents.h:597:165: error: expected
      function body after function declarator
  ...AEEventID theAEEventID, Boolean askUserIfNeeded ) __OSX_AVAILABLE_STARTI...
                                                       ^
In file included from ../../../../../3rdparty/bgfx/src/glcontext_nsgl.mm:6:
In file included from ../../../../../3rdparty/bgfx/src/bgfx_p.h:22:
In file included from ../../../../../3rdparty/bgfx/include/bgfx/bgfx.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:94:
In file included from /usr/include/stdlib.h:61:
/usr/include/Availability.h:216:50: note: expanded from macro
      '__OSX_AVAILABLE_STARTING'
    #define __OSX_AVAILABLE_STARTING(_osx, _ios) __AVAILABILITY_INTERNAL##_osx
                                                 ^
<scratch space>:12:1: note: expanded from here
__AVAILABILITY_INTERNAL__MAC_10_14
^
1 error generated.
make[2]: *** [../../../../osx_clang/obj/x64/Release/3rdparty/bgfx/src/glcontext_nsgl.o] Error 1
make[1]: *** [bgfx] Error 2
make: *** [macosx_x64_clang] Error 2


Any thoughts?

Thanks.

Joined: Feb 2004
Posts: 2,237
Likes: 6
Very Senior Member
Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,237
Likes: 6
You'll need to give the exact versions of macOS and Xcode, and any special options you're trying to use. It's definitely built successfully on macOS since we updated to the latest bx and bgfx.

Joined: May 1999
Posts: 576
Senior Member
Offline
Senior Member
Joined: May 1999
Posts: 576
Yep, 0.205 compiled out-of-the-box on macOS 10.14.2 with Xcode 10.1.

Joined: Mar 2001
Posts: 16,715
Likes: 11
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,715
Likes: 11
Yup, I did a full build on latest Mojave before release, twice even.

Joined: May 2016
Posts: 35
L
Llaffer Offline OP
Member
OP Offline
Member
L
Joined: May 2016
Posts: 35
Originally Posted by Vas Crabb
You'll need to give the exact versions of macOS and Xcode, and any special options you're trying to use. It's definitely built successfully on macOS since we updated to the latest bx and bgfx.


I have a dev build of MacOS (either a late 10.14.2 or 10.14.3 beta 1, as 10.14.3 Beta 2 is available to download now) with the latest non-beta Xcode (10.1).

And I don't think that I'm compiling with any unusual parameters. -j5 and PTR64=1 are all that I'm using.

If there is anything else that I have to provide, let me know. Thanks.

Last edited by Llaffer; 12/26/18 03:20 PM.
Joined: Mar 2001
Posts: 16,715
Likes: 11
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,715
Likes: 11
That should be fine if you also have the latest SDL framework (2.0.9 is hard-required for Mojave). I'm on 10.14.3 Beta 2 right now and everything builds fine.

Joined: May 2016
Posts: 35
L
Llaffer Offline OP
Member
OP Offline
Member
L
Joined: May 2016
Posts: 35
I'll check. I thought I updated to the latest SDL last month when I noticed I was about a year behind.

EDIT: I have the 2.0.9 version installed (dated 10-31-18). I re-installed a clean copy on top of it just in case and will attempt to compile again.

Last edited by Llaffer; 12/26/18 07:08 PM.
Joined: May 2016
Posts: 35
L
Llaffer Offline OP
Member
OP Offline
Member
L
Joined: May 2016
Posts: 35
Was there anything else that I needed to provide that may help figure out why my build is failing?

Thanks.

Joined: Jul 2007
Posts: 225
Senior Member
Offline
Senior Member
Joined: Jul 2007
Posts: 225
Does it work without using PTR64=1??? I just built it yesterday with no trouble.. Mine's a fresh, week old install of 10.14.2, SDL 2.0.9 framework, and just using "Xcode-select -install" to install the command line tools as opposed to downloading the whole Xcode app Ill never use. I just use the basic old "make -j5 TOOLS=1 REGENIE=1" every time. Shouldn't have to use PTR64=1 at all.

Joined: May 2016
Posts: 35
L
Llaffer Offline OP
Member
OP Offline
Member
L
Joined: May 2016
Posts: 35
I'll give that a try. Thanks.

Page 1 of 2 1 2

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
1 members (r09), 42 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,919
Posts117,179
Members4,989
Most Online890
Jan 17th, 2020
Forum Host
These forums are hosted by www.retrogamesformac.com
Forum hosted by www.retrogamesformac.com