qemu makefile错误找不到我知道的库



当我运行make for qemu时,一切正常,直到:

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没有找到这些库,是因为它只寻找静态库吗?如果是这种情况,我如何获得这些的静态库?谢谢。

没关系,我已经修好了。

问题是我正在做的项目已经经历了很多人的手,文档很少,所以我一直在扮演侦探的角色,试图让它再次工作。

只需要重新/配置它并去掉——static选项

相关内容

最新更新