使用--enable-sdl在CentOS 6.2上配置qemu-1.4.2

时间:2015-09-11 16:07:37

标签: compilation centos sdl qemu

我想在CentOS 6.2上安装qemu-1.4.2。我下载了source code,解压缩并运行./configure --disable-vnc --enable-sdl。然后它提示它找不到sdl:

ERROR
ERROR: User requested feature sdl
ERROR: configure was not able to find it
ERROR

然后我安装了SDL和SDL-devel软件包并再次运行./configure。它仍然提示它找不到sdl。以下输出显示我已经安装了SDL软件包,为什么还要抱怨?请帮助,我真的需要qemu来处理我的项目。

~/D/qemu-1.4.2 ❯❯❯ rpm -qa | grep SDL
SDL-1.2.14-6.el6.x86_64
SDL-1.2.14-6.el6.i686
SDL-devel-1.2.14-6.el6.x86_64
SDL-devel-1.2.14-6.el6.i686
~/D/qemu-1.4.2 ❯❯❯ which sdl-config
/usr/bin/sdl-config

config.log中的这些行应该与问题相关:

cc -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fstack-protector-all -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -o /tmp/siyuan/qemu-conf-31225-10750-20820.exe /tmp/siyuan/qemu-conf-9193-10750-15100.c -Wl,-z,relro -Wl,-z,now -pie -m64 -g -lSDL -lpthread
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libSDL.so: undefined reference to `_XGetRequest'
collect2: ld returned 1 exit status

这似乎是一个链接错误,更多线索给你:

/u/lib64 ❯❯❯ lsa libSDL.so
lrwxrwxrwx. 1 root root 20 Sep 11 23:24 libSDL.so -> libSDL-1.2.so.0.11.3
/u/lib64 ❯❯❯ ldd libSDL.so
    linux-vdso.so.1 =>  (0x00007fffa4d43000)
    libm.so.6 => /lib64/libm.so.6 (0x00007ff3dd306000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007ff3dd102000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ff3dcee4000)
    libc.so.6 => /lib64/libc.so.6 (0x00007ff3dcb50000)
    /lib64/ld-linux-x86-64.so.2 (0x000000318da00000)

~/D/qemu-1.4.2 ❯❯❯ sdl-config --libs
-lSDL -lpthread
~/D/qemu-1.4.2 ❯❯❯ pkg-config --libs sdl
-lSDL -lpthread

0 个答案:

没有答案