Xonotic 0.8 crashes on Mac OSX 10.9 due to SDL - workaround provided
When I tried to run Xonotic 0.8 on Mac OSX 10.9, I got this:
xonotic-osx-sdl-bin ; exit; dyld: Library not loaded: @rpath/SDL2.framework/Versions/A/SDL2 Referenced from: /Users/leo/Downloads/Xonotic/Xonotic.app/Contents/MacOS/xonotic-osx-sdl-bin Reason: image not found Trace/BPT trap: 5
A quick workaround was to change the library path of SDL using install_name_tool:
install_name_tool -change "@rpath/SDL2.framework/Versions/A/SDL2" /Users/leo/Downloads/Xonotic/Xonotic.app/Contents/Frameworks/SDL2.framework/Versions/A/SDL2 xonotic-osx-sdl-bin
My best guess is that the @rpath might not be behaving as expected in 10.9, so the linker args might need some updates.