godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.85k stars 20.15k forks source link

Scons 3.1.2 is not passing -frameworks flags #36720

Closed hungrymonkey closed 4 years ago

hungrymonkey commented 4 years ago

Godot version: master - e2b66cacf78ae39b94df748e9740b98a1f011e77

OS/device including version: xcodebuild -version Xcode 11.3.1 Build version 11C504 OSX 10.15.3 (19D76) xcode-select --version xcode-select version 2373.

scons --version SCons by Steven Knight et al.: script: v3.1.2.bee7caf9defd6e108fc2998a2520ddb36a967691, 2019-12-17 02:07:09, by bdeegan on octodog engine: v3.1.2.bee7caf9defd6e108fc2998a2520ddb36a967691, 2019-12-17 02:07:09, by bdeegan on octodog engine path: ['/usr/local/Cellar/scons/3.1.2_1/libexec/scons-local/SCons'] Copyright (c) 2001 - 2019 The SCons Foundation

Issue description:

Godot is unable to find and link essential libraries.

Steps to reproduce:

$scons p=osx
[ 96%] Linking Program        ==> bin/godot.osx.tools.64
clang: error: no such file or directory: 'Cocoa'
clang: error: no such file or directory: 'Carbon'
clang: error: no such file or directory: 'AudioUnit'
clang: error: no such file or directory: 'CoreAudio'
clang: error: no such file or directory: 'CoreMIDI'
clang: error: no such file or directory: 'IOKit'
clang: error: no such file or directory: 'ForceFeedback'
clang: error: no such file or directory: 'CoreVideo'
clang: error: no such file or directory: 'AVFoundation'
clang: error: no such file or directory: 'CoreMedia'
clang: error: no such file or directory: 'Metal'
clang: error: no such file or directory: 'QuartzCore'
scons: *** [bin/godot.osx.tools.64] Error 1
scons: building terminated because of errors.

Minimal reproduction project:

clone repo
compile it

https://docs.godotengine.org/en/stable/development/compiling/compiling_for_osx.html

hungrymonkey commented 4 years ago

This bug should not be a godot issue. I will do a little more research and close the issue in the meantime

hungrymonkey commented 4 years ago

On default, apple searchs /Library/Frameworks and /System/Library/Frameworks as described by man ld. I have to find out what is wrong with my system

Search paths
     ld maintains a list of directories to search for a library or framework to use.  The default
     library search path is /usr/lib then /usr/local/lib.  The -L option will add a new library
     search path.  The default framework search path is /Library/Frameworks then /Sys-
     tem/Library/Frameworks.  (Note: previously, /Network/Library/Frameworks was at the end of
     the default path.  If you need that functionality, you need to explicitly add -F/Net-
     work/Library/Frameworks).  The -F option will add a new framework search path.  The -Z
     option will remove the standard search paths.  The -syslibroot option will prepend a prefix
     to all search paths.
 ls -l /Library/Frameworks
total 0
drwxr-xr-x  6 root  wheel  192 Jan 16 19:31 OSXFUSE.framework
drwxr-xr-x  5 root  wheel  160 Oct  8 05:26 PluginManager.framework
drwxrwxr-x  8 root  admin  256 Aug 19  2019 R.framework
lrwxr-xr-x@ 1 root  wheel   50 Oct  8 05:20 iTunesLibrary.framework -> /System/Library/Frameworks/iTunesLibrary.framework
 ls -l /System/Library/Frameworks 
