Including foreign shared library when running a binary with qemu

瘦欲@ 提交于 2020-01-04 03:55:06

问题


I have a foreign ARM binary I need to run with Qemu. It relies on an ncurses shared library, libncurses.so.5.

I've tried running

qemu-arm   -L /usr/arm-linux-gnueabihf/ ./program

Which complains that it can't find libncurses.so.5. I have the correct ncurses shared lib and added it to /usr/arm-linux-gnueabihf/lib/. The filename is libncurses.so.5 and I have it symlinked to libncurses.so as well but running the program still fails.

program: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

How can I get qemu to use this external shared library?

来源:https://stackoverflow.com/questions/38620094/including-foreign-shared-library-when-running-a-binary-with-qemu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!