KhronosGroup / Vulkan-Samples

One stop solution for all Vulkan samples
Apache License 2.0
4.06k stars 605 forks source link

macOS permission denied: ./vulkan_samples.app #1069

Open rgosens2 opened 3 weeks ago

rgosens2 commented 3 weeks ago

Builds fine but cannot run app:

zsh: permission denied: ./vulkan_samples.app

Running from Contents:

./vulkan_samples sample hello_triangle

[info] Logger initialized [info] Initializing vulkan instance. [info] Enabled Validation Layers: [info] Found GPU: Apple M1 [info] Initializing vulkan device. [error] Error Message: Failed to open file for reading [error] Failed when running application hello_triangle

jeroenbakker-atmind commented 1 week ago

According to the docs you need to run it from the root of the repository to locate the assets it needs. Also the .app isn't the executable, but the container. Have you tried:

/build/mac/app/bin/Debug/arm64/vulkan_samples.app/Contents/MacOS/vulkan_samples sample hello_triangle