Skip to contentSkip to conversation

scripts/runqemu: Make it run on ubuntu 11.10

PATCH Applied Khem Raj 2 participants 2 messages Aug 8, 2011 – Aug 11, 2011

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 scripts/runqemu: Make it run on ubuntu 11.10

location of libGL has moved in ubuntu 11.10
so we look for it in the new locations

---
 scripts/runqemu |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
scripts/runqemu +1 -0
index 9611c64..2b8e88a 100755
@@ -388,6 +388,7 @@ 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'
+test -e /usr/lib/`uname -i`-linux-gnu/libGL.so -a -e /usr/lib/`uname -i`-linux-gnu/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.
Signature · 1 line
1.7.5.4
Applied
#1 lore raw
Quoted 13 lines · Khem Raj

location of libGL has moved in ubuntu 11.10
so we look for it in the new locations

---
  scripts/runqemu |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
scripts/runqemu +0 -0
index 9611c64..2b8e88a 100755

scripts/runqemu libgl='no' · line 394

Quoted 7 lines
scripts/runqemu +1 -0
@@ -388,6 +388,7 @@ 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'
+test -e /usr/lib/`uname -i`-linux-gnu/libGL.so -a -e /usr/lib/`uname -i`-linux-gnu/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.

Merged into OE-Core

Thanks
Sau!