]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemu: add fedora pkg names when build failed
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 26 Mar 2012 06:49:38 +0000 (14:49 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 26 Mar 2012 10:54:10 +0000 (11:54 +0100)
When qemu build failed, we can see such messages:

You need libGL.so and libGLU.so to exist in your library path and the
development headers for SDL installed to build qemu-native.

Ubuntu package names are: libgl1-mesa-dev, libglu1-mesa-dev and
libsdl1.2-dev

These pkgs have different names on Fedora distributions, and Fedora is
one the
main linux distributions, so add Fedora package names.

The following Fedora versions have these pkgs:
Fedora 9 64bit
Fedora 13 32bit
Fedora 13 64bit
Fedora 16 64bit

[YOCTO #2174]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/qemu/qemu.inc
scripts/runqemu

index 307a205cdc72f74c6d36ff979a5bc7acc76ad69a..8dee0603383058aae68767a3d4fc0cedbd38cab2 100644 (file)
@@ -33,7 +33,8 @@ do_configure_prepend_virtclass-native() {
 
     if [ "$libsdl" != 'yes' -o "$libgl" != 'yes' ]; then
        echo "You need libGL.so and libGLU.so to exist in your library path and the development headers for SDL installed to build qemu-native.
-       Ubuntu package names are: libgl1-mesa-dev, libglu1-mesa-dev and libsdl1.2-dev"
+       Ubuntu package names are: libgl1-mesa-dev, libglu1-mesa-dev and libsdl1.2-dev.
+       Fedora package names are: mesa-libGL mesa-libGLU SDL-devel."
        exit 1;
     fi
 }
index ac5facfa211249ce0b023fc3bdf11531ffa497e0..c349de081f4dc7dba8e60a64f96e54168975680e 100755 (executable)
@@ -406,7 +406,8 @@ test -e /usr/lib/*-linux-gnu/libGL.so -a -e /usr/lib/*-linux-gnu/libGLU.so && li
 
 if [ "$libgl" != 'yes' ]; then
     echo "You need libGL.so and libGLU.so to exist in your library path to run the QEMU emulator.
-    Ubuntu package names are: libgl1-mesa-dev and libglu1-mesa-dev."
+    Ubuntu package names are: libgl1-mesa-dev and libglu1-mesa-dev.
+    Fedora package names are: mesa-libGL mesa-libGLU."
     exit 1;
 fi