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)