Notes

0015649)

theli0nheart (reporter)

2011-03-01 16:48



Wow, I have to apologize, with all my editing, I totally botched up the English in this report.



Summary: Command line client does not launch *on* OS X 10.7 Lion



Description: When launching df on OS X 10.7, dwarf fortress crashes.



Additional information: same error repeats 1468 times

0018417)

Flickering (reporter)

2011-08-02 21:44



I have a workaround/fix for this issue..



The standard DF script has:



export DYLD_FALLBACK_LIBRARY_PATH=${PWD}/libs

export DYLD_FALLBACK_FRAMEWORK_PATH=${PWD}/libs



Which puts the libraries DF ships with right at the end of the search path. If I change those to:



export DYLD_LIBRARY_PATH=${PWD}/libs

export DYLD_FRAMEWORK_PATH=${PWD}/libs



Then the executable is loading happily (OSX Lion on a Mac Pro)

0018425)

rustymyers (reporter)

2011-08-03 21:05



I am running OS X Lion and the fix reported by Flickering is working for me. I'm on a Macbook Core 2 duo. Thanks dude.

0018435)

norova (reporter)

2011-08-05 08:40



I can report that this fix works for me as well.

0018542)

Doolan (reporter)

2011-08-16 17:41



I can report the fix lets the game launch, but it crashes again when you attempt an aimed attack in adventurer mode. Reproduced the crash six times in a row.

0018544)

Dwarfu (manager)

2011-08-16 17:48



Reminder sent to: Doolan



Do you happen to have TrueType enabled?

0018545)

Doolan (reporter)

2011-08-16 18:56



Aha, thank you Dwarfu, that was indeed the issue.



With the fix suggested in this thread and disabling TrueType it runs smooth as silk.



Thanks again!

0018692)

dglidden (reporter)

2011-09-08 08:06



Changing the startup script to set the DYLD paths does NOT work for me. The executable crashes with:



"397 Abort trap"



Even when extracting 31_25 from the original distribution and changing only the startup script it still crashes with the same error.

0019189)

Explanatory (reporter)

2011-12-17 21:14



Flickering's fix works for me to. I was getting the exact same problem. I'm just wondering why this less-than-one-minute-to-fix critical bug fix wasn't immediately fixed when a solution was found. (I'm using a version I just downloaded.)

0020066)

jfs (reporter)

2012-02-18 15:22



There is another ticket with OS X startup issues (0003263), I posted a proper fix there, which involves creating a proper application bundle instead of relying on a shell script. I believe it should be quite easy to integrate into the build toolchain used to compile Dwarf Fortress.



The gist of the fix is arranging the files into an .app bundle and fixing the binaries with the install_name_tool provided by Apple so they refer to libraries inside the bundle, that removes the need for DYLD environment hacks.

0023145)

Madd the Sane (reporter)

2012-07-02 20:23



Part of the problem is that the Mac version of Dwarf Fortress uses a custom c++ and gcc library. I do not understand why it does this (Cross-compiling issue, perhaps?), but using the system-supplied libraries will mean that the hack needed to get it working won't be needed.