jipumarino / dfdl

Dwarf Fortress Starter Pack generator for Mac
34 stars 4 forks source link

dyld: could not load inserted library #4

Open linonetwo opened 5 years ago

linonetwo commented 5 years ago
dfdl/df-20190815204305/df_osx/dfhack ; exit;
dyld: could not load inserted library './hack/libdfhack.dylib' because no suitable image found.  Did find:
    ./hack/libdfhack.dylib: mach-o, but wrong architecture
    ./hack/libdfhack.dylib: stat() failed with errno=1

dfdl/df-20190815204305/df_osx/dfhack: line 15: 41475 Abort trap: 6           DYLD_INSERT_LIBRARIES=./hack/libdfhack.dylib ./dwarfort.exe "$@"
lethosor commented 5 years ago

Looks like it downloaded 32-bit DFHack and 64-bit DF to me. Here's at least one of the issues: https://github.com/jipumarino/dfdl/blob/10c1d54f35058eb16735f532532d9f52f59ba4ba/dfdl.rb#L97 However, if that's updated to check for 64-bit DFHack, the DF download should also be checking to exclude 32-bit DF; otherwise, the opposite issue (64-bit DFHack with 32-bit DF) could occur.