当我为qemu运行make时一切正常,直到:
LINK ppc-softmmu/qemu-system-ppc
/usr/bin/ld: cannot find -latk-1.0
/usr/bin/ld: cannot find -lgdk_pixbuf-2.0
/usr/bin/ld: cannot find -lselinux
/usr/bin/ld: cannot find -lharfbuzz
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libX11.a(CrGlCur.o): In function open_library':
(.text+0x32): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: cannot find -lffi
../os-posix.o: In function change_process_uid':
/mnt/qemu-latest/qemu/os-posix.c:173: warning: Using 'initgroups' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
等。 它失败并出现错误。
我想也许这些库不见了所以我尝试了ld -latk-1.0 -verbose 在latk-1.0以及其他库中,它给了我:
...attempt to open //lib/x86_64-linux-gnu/libatk-1.0.a failed
attempt to open //lib64/libatk-1.0.so failed
attempt to open //lib64/libatk-1.0.a failed
attempt to open //usr/lib/x86_64-linux-gnu/libatk-1.0.so succeeded
-latk-1.0 (//usr/lib/x86_64-linux-gnu/libatk-1.0.so)
libgobject-2.0.so.0 needed by //usr/lib/x86_64-linux-gnu/libatk-1.0.so
found libgobject-2.0.so.0 at //usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
libglib-2.0.so.0 needed by //usr/lib/x86_64-linux-gnu/libatk-1.0.so
found libglib-2.0.so.0 at //lib/x86_64-linux-gnu/libglib-2.0.so.0
libc.so.6 needed by //usr/lib/x86_64-linux-gnu/libatk-1.0.so
found libc.so.6 at //lib/x86_64-linux-gnu/libc.so.6
libffi.so.6 needed by //usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
found libffi.so.6 at //usr/lib/x86_64-linux-gnu/libffi.so.6
libpcre.so.3 needed by //lib/x86_64-linux-gnu/libglib-2.0.so.0
found libpcre.so.3 at //lib/x86_64-linux-gnu/libpcre.so.3
libpthread.so.0 needed by //lib/x86_64-linux-gnu/libglib-2.0.so.0
found libpthread.so.0 at //lib/x86_64-linux-gnu/libpthread.so.0
ld-linux-x86-64.so.2 needed by //lib/x86_64-linux-gnu/libc.so.6
found ld-linux-x86-64.so.2 at //lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
ld: warning: cannot find entry symbol _start; not setting start address
它为它认为无法找到的所有其他库执行此操作。我无法弄清楚为什么make没有找到这些库,是因为它只是在寻找静态库?如果是这样的话,我该如何获取这些静态库?感谢。
答案 0 :(得分:0)
嗨,我没关系,我修好了。
问题是我正在研究的项目已经经历了很多人的手,文档很少,所以我一直在玩侦探试图让事情再次发挥作用。
只需要重新配置它并取出--static选项