diff options
-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 be070d702..6fe6f5e99 100755 --- a/scripts/poky-qemu +++ b/scripts/poky-qemu @@ -57,6 +57,18 @@ else shift fi +# We can't run without a libGL.so +libgl='no' + +test -e /usr/lib/libGL.so -a -e /usr/lib/libGLU.so && libgl='yes' +test -e /usr/lib64/libGL.so -a -e /usr/lib64/libGLU.so && libgl='yes' + +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." + exit 1; +fi + INTERNAL_SCRIPT=`which poky-qemu-internal` . $INTERNAL_SCRIPT |