Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
glfwVulkanSupported returning 0 on OSX (With MoltenVK) #1073
I am not 100% sure if this belongs here, if not, my apologies. Because I am not sure where else to take this.
A little context:
but when I call glfwGetRequiredInstanceExtensions(&glfwExtensionCount)
So would this be some kind of linking problem or something else? I have used a strategy to get things running that I describe in this file:
The biggest thing I can think of is that the includes are not linked in the proper way, I am not sure how to get around this though, because with the way the FindVulkan.cmake file was on your repo, it would not detect the headers. (it tried to look inside of the .framework file, but never seemed to actually find the headers, so I hardcoded a path as stated in the Setup Readme)
I was thinking about it and my best guess is at that the FindVulkan.cmake in GLFW is not detecting MoltenVK just like it wouldn't find MoltenVK in my application itself. Maybe that is why it is not seeing Vulkan at all.
From looking at your CMakeLists.txt I can see that the following message should be printed when configuring CMake if Vulkan was successfully found:
This might help you debug the problem a bit at least!
@elmindreda Thanks! It seems to be fine now. The best technique to do that right now if you work with homebrew would be to do the following (for people that might run into this in the near future):
That will build and install the most recent version.
I am getting a nice output of: