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 “” file in the bin folder,but when run it,reports an error below:

Current path: /Users/jingjiu
Godot Engine -
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/
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 (using libMoltenVK.dylib from the SDK) or use 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 ./ command to run it every time.

perfect solved!thanks very much~

jinruozai | 2020-08-18 03:43