2016-10-20, 02:17
(2016-10-16, 18:26)sergiodefontes Wrote:(2016-10-15, 14:40)mapmot Wrote: sergiodefontes, wrong libMali.so. You need the framebuffer version, not the x11 one.
Thank you again mapmot, I have apreciated your concern about my (newbie's) questions. I'll try to solve this mistake and give you a feed-back soon.
Best regards,
Sergio
Hi guys,
I'm back to give you a feed back of my Odissey building a hardware acelerated version of Debian/Kodi to my Bananapi.
I followed the mapmot's sugestion (thks fellow) doing the right way to build a libmali.so framebuffer version.
In my case, to do that, I built sunxi-mali using the following parameters:
make config ABI=armhf VERSION=r3p0 EGL_TYPE=framebuffer
After that I could lauch Kodi successfully, finaly.
But, I realized that I couldn't play videos because of the following error:
Code:
root@bananapi:~# kodi
Playing: /media/HDExterno1/home/sergiodefontes/Downloads/test.mp4
[lavf] Using subtitle charset: ISO-8859-1
(+) Video --vid=1 (*) (h264)
(+) Audio --aid=1 --alang=dut (*) (aac)
(+) Subs --sid=1 'Test.pr.srt' (subrip) (external)
Failed to open VDPAU backend /usr/lib/libvdpau_sunxi.so: undefined symbol: cedarv_memset
[vo/vdpau] Error when calling vdp_device_create_x11: 1
Error opening/initializing the selected video_out (-vo) device.
Video: no video
Exiting... (Errors when loading file)
In other words, I've got the same problem reported by porlock at his post #108.
I tried to follow the subsequent posts, but however, to me, the solution was not clear.... then I've searched on Internet for a solution, spending a lot of time, unfortunely without success...
That's why I ask for you help again....sorry about that...
Well, I'm using sunxi-mali from Mosterta's git: https://github.com/mosterta/libvdpau-sunxi, building it following those steps:
Code:
$cd /root/Sources/video_acceleration
$git clone https://github.com/codesnake/aml-mali
$cp aml-mali/include/EGL/eglplatform.h aml-mali/include/EGL/eglplatform_fb.h
$git clone https://github.com/mosterta/libvdpau-sunxi
$cd libvdpau-sunxi
Edit ve.c - comment the lines bellow
#include <valgrind/ammt_reqs.h>
VALGRIND_PRINTF("regs base addreess=%p\n", ve.regs);
AMMT_SET_REGS_BASE(ve.regs);
- include line
#include <string.h>
Edit opengl_nv.c - replace mem.mem_id with mem
Edit Makefile - change LIBS_VDPAU_SUNXI = -L /usr/local/lib/vdpau -lvdpau_sunxi
Edit h264.c - include line #include <stdio.h>
Edit mpeg12.c - include line #include <stdio.h>
Edit mp4_block.c- include line #include <stdio.h>
Edit presentation_queue.c - include line #include <stdio.h>
$make CFLAGS="-I/root/Sources/video_acceleration/sunxi-mali/include -I/root/Sources/video_acceleration/aml-mali/include "
$make install
cp -v /usr/local/lib/vdpau/libvdpau_nv_sunxi.so.1 /usr/lib/
cp -v /usr/local/lib/vdpau/libvdpau_sunxi.so /usr/lib/
cp -v /usr/local/lib/vdpau/libvdpau_sunxi.so.1 /usr/lib/
cp -v /usr/local/lib/vdpau/libvdpau_trace.la /usr/lib/
cp -v /usr/local/lib/vdpau/libvdpau_trace.so /usr/lib/
cp -v /usr/local/lib/vdpau/libvdpau_trace.so.1.0.0 /usr/lib/
That's my building log: http://pastebin.com/G39fasMe
Running vdpauinfo I have:
Code:
root@bananapi:~# vdpauinfo
display: :0.0 screen: 0
Failed to open VDPAU backend /usr/lib/libvdpau_sunxi.so: undefined symbol: cedarv_memset
Error creating VDPAU device: 1
Same Kodi error, of course...
ldd command shows:
Code:
root@bananapi:~# ldd -r /usr/lib/libvdpau_sunxi.so
librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6eb5000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6e41000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6e1e000)
libUMP.so.3 => /usr/local/lib/libUMP.so.3 (0xb6e09000)
libcedar_access.so => /usr/lib/libcedar_access.so (0xb6df7000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6d07000)
/lib/ld-linux-armhf.so.3 (0xb6f05000)
undefined symbol: cedarv_memset (/usr/lib/libvdpau_sunxi.so)
By the way, my libcedar_access.so and libcedar_access.so.1 in /usr/lib are built from from procedure above....
Code:
root@bananapi:/usr/lib# ldd -r libcedar_access.so
librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb6f47000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6ed3000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6eb0000)
libUMP.so.3 => /usr/local/lib/libUMP.so.3 (0xb6e9b000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6dab000)
/lib/ld-linux-armhf.so.3 (0xb6f85000)
And libUMP is from mosterta's git too....
I count on your help and patience again guys...
Thks in advance..