bsder

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Unable to build LunarG Vulkan Samples #1146
    bsder
    Participant

      Bill,

      Thanks. That got it. Now I can walk through tutorials.

      $ ./VulkanTest
      4 extensions supported

      in reply to: Unable to build LunarG Vulkan Samples #1144
      bsder
      Participant

        Okay, I’m clearly missing something about the framework build. I’m seeing the same issues from the command line.

        I use this to compile:
        c++ -std=c++14 -I/Users/andrewl/MoltenVK/Molten-0.13.0/MoltenVK/include -o VulkanTest main.cpp -framework Cocoa -F/Users/andrewl/moltenvk/Molten-0.13.0/MoltenVK/macOS -framework MoltenVK -framework Metal

        This program:

        
        #include <iostream>
        
        #include <vulkan/vulkan.h>
        
        int main() {
            uint32_t extensionCount = 0;
            vkEnumerateInstanceExtensionProperties(nullptr, &extensionCount, nullptr);
        
            std::cout << extensionCount << " extensions supported" << std::endl;
        }
        

        And I get this error:

        Undefined symbols for architecture x86_64:
          "_OBJC_CLASS_$_CAMetalLayer", referenced from:
              l_OBJC_$_CATEGORY_CAMetalLayer_$_Molten in MoltenVK(MoltenVK-x86_64-master.o)
              objc-class-ref in MoltenVK(MoltenVK-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)
        
        in reply to: Unable to build LunarG Vulkan Samples #1143
        bsder
        Participant

          You are likely accidentally building the iOS versions of the product for the simulator, and the simulator does not support Metal.

          You either have to build and deploy on actual hardware, or build and deploy for your desktop mac.

        Viewing 3 posts - 1 through 3 (of 3 total)