You are not logged in.

#1 2017-06-15 19:41:47

Thomagotchi
Member
Registered: 2017-06-15
Posts: 2

[SOLVED]Building AOSP | LibGL error

emulator: WARNING: encryption is off
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  34
  Current serial number in output stream:  35

so I been getting this error when i tried to run emulator off terminal after i have built the source code.

My android-studio can run AVD fine, and to get that to work i have already removed

rm -r ~/Android/Sdk/emulator/lib64/libstdc++
rm -r ~/Android/Sdk/emulator/lib/libstdc++ 

I have already installed
lib32-mesa-17.1.2-1
xf86-video-intel is up to date.
mesa
mesa-libgl
lib32-mesa-libgl

I still new to this, and i have read both the official aosp build instructions and the andorid build archlinux wiki, and done a bit of googling but still no luck.

i feel like i missed something really obvious.

Last edited by Thomagotchi (2017-06-15 21:57:41)

Offline

#2 2017-06-15 21:57:19

Thomagotchi
Member
Registered: 2017-06-15
Posts: 2

Re: [SOLVED]Building AOSP | LibGL error

Fixed it. Appearntly i not only have to remove the files but i also have to run

 export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1

Offline

Board footer

Powered by FluxBB