Installed the following packages: brew install glm molten-vk vulkan-sdk
Changed shaders/glslc to glslc in Makefile
Ran make, no errors yeah!
After compilation, ran install_name_tool -add_rpath /usr/local/Caskroom/vulkan-sdk/1.2.162.1/macOS/lib ./hacker-league to get it to find libvulkan.1.dylib (this also worked, but was temporary): export DYLD_LIBRARY_PATH=/usr/local/Caskroom/vulkan-sdk/1.2.162.1/macOS/lib:$DYLD_LIBRARY_PATH
On execution I get this error: 2024-09-05 11:01:16.420 hacker-league[69356:45936312] *** Assertion failure in -[NSMenu _setMenuName:], NSMenu.m:777. Guessing there's some kind of UI init issue happening, not sure. Let me know if you need more information.
Hmm, I don't have a mac, so it's hard for me to reproduce and debug. Maybe there are some people on the discord that also have a mac. Please share when you have solved it - that would really help us :)
How I got it to compile on Sonoma 14.6.1 (x86_64)
brew install glm molten-vk vulkan-sdk
shaders/glslc
toglslc
in Makefilemake
, no errors yeah!install_name_tool -add_rpath /usr/local/Caskroom/vulkan-sdk/1.2.162.1/macOS/lib ./hacker-league
to get it to find libvulkan.1.dylib (this also worked, but was temporary):export DYLD_LIBRARY_PATH=/usr/local/Caskroom/vulkan-sdk/1.2.162.1/macOS/lib:$DYLD_LIBRARY_PATH
On execution I get this error:
2024-09-05 11:01:16.420 hacker-league[69356:45936312] *** Assertion failure in -[NSMenu _setMenuName:], NSMenu.m:777
. Guessing there's some kind of UI init issue happening, not sure. Let me know if you need more information.