[poky] [PATCH 2/2] qemu: Use mesa's libGL rather than nVidia's to avoid segfault of qemu

Scott Garman scott.a.garman at intel.com
Wed Mar 16 11:18:46 PDT 2011


On 03/16/2011 05:32 AM, Zhai Edwin wrote:
> From: Zhai Edwin<edwin.zhai at intel.com>
>
> Proprietary nVidia driver introduce its own libGL that precede mesa's.
> qemu has segfault if linked with it. This fix try to use mesa's libGL
> in such case.
>
> [YOCTO #649]
> [YOCTO #698]
>
> Signed-off-by: Zhai Edwin<edwin.zhai at intel.com>

This fixes the problem on my Ubuntu 10.10 system using NVIDIA 
proprietary graphics.

Acked-by: Scott Garman <scott.a.garman at intel.com>

> ---
>   scripts/poky-qemu |    4 ++++
>   1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/scripts/poky-qemu b/scripts/poky-qemu
> index 2d94a11..1d04c37 100755
> --- a/scripts/poky-qemu
> +++ b/scripts/poky-qemu
> @@ -404,6 +404,10 @@ if [ "$nv_libgl" == 'yes' ]; then
>       echo "************** !!!Warning!!! **************
>       You installed nVidia's libGL.so that probably lead qemu segfault!
>       Pls. uninstall proprietary nVidia driver or make mesa libgl precede nvidia's."
> +
> +    # To avoid segfault of qemu, skip nVidia's libGL and use mesa's instead
> +    echo "Skip nVidia's libGL!"
> +    export LD_PRELOAD="/usr/lib/libGL.so $LD_PRELOAD"
>   fi
>
>   INTERNAL_SCRIPT=`which poky-qemu-internal`


-- 
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center



More information about the poky mailing list