vulkan-go / vulkan

Vulkan API bindings for Go programming language
MIT License
742 stars 55 forks source link

go get fails on macOS Mojave #44

Open RobinWragg opened 4 years ago

RobinWragg commented 4 years ago

After adding MoltenVK.framework and vulkan.framework to /Library/Frameworks, I ran go get github.com/vulkan-go/vulkan which gave me this:

# github.com/vulkan-go/vulkan
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_CAEDRMetadata", referenced from:
      objc-class-ref in MoltenVK(libMoltenVK.a-x86_64-master.o)
  "_kCGColorSpaceITUR_2020_HLG", referenced from:
      MVKSwapchain::initCAMetalLayer(VkSwapchainCreateInfoKHR const*, unsigned int) in MoltenVK(libMoltenVK.a-x86_64-master.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It appears MoltenVK isn't able to link with QuartzCore and other system frameworks. Is there a step I'm missing or is this broken for other people too? I'm not able to test this on Catalina. I intend to use these bindings with github.com/veandco/go-sdl2. Thanks