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
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)
I had the same problem and managed to solve it thanks to this thread, however it seems that beside the QuartzCore.framework more frameworks are needed in order to successfully compile code using MoltenVK. In my experience also the Foundation.framework and the Metal.framework are needed. I know it’s kind of obvious, however it would be great if the docs could mention those as well. Thanks.
Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘MoltenVK Support’ is closed to new topics and replies.