+1 vote

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.custombuild - https://godotengine.org
ERROR: No surface extension found, is a driver installed?
at: _initialize
extensions (drivers/vulkan/vulkancontext.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

in Engine by (30 points)

1 Answer

+3 votes
Best answer

Download Vulkan SDK: https://vulkan.lunarg.com/sdk/home#mac (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.

by (358 points)
selected by

perfect solved!thanks very much~

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.