AapoRantalainen |
2013-03-18 13:10 |
Re: [REQUEST] Minecraft
With this
Code:
ln -s ld-linux.so.3 /lib/ld-linux-armhf.so.3
I got ldd to recognize minecraft-pi and got list of missing libraries:
libbcm_host.so
libvchiq_arm.so
libvcos.so
I downloaded (on PC) 2013-02-09-wheezy-raspbian.zip
Code:
unzip 2013-02-09-wheezy-raspbian.zip
fdisk -l 2013-02-09-wheezy-raspbian.img
#2013-02-09-wheezy-raspbian.img2 122880 3788799 1832960 83 Linux
#512*122880 = 62914560
mkdir ras
sudo mount -o loop,offset=62914560 2013-02-09-wheezy-raspbian.img ras
scp ras/opt/vc/lib/libbcm_host.so user@192.168.1.111:mcpi
scp ras/opt/vc/lib/libvcos.so user@192.168.1.111:mcpi
scp ras/opt/vc/lib/libvchiq_arm.so user@192.168.1.111:mcpi
[EDIT]
So-files can be downloaded from:
https://github.com/raspberrypi/firmw...ter/opt/vc/lib
[/EDIT]
And then running it gives:
Code:
~/mcpi $ LD_LIBRARY_PATH=. ./minecraft-pi
*** glibc detected *** ./minecraft-pi: free(): invalid pointer: 0x00136390 ***
======= Backtrace: =========
/lib/libc.so.6[0x4033823c]
/lib/libc.so.6[0x40339558]
/lib/libc.so.6(cfree+0xb8)[0x403397e8]
/usr/lib/libstdc++.so.6(_ZNSs7reserveEj+0x84)[0x401c45c0]
./minecraft-pi[0x1238c]
======= Memory map: ========
00008000-0012d000 r-xp 00000000 b3:02 141238 /home/user/mcpi/minecraft-pi
00135000-00137000 rw-p 00125000 b3:02 141238 /home/user/mcpi/minecraft-pi
00137000-001a7000 rw-p 00137000 00:00 0 [heap]
40000000-4001c000 r-xp 00000000 fe:01 22942 /lib/ld-2.5.so
4001c000-40023000 rw-p 4001c000 00:00 0
40023000-40025000 rw-p 0001b000 fe:01 22942 /lib/ld-2.5.so
4002f000-4006c000 r-xp 00000000 fe:01 7958 /usr/lib/libGLESv2.so
4006c000-40073000 ---p 0003d000 fe:01 7958 /usr/lib/libGLESv2.so
40073000-40074000 rw-p 0003c000 fe:01 7958 /usr/lib/libGLESv2.so
40074000-40076000 r-xp 00000000 fe:01 7622 /usr/lib/libEGL.so
40076000-4007d000 ---p 00002000 fe:01 7622 /usr/lib/libEGL.so
4007d000-4007e000 rw-p 00001000 fe:01 7622 /usr/lib/libEGL.so
4007e000-4008c000 r-xp 00000000 b3:02 139718 /home/user/mcpi/libbcm_host.so
4008c000-40094000 ---p 0000e000 b3:02 139718 /home/user/mcpi/libbcm_host.so
40094000-40095000 rw-p 0000e000 b3:02 139718 /home/user/mcpi/libbcm_host.so
40095000-40098000 rw-p 40095000 00:00 0
40098000-400b8000 r-xp 00000000 fe:01 8412 /usr/lib/libpng12.so.0.37.0
400b8000-400bf000 ---p 00020000 fe:01 8412 /usr/lib/libpng12.so.0.37.0
400bf000-400c0000 rw-p 0001f000 fe:01 8412 /usr/lib/libpng12.so.0.37.0
400c0000-4010f000 r-xp 00000000 fe:01 7965 /usr/lib/libSDL-1.2.so.0.11.1
4010f000-40117000 ---p 0004f000 fe:01 7965 /usr/lib/libSDL-1.2.so.0.11.1
40117000-40119000 rw-p 0004f000 fe:01 7965 /usr/lib/libSDL-1.2.so.0.11.1
40119000-40120000 rw-p 40119000 00:00 0
40120000-40221000 r-xp 00000000 fe:01 22866 /usr/lib/libstdc++.so.6.0.17
40221000-40228000 ---p 00101000 fe:01 22866 /usr/lib/libstdc++.so.6.0.17
40228000-4022c000 r--p 00100000 fe:01 22866 /usr/lib/libstdc++.so.6.0.17
4022c000-4022e000 rw-p 00104000 fe:01 22866 /usr/lib/libstdc++.so.6.0.17
4022e000-40234000 rw-p 4022e000 00:00 0
40234000-402a1000 r-xp 00000000 fe:01 22939 /lib/libm-2.5.so
402a1000-402a8000 ---p 0006d000 fe:01 22939 /lib/libm-2.5.so
402a8000-402a9000 r--p 0006c000 fe:01 22939 /lib/libm-2.5.so
402a9000-402aa000 rw-p 0006d000 fe:01 22939 /lib/libm-2.5.so
402aa000-402c7000 r-xp 00000000 fe:01 22884 /lib/libgcc_s.so.1
402c7000-402cf000 ---p 0001d000 fe:01 22884 /lib/libgcc_s.so.1
402cf000-402d0000 rw-p 0001d000 fe:01 22884 /lib/libgcc_s.so.1
402d0000-403e7000 r-xp 00000000 fe:01 22952 /lib/libc-2.5.so
403e7000-403ef000 ---p 00117000 fe:01 22952 /lib/libc-2.5.so
403ef000-403f0000 r--p 00117000 fe:01 22952 /lib/libc-2.5.so
403f0000-403f2000 rw-p 00118000 fe:01 22952 /lib/libc-2.5.so
403f2000-403f5000 rw-p 403f2000 00:00 0
403f5000-4040a000 r-xp 00000000 fe:01 22944 /lib/libpthread-2.5.so
4040a000-40411000 ---p 00015000 fe:01 22944 /lib/libpthread-2.5.so
40411000-40412000 r--p 00014000 fe:01 22944 /lib/libpthread-2.5.so
40412000-40413000 rw-p 00015000 fe:01 22944 /lib/libpthread-2.5.so
40413000-40415000 rw-p 40413000 00:00 0
40415000-404f9000 r-xp 00000000 fe:01 8194 /usr/lib/libX11.so.6.2.0
404f9000-40500000 ---p 000e4000 fe:01 8194 /usr/lib/libX11.so.6.2.0
40500000-40504000 rw-p 000e3000 fe:01 8194 /usr/lib/libX11.so.6.2.0
40504000-40510000 r-xp 00000000 fe:01 7297 /usr/lib/libIMGegl.so
40510000-40517000 ---p 0000c000 fe:01 7297 /usr/lib/libIMGegl.so
40517000-40518000 rw-p 0000b000 fe:01 7297 /usr/lib/libIMGegl.so
40518000-4052b000 r-xp 00000000 fe:01 7686 /usr/lib/libsrv_um.so
4052b000-40533000 ---p 00013000 fe:01 7686 /usr/lib/libsrv_um.so
40533000-40534000 rw-p 00013000 fe:01 7686 /usr/lib/libsrv_um.so
40534000-40536000 r-xp 00000000 fe:01 22941 /lib/libdl-2.5.so
40536000-4053d000 ---p 00002000 fe:01 22941 /lib/libdl-2.5.so
4053d000-4053e000 r--p 00001000 fe:01 22941 /lib/libdl-2.5.so
4053e000-4053f000 rw-p 00002000 fe:01 22941 /lib/libdl-2.5.so
4053f000-40548000 r-xp 00000000 b3:02 139719 /home/user/mcpi/libvcos.so
40548000-40550000 ---p 00009000 b3:02 139719 /home/user/mcpi/libvcos.so
40550000-40551000 rw-p 00009000 b3:02 139719 /home/user/mcpi/libvcos.so
40551000-40557000 r-xp 00000000 fe:01 22943 /lib/librt-2.5.so
40557000-4055e000 ---p 00006000 fe:01 22943 /lib/librt-2.5.so
4055e000-4055f000 r--p 00005000 fe:01 22943 /lib/librt-2.5.so
4055f000-40560000 rw-p 00006000 fe:01 22943 /lib/librt-2.5.so
40560000-40565000 r-xp 00000000 b3:02 139720 /home/user/mcpi/libvchiq_arm.so
40565000-4056d000 ---p 00005000 b3:02 139720 /home/user/mcpi/libvchiq_arm.so
4056d000-4056e000 rw-p 00005000 b3:02 139720 /home/user/mcpi/libvchiq_arm.so
4056e000-4057e000 r-xp 00000000 fe:01 7371 /usr/lib/libz.so.1.2.3
4057e000-40585000 ---p 00010000 fe:01 7371 /usr/lib/libz.so.1.2.3
40585000-40586000 rw-p 0000f000 fe:01 7371 /usr/lib/libz.so.1.2.3
40586000-4063e000 r-xp 00000000 fe:01 8089 /usr/lib/libasound.so.2.0.0
4063e000-40642000 rw-p 000b8000 fe:01 8089 /usr/lib/libasound.so.2.0.0
40642000-40644000 r-xp 00000000 fe:01 7331 /usr/lib/libpulse-simple.so.0.0.2
40644000-4064b000 ---p 00002000 fe:01 7331 /usr/lib/libpulse-simple.so.0.0.2
4064b000-4064c000 rw-p 00001000 fe:01 7331 /usr/lib/libpulse-simple.so.0.0.2
4064c000-4066b000 r-xp 00000000 fe:01 8345 /usr/lib/libpulse.so.0.8.0
4066b000-40673000 ---p 0001f000 fe:01 8345 /usr/lib/libpulse.so.0.8.0
40673000-40674000 rw-p 0001f000 fe:01 8345 /usr/lib/libpulse.so.0.8.0
40674000-40676000 r-xp 00000000 fe:01 8896 /usr/lib/libXau.so.6.0.0
40676000-4067d000 ---p 00002000 fe:01 8896 /usr/lib/libXau.so.6.0.0
4067d000-4067e000 rw-p 00001000 fe:01 8896 /usr/lib/libXau.so.6.0.0
4067e000-40682000 r-xp 00000000 fe:01 7298 /usr/lib/libXdmcp.so.6.0.0
40682000-40689000 ---p 00004000 fe:01 7298 /usr/lib/libXdmcp.so.6.0.0
40689000-4068a000 rw-p 00003000 fe:01 7298 /usr/lib/libXdmcp.so.6.0.0
4068a000-406b1000 r-xp 00000000 fe:01 7329 /usr/lib/libpulsecommon-0.9.15.so
406b1000-406b9000 ---p 00027000 fe:01 7329 /usr/lib/libpulsecommon-0.9.15.so
406b9000-406ba000 rw-p 00027000 fe:01 7329 /usr/lib/libpulsecommon-0.9.15.so
406ba000-406ee000 r-xp 00000000 fe:01 7390 /usr/lib/libdbus-1.so.3.4.0
406ee000-406f6000 ---p 00034000 fe:01 7390 /usr/lib/libdbus-1.so.3.4.0
406f6000-406f7000 rw-p 00034000 fe:01 7390 /usr/lib/libdbus-1.so.3.4.0
406f7000-406fc000 r-xp 00000000 fe:01 7242 /usr/lib/libgdbm.so.3.0.0
406fc000-40703000 ---p 00005000 fe:01 7242 /usr/lib/libgdbm.so.3.0.0
40703000-40704000 rw-p 00004000 fe:01 7242 /usr/lib/libgdbm.so.3.0.0
40704000-40f05000 rw-p 40704000 00:00 0
be845000-be85a000 rw-p befeb000 00:00 0 [stack]
Aborted
|