compile 4.0 on Mac's problem

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jinruozai

after compile godot 4.0 on Mac,i get a “godot.osx.tools.x86_64” file in the bin folder,but when run it,reports an error below:

Current path: /Users/jingjiu
Godot Engine v4.0.dev.custom_build - https://godotengine.org
ERROR: No surface extension found, is a driver installed?
at: _initialize_extensions (drivers/vulkan/vulkan_context.cpp:268)
ERROR: Could not initialize Vulkan
at: DisplayServerOSX (platform/osx/display_server_osx.mm:3764)
ERROR: Unable to create DisplayServer, all display drivers failed.
at: setup2 (main/main.cpp:1394)
libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: recursive_mutex lock failed: Invalid argument
zsh: abort

so how to run the file.thanks

:bust_in_silhouette: Reply From: bruvzg

Download Vulkan SDK: LunarXchange (homebrew version have broken config).

Then assemble .app bundle as described in https://docs.godotengine.org/en/latest/development/compiling/compiling_for_osx.html (using libMoltenVK.dylib from the SDK) or use install_vulkan.py from the package to install SDK (for running Godot as standalone binary) or use VK_ICD_FILENAMES={PATH_TO_SDK}/macOS/share/vulkan/icd.d/MoltenVK_icd.json ./godot.osx.tools.x86_64 command to run it every time.

perfect solved!thanks very much~

jinruozai | 2020-08-18 03:43