I have a Raspberry Pi 2 that I installed Slackware Current to from here:
http://rpi.fatdog.eu/
I'm trying to set it up for my son to learn python with, and one of the resources is Minecraft-pi.
When I try to run it I get this:
Code:
@SlackPi:~/Sources/mcpi# ls
CONTROLS.txt LICENSE.txt api/ minecraft-pi*
HOW_TO_RUN.txt VERSION.txt data/
@SlackPi:~/Sources/mcpi# ./minecraft-pi
bash: ./minecraft-pi: No such file or directory
@SlackPi:~/Sources/mcpi# ls -l minecraft-pi
-rwxr-xr-x 1 504 games 1206760 Feb 11 2013 minecraft-pi*
@SlackPi:~/Sources/mcpi# file minecraft-pi
minecraft-pi: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=ec7c5a7f459230e837d8551aab60b290e9599e63, stripped
@SlackPi:~/Sources/mcpi# ldd minecraft-pi
libGLESv2.so => /opt/vc/lib/libGLESv2.so (0x76f2c000)
libEGL.so => /opt/vc/lib/libEGL.so (0x76efa000)
libbcm_host.so => /opt/vc/lib/libbcm_host.so (0x76ee0000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x76eb9000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x76e31000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x76d5e000)
libm.so.6 => /lib/libm.so.6 (0x76cb6000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x76c8f000)
libc.so.6 => /lib/libc.so.6 (0x76b35000)
libpthread.so.0 => /lib/libpthread.so.0 (0x76b13000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x769fb000)
libvcos.so => /opt/vc/lib/libvcos.so (0x769e9000)
libdl.so.2 => /lib/libdl.so.2 (0x769de000)
librt.so.1 => /lib/librt.so.1 (0x769cf000)
libvchiq_arm.so => /opt/vc/lib/libvchiq_arm.so (0x769c1000)
libz.so.1 => /lib/libz.so.1 (0x769a2000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x76993000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x7697e000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x7696e000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x76950000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x76946000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x7693a000)
/lib/ld-linux-armhf.so.3 => /lib/ld-linux.so.3 (0x76f6d000)
At first, I would get the same error, but ldd would show that libpng12 was missing. So I rebuild libpng with the original slackbuild for versions 12 and 16. Once installed, the correct libpng is found, but I still can't figure out why "file not found" comes up. Any ideas?
Oh, and I also had to add /opt/vc/lib to ld.so.conf for both minecraft-pi (there were other 'missing' libs) and for the picamera
package (libmmal.so). Does anyone know where /opt/vc/ comes from?
EDIT: I'm wondering if "interpreter /lib/ld-linux-armhf.so.3" from the file output has anything to do with it, or is that just a build time artifact. I have no "/lib/ld-linux-armhf.so.3" on this system.