total 0
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 AGL.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 AVFoundation.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 AVKit.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 Accelerate.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 Accounts.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 AdSupport.framework
drwxr-xr-x   7 root  wheel  224 Oct  8 05:26 AddressBook.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 AppKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 AppleScriptKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 AppleScriptObjC.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 ApplicationServices.framework
drwxr-xr-x   7 root  wheel  224 Feb  4 15:56 AudioToolbox.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 AudioUnit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 AudioVideoBridging.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 AuthenticationServices.framework
drwxr-xr-x   7 root  wheel  224 Oct  8 05:26 Automator.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 BackgroundTasks.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 BusinessChat.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CFNetwork.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CalendarStore.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CallKit.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 Carbon.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CloudKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 Cocoa.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 Collaboration.framework
drwxr-xr-x   7 root  wheel  224 Oct  8 05:26 ColorSync.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 Combine.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 Contacts.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 ContactsUI.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 CoreAudio.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CoreAudioKit.framework
drwxr-xr-x   4 root  wheel  128 Feb  4 15:56 CoreAudioTypes.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CoreBluetooth.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CoreData.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 CoreDisplay.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CoreFoundation.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CoreGraphics.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CoreHaptics.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CoreImage.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 CoreLocation.framework
drwxr-xr-x   6 root  wheel  192 Feb  4 15:56 CoreMIDI.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CoreMIDIServer.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CoreML.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 CoreMedia.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 CoreMediaIO.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CoreMotion.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 CoreServices.framework
drwxr-xr-x   6 root  wheel  192 Feb  4 15:56 CoreSpotlight.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 CoreTelephony.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CoreText.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CoreVideo.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CoreWLAN.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 CryptoKit.framework
drwxr-xr-x  10 root  wheel  320 Feb  4 15:56 CryptoTokenKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 DVDPlayback.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 DeviceCheck.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 DirectoryService.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 DiscRecording.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 DiscRecordingUI.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 DiskArbitration.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 DriverKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 EventKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 ExceptionHandling.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 ExecutionPolicy.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 ExternalAccessory.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 FWAUserLib.framework
drwxr-xr-x   9 root  wheel  288 Oct  8 05:26 FileProvider.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 FileProviderUI.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 FinderSync.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 ForceFeedback.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 Foundation.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 GLKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 GLUT.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 GSS.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 GameController.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 GameKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 GameplayKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 HIDDriverKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 Hypervisor.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 ICADevices.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 IMServicePlugIn.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 IOBluetooth.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 IOBluetoothUI.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 IOKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 IOSurface.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 IOUSBHost.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 IdentityLookup.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 ImageCaptureCore.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 ImageIO.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 InputMethodKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 InstallerPlugins.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 InstantMessage.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 Intents.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 JavaFrameEmbedding.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 JavaScriptCore.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 JavaVM.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 Kerberos.framework
drwxr-xr-x   4 root  wheel  128 Feb  4 15:56 Kernel.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 LDAP.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 LatentSemanticMapping.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 LinkPresentation.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 LocalAuthentication.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 MapKit.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 MediaAccessibility.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 MediaLibrary.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 MediaPlayer.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 MediaToolbox.framework
drwxr-xr-x   4 root  wheel  128 Feb  4 15:56 Message.framework
drwxr-xr-x   7 root  wheel  224 Oct  8 05:26 Metal.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 MetalKit.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 MetalPerformanceShaders.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 MetricKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 ModelIO.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 MultipeerConnectivity.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 NaturalLanguage.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 NetFS.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 Network.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 NetworkExtension.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 NetworkingDriverKit.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 NotificationCenter.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 OSAKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 OSLog.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 OpenAL.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 OpenCL.framework
drwxr-xr-x   7 root  wheel  224 Feb  4 15:56 OpenDirectory.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 OpenGL.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 PCSC.framework
drwxr-xr-x   5 root  wheel  160 Dec 11 05:55 PDFKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 PencilKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 Photos.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 PhotosUI.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 PreferencePanes.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 PushKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 Python.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 QTKit.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 Quartz.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 QuartzCore.framework
drwxr-xr-x   7 root  wheel  224 Oct  8 05:26 QuickLook.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 QuickLookThumbnailing.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 RealityKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 Ruby.framework
lrwxr-xr-x   1 root  wheel   73 Oct  8 05:22 SafariServices.framework -> ../../../Library/Apple/System/Library/Frameworks/SafariServices.framework
drwxr-xr-x   7 root  wheel  224 Oct  8 05:26 SceneKit.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 ScreenSaver.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 ScriptingBridge.framework
drwxr-xr-x   8 root  wheel  256 Feb  4 15:56 Security.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 SecurityFoundation.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 SecurityInterface.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 ServiceManagement.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 Social.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 SoundAnalysis.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 Speech.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 SpriteKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 StoreKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 SwiftUI.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 SyncServices.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 System.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 SystemConfiguration.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 SystemExtensions.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 TWAIN.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 Tcl.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 Tk.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 USBDriverKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 UserNotifications.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 VideoDecodeAcceleration.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 VideoSubscriberAccount.framework
drwxr-xr-x   6 root  wheel  192 Oct  8 05:26 VideoToolbox.framework
drwxr-xr-x   6 root  wheel  192 Feb  4 15:56 Vision.framework
drwxr-xr-x   7 root  wheel  224 Oct  8 05:26 WebKit.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 iTunesLibrary.framework
lrwxr-xr-x   1 root  wheel   60 Oct  8 05:23 vecLib.framework -> Accelerate.framework//Versions/A/Frameworks/vecLib.framework
drwxr-xr-x   5 root  wheel  160 Oct  8 05:26 vmnet.framework
hungrymonkey commented 4 years ago
clang -Xlinker -v
@(#)PROGRAM:ld  PROJECT:ld64-530
BUILD 18:57:17 Dec 13 2019
configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
Library search paths:
    /usr/local/lib
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib
Framework search paths:
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/
Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
hungrymonkey commented 4 years ago

@akien-mga, I found a workaround but I do not know if this linker error is isolated to my system.

From c924e83a646f8a6d972ccd4d009acc323a6be158 Mon Sep 17 00:00:00 2001
From: hungrymonkey <boringmonkey@gmail.com>
Date: Tue, 3 Mar 2020 14:56:16 -0800
Subject: [PATCH] Change LINKFLAGS to FRAMEWORKS which is supported since Scons
 release 0.96.91

Fixes the link errors below

clang: error: no such file or directory: 'Carbon'
clang: error: no such file or directory: 'AudioUnit'
clang: error: no such file or directory: 'CoreAudio'
clang: error: no such file or directory: 'CoreMIDI'
clang: error: no such file or directory: 'IOKit'
clang: error: no such file or directory: 'ForceFeedback'
clang: error: no such file or directory: 'CoreVideo'
clang: error: no such file or directory: 'AVFoundation'
clang: error: no such file or directory: 'CoreMedia'
clang: error: no such file or directory: 'Metal'
clang: error: no such file or directory: 'QuartzCore'

Tested on
System Version: macOS 10.15.3 (19D76)

SCons by Steven Knight et al.:
script: v3.1.2.bee7caf9defd6e108fc2998a2520ddb36a967691, 2019-12-17 02:07:09, by bdeegan on octodog
engine: v3.1.2.bee7caf9defd6e108fc2998a2520ddb36a967691, 2019-12-17 02:07:09, by bdeegan on octodog
engine path: ['/usr/local/Cellar/scons/3.1.2_1/libexec/scons-local/SCons']

Xcode 11.3.1
Build version 11C504

Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin19.3.0

Closes #36720
---
 platform/osx/detect.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/platform/osx/detect.py b/platform/osx/detect.py
index 12ca5c10dc..b2f4032f66 100644
--- a/platform/osx/detect.py
+++ b/platform/osx/detect.py
@@ -151,13 +151,13 @@ def configure(env):

     env.Prepend(CPPPATH=['#platform/osx'])
     env.Append(CPPDEFINES=['OSX_ENABLED', 'UNIX_ENABLED', 'APPLE_STYLE_KEYS', 'COREAUDIO_ENABLED', 'COREMIDI_ENABLED'])
-    env.Append(LINKFLAGS=['-framework', 'Cocoa', '-framework', 'Carbon', '-framework', 'AudioUnit', '-framework', 'CoreAudio', '-framework', 'CoreMIDI', '-framework', 'IOKit', '-framework', 'ForceFeedback', '-framework', 'CoreVideo', '-framework', 'AVFoundation', '-framework', 'CoreMedia'])
+    env.AppendUnique(FRAMEWORKS=['Cocoa', 'Carbon', 'AudioUnit', 'CoreAudio', 'CoreMIDI', 'IOKit', 'ForceFeedback', 'CoreVideo', 'AVFoundation', 'CoreMedia'])
     env.Append(LIBS=['pthread', 'z'])

     env.Append(CPPDEFINES=['VULKAN_ENABLED'])
-    env.Append(LINKFLAGS=['-framework', 'Metal', '-framework', 'QuartzCore', '-framework', 'IOSurface'])
+    env.AppendUnique(FRAMEWORKS=['Metal', 'QuartzCore', 'IOSurface'])
     if (env['use_static_mvk']):
-        env.Append(LINKFLAGS=['-framework', 'MoltenVK'])
+        env.AppendUnique(FRAMEWORKS=['MoltenVK'])
         env['builtin_vulkan'] = False
     elif not env['builtin_vulkan']:
         env.Append(LIBS=['vulkan'])
-- 
2.21.1 (Apple Git-122.3)

0001-Change-LINKFLAGS-to-FRAMEWORKS-which-is-supported-si.patch.zip

Edit: updated patch to reflect the pr

hungrymonkey commented 4 years ago
scons: done reading SConscript files.
scons: Building targets ...
[ 96%] clang++ -o bin/godot.osx.tools.64 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk Cocoa Carbon AudioUnit CoreAudio CoreMIDI IOKit ForceFeedback CoreVideo AVFoundation CoreMedia Metal QuartzCore -framework IOSurface -mmacosx-version-min=10.12 -pthread platform/osx/crash_handler_osx.osx.tools.64.o platform/osx/os_osx.osx.tools.64.o platform/osx/godot_main_osx.osx.tools.64.o platform/osx/semaphore_osx.osx.tools.64.o platform/osx/dir_access_osx.osx.tools.64.o platform/osx/joypad_osx.osx.tools.64.o platform/osx/vulkan_context_osx.osx.tools.64.o platform/osx/context_gl_osx.osx.tools.64.o -L/usr/local/Cellar/capnp/0.7.0/lib main/libmain.osx.tools.64.a main/tests/libtests.osx.tools.64.a modules/libmodules.osx.tools.64.a modules/libmodule_xatlas_unwrap.osx.tools.64.a modules/libmodule_websocket.osx.tools.64.a modules/libmodule_webrtc.osx.tools.64.a modules/libmodule_webp.osx.tools.64.a modules/libmodule_webm.osx.tools.64.a modules/libmodule_vorbis.osx.tools.64.a modules/libmodule_visual_script.osx.tools.64.a modules/libmodule_vhacd.osx.tools.64.a modules/libmodule_upnp.osx.tools.64.a modules/libmodule_tinyexr.osx.tools.64.a modules/libmodule_theora.osx.tools.64.a modules/libmodule_tga.osx.tools.64.a modules/libmodule_svg.osx.tools.64.a modules/libmodule_stb_vorbis.osx.tools.64.a modules/libmodule_squish.osx.tools.64.a modules/libmodule_regex.osx.tools.64.a modules/libmodule_pvr.osx.tools.64.a modules/libmodule_opus.osx.tools.64.a modules/libmodule_opensimplex.osx.tools.64.a modules/libmodule_ogg.osx.tools.64.a modules/libmodule_mobile_vr.osx.tools.64.a modules/libmodule_mbedtls.osx.tools.64.a modules/libmodule_jsonrpc.osx.tools.64.a modules/libmodule_jpg.osx.tools.64.a modules/libmodule_hdr.osx.tools.64.a modules/libmodule_gridmap.osx.tools.64.a modules/libmodule_glslang.osx.tools.64.a modules/libmodule_gdscript.osx.tools.64.a modules/libmodule_gdnavigation.osx.tools.64.a modules/libmodule_gdnative.osx.tools.64.a modules/libmodule_freetype.osx.tools.64.a modules/libmodule_etc.osx.tools.64.a modules/libmodule_enet_voip.osx.tools.64.a modules/libmodule_enet.osx.tools.64.a modules/libmodule_dds.osx.tools.64.a modules/libmodule_cvtt.osx.tools.64.a modules/libmodule_csg.osx.tools.64.a modules/libmodule_camera.osx.tools.64.a modules/libmodule_bullet.osx.tools.64.a modules/libmodule_bmp.osx.tools.64.a modules/libmodule_basis_universal.osx.tools.64.a modules/libmodule_assimp.osx.tools.64.a platform/libplatform.osx.tools.64.a drivers/libdrivers.osx.tools.64.a editor/libeditor.osx.tools.64.a scene/libscene.osx.tools.64.a servers/libservers.osx.tools.64.a core/libcore.osx.tools.64.a modules/freetype/libfreetype_builtin.osx.tools.64.a -lpthread -lz -lcapnp -lkj -lkj
[ 97%] clang: error: no such file or directory: 'Cocoa'
clang: error: no such file or directory: 'Carbon'
clang: error: no such file or directory: 'AudioUnit'
clang: error: no such file or directory: 'CoreAudio'
clang: error: no such file or directory: 'CoreMIDI'
clang: error: no such file or directory: 'IOKit'
clang: error: no such file or directory: 'ForceFeedback'
clang: error: no such file or directory: 'CoreVideo'
clang: error: no such file or directory: 'AVFoundation'
clang: error: no such file or directory: 'CoreMedia'
clang: error: no such file or directory: 'Metal'
clang: error: no such file or directory: 'QuartzCore'
[100%] progress_finish(["progress_finish"], [])
[100%] scons: *** [bin/godot.osx.tools.64] Error 1
scons: building terminated because of errors.