Tuesday, March 6, 2018

Minecraft error while loading shared libraries: libGLESv2.so

I am trying run mincraft from my raspberry pi zero and getting the error below:

har@raspberrypi:~/minecraft_base/mcpi$ ./minecraft-pi
./minecraft-pi: error while loading shared libraries: libGLESv2.so: cannot open shared object file: No such file or directory
har@raspberrypi:~/minecraft_base/mcpi$ 

I made sure that OS is up to date but still there error persists. The issue was resolved by doing the raspberry pi firmware upgrade


har@raspberrypi:~$ sudo rpi-update
[sudo] password for har
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13403  100 13403    0     0   6458      0  0:00:02  0:00:02 --:--:--  6481
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** We're running for the first time
 *** Backing up files (this will take a few minutes)
 *** Backing up firmware
 *** Backing up modules 4.9.59+
#############################################################
WARNING: This update bumps to rpi-4.14.y linux tree
Be aware there could be compatibility issues with some drivers
Discussion here:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=197689
##############################################################
Would you like to proceed? (y/N)

 *** Downloading specific firmware revision (this will take a few minutes)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168    0   168    0     0    119      0 --:--:--  0:00:01 --:--:--   119
100 55.3M  100 55.3M    0     0   788k      0  0:01:11  0:01:11 --:--:-- 1055k
 *** Updating firmware
 *** Updating kernel modules
 *** depmod 4.14.24-v7+
 *** depmod 4.14.24+
 *** Updating VideoCore libraries
 *** Using HardFP libraries
 *** Updating SDK
 *** Running ldconfig
 *** Storing current firmware revision
 *** Deleting downloaded files
 *** Syncing changes to disk
 *** If no errors appeared, your firmware was successfully updated to 2659c9e87b574b3b05eacef80961c404ed0f0ce3
 *** A reboot is needed to activate the new firmware
har@raspberrypi:~$ 
har@raspberrypi:~$ 

After the reboot I was able to run mincraft but getting the blank screen. that is something I need to work on.

har@raspberrypi:~/minecraft_base/mcpi$ ./minecraft-pi 

No comments: