mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
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>
This commit is contained in:
@@ -57,6 +57,18 @@ else
|
|||||||
shift
|
shift
|
||||||
fi
|
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=`which poky-qemu-internal`
|
||||||
|
|
||||||
. $INTERNAL_SCRIPT
|
. $INTERNAL_SCRIPT
|
||||||
|
|||||||
Reference in New Issue
Block a user