qemu-ios icon indicating copy to clipboard operation
qemu-ios copied to clipboard

Library not loaded: liblzfse.dylib

Open preland opened this issue 1 year ago • 3 comments

After running ../configure and make with no issues, running ./arm-softmmu/qemu-system-arm results in an error "Library not loaded: liblzfse.dylib" followed by a lot of different places it looked for the file, where the file is not.

A few things to note:

  1. I do have liblzfse.dylib installed via Homebrew, but it is not in any of the locations that it tries (which seems to just be multiple variations of either /System/Volumes/Preboot/Cryptexes/ and the build folder where qemu-system-arm is being ran)
  2. When I copy the file over (which is in /usr/local/lib/) into the build folder, it no longer says the error, but instead says another "Library not loaded" error, but with a different file.

I'm guessing that if I kept copying files into the build folder it would eventually work, but I'm pretty sure something else is going on. Any help is appreciated

preland avatar Nov 16 '23 02:11 preland

Update: using otool on the generated qemu build shows that the path the exec looks for is just "liblzfse.dylib"; it is the only loaded dylib in the executable that is loaded without an absolute pathname. Weird.

preland avatar Nov 16 '23 21:11 preland

Another Update: moving liblzfse.dylib into the build folder allows it to work properly. I won't close the issue yet though, as I assume this isn't intended behavior.

Another note: the current instructions for 2G will not show a visual display (adding a -display sdl flag to the end of the current listed command fixes this)

preland avatar Nov 16 '23 22:11 preland

@preland do you still experience this issue when using the (recently) rebased ipod_touch_2g branch?

devos50 avatar Jan 01 '24 16:01 devos50