You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% xcodebuild -version
Xcode 14.2
Build version 14C18
A couple of build issues.
Firstly, assumption that Vulkan is installed in /usr/local but brew installs them into /opt/homebrew. This is probably related to the fact that the setup-vulkan-macOS Makefile target (in SwiftVulkan) doesn't work because the apenngrace/vulkan/vulkan-sdk cask cannot be found. Instead I used the regular Homebrew install, which didn't even seem to compile (not all headers were installed, had to hand-edit vulkan_core.h to remove H264/5 dependencies).
Then I ran into an issue where SDL_KeyCode couldn't be used as a dictionary key in virtualKeyMap.
Then building a package that depends on it, I got:
Building for debugging...
ld: warning: Could not find or use auto-linked library 'vulkan'
Undefined symbols for architecture arm64:
"_vkCreateInstance", referenced from:
_$s12FirebladePAL19SDLVLKWindowSurfaceC14createInstance6layers10extensionss13OpaquePointerVSaySSG_AItKFZAHSRySPys4Int8VGSgGKXEfU_AhNKXEfU_in SDLVLKWindowSurface.swift.o
"_vkDestroySurfaceKHR", referenced from:
_$s12FirebladePAL19SDLVLKWindowSurfaceC7destroyyyFin SDLVLKWindowSurface.swift.o
ld: symbol(s) not found for architecture arm64
ld: warning: Could not find or use auto-linked library 'vulkan'
Undefined symbols for architecture arm64:
"_vkCreateInstance", referenced from:
_$s12FirebladePAL19SDLVLKWindowSurfaceC14createInstance6layers10extensionss13OpaquePointerVSaySSG_AItKFZAHSRySPys4Int8VGSgGKXEfU_AhNKXEfU_in SDLVLKWindowSurface.swift.o
"_vkDestroySurfaceKHR", referenced from:
_$s12FirebladePAL19SDLVLKWindowSurfaceC7destroyyyFin SDLVLKWindowSurface.swift.o
ld: symbol(s) not found for architecture arm64
even after sym-linking libvulkan.dylib from /opt/homebrew/lib into /usr/local/lib.
A couple of build issues.
Firstly, assumption that Vulkan is installed in
/usr/local
butbrew
installs them into/opt/homebrew
. This is probably related to the fact that thesetup-vulkan-macOS
Makefile target (in SwiftVulkan) doesn't work because theapenngrace/vulkan/vulkan-sdk
cask cannot be found. Instead I used the regular Homebrew install, which didn't even seem to compile (not all headers were installed, had to hand-editvulkan_core.h
to remove H264/5 dependencies).Then I ran into an issue where
SDL_KeyCode
couldn't be used as a dictionary key invirtualKeyMap
.fixed it.
Then building a package that depends on it, I got:
even after sym-linking
libvulkan.dylib
from/opt/homebrew/lib
into/usr/local/lib
.fixed that.
Finally, I also needed to make the SDL dependency on
SDL
instead ofSDL2
.After all of this, it builds and tests pass, although
VulkanBackendDemoApp
does trap with:The text was updated successfully, but these errors were encountered: