diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-07-29 01:02:44 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-29 23:44:37 +0100 |
commit | 1ea36c8cd3b0d54621440962395d6cae6cb96e96 (patch) | |
tree | 9801e1ac444e6e4ed917ef68a6324f8ad4ccefbd /meta | |
parent | 9f36a3c44543fe4cb4492ac455fc8ad9f860d5da (diff) | |
download | poky-1ea36c8cd3b0d54621440962395d6cae6cb96e96.tar.gz |
qemu-native: depends on libxext-native when enable sdl
Fixed do_configure error:
ERROR: User requested feature sdl
configure was not able to find it.
Install SDL devel
The error message from log.do_configure, and if we check config.log, the
error is:
sysroots/x86_64-linux/usr/lib/libXext.so.6: undefined reference to `_XEatDataWords'
The _XEatDataWords is provided by libX11.so, the dependencies are:
qemu-native -> sdl(from the host) -> libXext.so(maybe host or native) -> libX11.so (maybe host or native)
For example on Ubuntu 12.04 x86_64, the link route is:
qemu-native's do_configure sdl checking:
/usr/lib/x86_64-linux-gnu/libSDL.so --> <sysroots>/x86_64-linux/usr/lib/libXext.so.6 --> /usr/lib/x86_64-linux-gnu/libX11.so
So it is:
host sdl -> sysroot libXext.so.6 -> host X11.so
qemu-native doesn't depend on libxext-native, so the error would happen
if the libx11-native is being rebuilding and the host's libX11.so
doesn't have _XEatDataWords.
Manually reproduce it on Ubuntu 12.04 x86_64:
$ bitbake qemu-native libx11-native libxext-native
$ bitbake qemu-native libx11-native -ccleansstate && bitbake qemu-native
Note, only qemu-native has this problem since libxext depends on libX11,
and SDL would depend on libxext when x11 is enabled.
(From OE-Core rev: fbf6995306d85ad868fa5d33da9b493e7e0de414)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index 11bec1c917..f771740128 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc | |||
@@ -86,6 +86,9 @@ do_install_append() { | |||
86 | PACKAGECONFIG ??= "fdt sdl alsa" | 86 | PACKAGECONFIG ??= "fdt sdl alsa" |
87 | PACKAGECONFIG_class-native ??= "fdt alsa" | 87 | PACKAGECONFIG_class-native ??= "fdt alsa" |
88 | PACKAGECONFIG_class-nativesdk ??= "fdt sdl" | 88 | PACKAGECONFIG_class-nativesdk ??= "fdt sdl" |
89 | NATIVEDEPS = "" | ||
90 | NATIVEDEPS_class-native = "libxext-native" | ||
91 | PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl ${NATIVEDEPS}," | ||
89 | PACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr,--disable-virtfs,libcap attr," | 92 | PACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr,--disable-virtfs,libcap attr," |
90 | PACKAGECONFIG[aio] = "--enable-linux-aio,--disable-linux-aio,libaio," | 93 | PACKAGECONFIG[aio] = "--enable-linux-aio,--disable-linux-aio,libaio," |
91 | PACKAGECONFIG[xfs] = "--enable-xfsctl,--disable-xfsctl,xfsprogs," | 94 | PACKAGECONFIG[xfs] = "--enable-xfsctl,--disable-xfsctl,xfsprogs," |
@@ -102,7 +105,6 @@ PACKAGECONFIG[uuid] = "--enable-uuid,--disable-uuid,util-linux," | |||
102 | PACKAGECONFIG[curses] = "--enable-curses,--disable-curses,ncurses," | 105 | PACKAGECONFIG[curses] = "--enable-curses,--disable-curses,ncurses," |
103 | PACKAGECONFIG[gtk+] = "--enable-gtk,--disable-gtk,gtk+ libvte," | 106 | PACKAGECONFIG[gtk+] = "--enable-gtk,--disable-gtk,gtk+ libvte," |
104 | PACKAGECONFIG[libcap-ng] = "--enable-cap-ng,--disable-cap-ng,libcap-ng," | 107 | PACKAGECONFIG[libcap-ng] = "--enable-cap-ng,--disable-cap-ng,libcap-ng," |
105 | PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl," | ||
106 | PACKAGECONFIG[ssh2] = "--enable-libssh2,--disable-libssh2,libssh2," | 108 | PACKAGECONFIG[ssh2] = "--enable-libssh2,--disable-libssh2,libssh2," |
107 | PACKAGECONFIG[libusb] = "--enable-libusb,--disable-libusb,libusb1" | 109 | PACKAGECONFIG[libusb] = "--enable-libusb,--disable-libusb,libusb1" |
108 | PACKAGECONFIG[fdt] = "--enable-fdt,--disable-fdt,dtc" | 110 | PACKAGECONFIG[fdt] = "--enable-fdt,--disable-fdt,dtc" |