Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc moltenvk link CoreGraphics and AppKit framework #2198

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

nihui
Copy link
Contributor

@nihui nihui commented Apr 3, 2024

fix linking error

ld: Undefined symbols:
  _CGColorSpaceCreateWithName, referenced from:
      -[CAMetalLayer(MoltenVK) setColorspaceNameMVK:] in libMoltenVK.a[x86_64][2](libMoltenVK.a-x86_64-master.o)
  _CGColorSpaceGetName, referenced from:
      -[CAMetalLayer(MoltenVK) colorspaceNameMVK] in libMoltenVK.a[x86_64][2](libMoltenVK.a-x86_64-master.o)
  _CGColorSpaceRelease, referenced from:
      -[CAMetalLayer(MoltenVK) setColorspaceNameMVK:] in libMoltenVK.a[x86_64][2](libMoltenVK.a-x86_64-master.o)
  _kCGColorSpaceAdobeRGB1998, referenced from:
      MVKSwapchain::initCAMetalLayer(VkSwapchainCreateInfoKHR const*, VkSwapchainPresentScalingCreateInfoEXT*, unsigned int) in libMoltenVK.a[x86_64][2](libMoltenVK.a-x86_64-master.o)
  _kCGColorSpaceDCIP3, referenced from:
      MVKSwapchain::initCAMetalLayer(VkSwapchainCreateInfoKHR const*, VkSwapchainPresentScalingCreateInfoEXT*, unsigned int) in libMoltenVK.a[x86_64][2](libMoltenVK.a-x86_64-master.o)
  _kCGColorSpaceDisplayP3, referenced from:
      MVKSwapchain::initCAMetalLayer(VkSwapchainCreateInfoKHR const*, VkSwapchainPresentScalingCreateInfoEXT*, unsigned int) in libMoltenVK.a[x86_64][2](libMoltenVK.a-x86_64-master.o)
  _kCGColorSpaceExtendedLinearDisplayP3, referenced from:
      MVKSwapchain::initCAMetalLayer(VkSwapchainCreateInfoKHR const*, VkSwapchainPresentScalingCreateInfoEXT*, unsigned int) in libMoltenVK.a[x86_64][2](libMoltenVK.a-x86_64-master.o)
  _kCGColorSpaceExtendedLinearITUR_2020, referenced from:
      MVKSwapchain::initCAMetalLayer(VkSwapchainCreateInfoKHR const*, VkSwapchainPresentScalingCreateInfoEXT*, unsigned int) in libMoltenVK.a[x86_64][2](libMoltenVK.a-x86_64-master.o)
  _kCGColorSpaceExtendedLinearSRGB, referenced from:
      MVKSwapchain::initCAMetalLayer(VkSwapchainCreateInfoKHR const*, VkSwapchainPresentScalingCreateInfoEXT*, unsigned int) in libMoltenVK.a[x86_64][2](libMoltenVK.a-x86_64-master.o)
  _kCGColorSpaceExtendedSRGB, referenced from:
      MVKSwapchain::initCAMetalLayer(VkSwapchainCreateInfoKHR const*, VkSwapchainPresentScalingCreateInfoEXT*, unsigned int) in libMoltenVK.a[x86_64][2](libMoltenVK.a-x86_64-master.o)
  _kCGColorSpaceITUR_2100_HLG, referenced from:
      MVKSwapchain::initCAMetalLayer(VkSwapchainCreateInfoKHR const*, VkSwapchainPresentScalingCreateInfoEXT*, unsigned int) in libMoltenVK.a[x86_64][2](libMoltenVK.a-x86_64-master.o)
  _kCGColorSpaceITUR_2100_PQ, referenced from:
      MVKSwapchain::initCAMetalLayer(VkSwapchainCreateInfoKHR const*, VkSwapchainPresentScalingCreateInfoEXT*, unsigned int) in libMoltenVK.a[x86_64][2](libMoltenVK.a-x86_64-master.o)
  _kCGColorSpaceITUR_709, referenced from:
      MVKSwapchain::initCAMetalLayer(VkSwapchainCreateInfoKHR const*, VkSwapchainPresentScalingCreateInfoEXT*, unsigned int) in libMoltenVK.a[x86_64][2](libMoltenVK.a-x86_64-master.o)
  _kCGColorSpaceSRGB, referenced from:
      MVKSwapchain::initCAMetalLayer(VkSwapchainCreateInfoKHR const*, VkSwapchainPresentScalingCreateInfoEXT*, unsigned int) in libMoltenVK.a[x86_64][2](libMoltenVK.a-x86_64-master.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)

ld: Undefined symbols:
  _OBJC_CLASS_$_NSApplication, referenced from:
       in libMoltenVK.a[arm64][2](libMoltenVK.a-arm64-master.o)
  _OBJC_CLASS_$_NSScreen, referenced from:
       in libMoltenVK.a[arm64][2](libMoltenVK.a-arm64-master.o)
  _OBJC_CLASS_$_NSView, referenced from:
       in libMoltenVK.a[arm64][2](libMoltenVK.a-arm64-master.o)

@nihui nihui changed the title doc moltenvk link CoreGraphics framework doc moltenvk link CoreGraphics and AppKit framework Apr 3, 2024
@CLAassistant
Copy link

CLAassistant commented Apr 3, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@billhollings billhollings left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching and fixing this!

@billhollings billhollings merged commit c0dce05 into KhronosGroup:main Apr 3, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants