diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-08-24 16:16:47 +0100 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-08-25 11:15:16 +0100 |
commit | 66790ecb4a5faee06b844b41e2524af640fdb3da (patch) | |
tree | 0d3ea1be3242bebe978732b24a44649cf3934e0b | |
parent | 196f6f2d20a7926cadaec619f4422209e48a31bd (diff) | |
download | poky-66790ecb4a5faee06b844b41e2524af640fdb3da.tar.gz |
poky-qemu: check for existence of required libraries
We need some libraries installed to run the built qemu, check for their
existence before trying to run the program. Fixes [BUGID #201]
Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rwxr-xr-x | scripts/poky-qemu | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/poky-qemu b/scripts/poky-qemu index be070d7024..6fe6f5e99b 100755 --- a/scripts/poky-qemu +++ b/scripts/poky-qemu | |||
@@ -57,6 +57,18 @@ else | |||
57 | shift | 57 | shift |
58 | fi | 58 | fi |
59 | 59 | ||
60 | # We can't run without a libGL.so | ||
61 | libgl='no' | ||
62 | |||
63 | test -e /usr/lib/libGL.so -a -e /usr/lib/libGLU.so && libgl='yes' | ||
64 | test -e /usr/lib64/libGL.so -a -e /usr/lib64/libGLU.so && libgl='yes' | ||
65 | |||
66 | if [ "$libgl" != 'yes' ]; then | ||
67 | echo "You need libGL.so and libGLU.so to exist in your library path to run the QEMU emulator. | ||
68 | Ubuntu package names are: libgl1-mesa-dev and libglu1-mesa-dev." | ||
69 | exit 1; | ||
70 | fi | ||
71 | |||
60 | INTERNAL_SCRIPT=`which poky-qemu-internal` | 72 | INTERNAL_SCRIPT=`which poky-qemu-internal` |
61 | 73 | ||
62 | . $INTERNAL_SCRIPT | 74 | . $INTERNAL_SCRIPT |