PDA

View Full Version : libGL error: failed to load driver: swrast



realt3ch
January 15th, 2021, 10:15 PM
Helo!

Iam trying to run android emulator and it throws error for swrast. This started after upgrade to 20.04.

Error message when running emulator from console:
$ ./emulator -avd Moises_6
emulator: Android emulator version 30.3.5.0 (build_id 7033400) (CL:N/A)
handleCpuAcceleration: feature check for hvf
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
Segmentation fault (core dumped)


Thanks!

realt3ch
January 16th, 2021, 08:20 PM
:)

realt3ch
January 17th, 2021, 02:37 AM
so what help is this:

$ export LIBGL_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri
$ export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/

or for X apps should be set here (system wide):
nano /etc/environment