KhronosGroup / Vulkan-Samples

One stop solution for all Vulkan samples
Apache License 2.0
4.33k stars 648 forks source link

macOS permission denied: ./vulkan_samples.app #1069

Closed rgosens2 closed 2 months ago

rgosens2 commented 5 months 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 4 months 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
marty-johnson59 commented 4 months ago

Hi @rgosens2, can you check if this fixes your problem - and close this issue if so? Thanks!

jeroenbakker-atmind commented 2 months ago

I'll close the issue. Please reopen when the issue isn't fixed. Thanks!