moritztng / hacker-league

minimal and efficient carball on linux. fun for humans and ai!
149 stars 2 forks source link

Got it to compile on macOS but gets error at runtime. #1

Open bsharper opened 1 week ago

bsharper commented 1 week ago

How I got it to compile on Sonoma 14.6.1 (x86_64)

  1. Installed the following packages: brew install glm molten-vk vulkan-sdk
  2. Changed shaders/glslc to glslc in Makefile
  3. Ran make, no errors yeah!
  4. 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.

moritztng commented 1 week ago

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 :)