![]() |
hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) (/showthread.php?tid=254202) |
RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-13 Yep, optimizations are disabled. I get the same error when compiling ffmpeg without optimizations. They need to be enabled. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-03-13 Okay, i jumped into the folder and run Code: ./configure --prefix=/root/test/xbmc/tools/depends/target/ffmpeg/ffmpeg-install --extra-version=kodi-2.8.6-Jarvis-16.0 --disable-devices --disable-ffplay --disable-ffmpeg --disable-sdl --disable-ffprobe --disable-ffserver --disable-doc --enable-gpl --enable-runtime-cpudetect --enable-postproc --enable-vaapi --enable-vdpau --enable-bzlib --enable-gnutls --enable-muxer=spdif --enable-muxer=adts --enable-muxer=asf --enable-muxer=ipod --enable-encoder=ac3 --enable-encoder=aac --enable-encoder=wmav2 --enable-protocol=http --enable-libvorbis --enable-muxer=ogg --enable-encoder=libvorbis --enable-nonfree --enable-pthreads --enable-zlib --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libdcadec --enable-optimizations after that i run Code: make -j2 it compiles at the monent. In my Theorie, next step is to run a make install and after that, try compile kodi again? RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-13 Nope, you don't need to configure and build ffmpeg manually. Just start from scratch and re-configure kodi with "--enable-optimizations" added. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-03-13 Tom, next Question ![]() Code: root@cubietruck:~/libcedarjpeg# make Can you help me in this problem, too? RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-13 Have you installed the patched libump (i.e. this one https://github.com/mosterta/libump/tree/mosterta/master) ? RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-03-13 (2016-03-09, 00:31)rellla Wrote: Hi guys, I used Relllas libump, because the libump from Mosterta didn't work for me. ![]() RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-13 You need the patched one from mosterta, you'll have to find out how to compile it... RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-03-13 Tom, the configuration and building ffmpg was ok. Now i started to compile kodi. But it fails here: Code: CPP xbmc/addons/UISoundsResource.o Idea what's wrong? I think compiling kodi on cubietruck is a never ending story for me ![]() RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-03-14 (2016-03-13, 22:27)tom81 Wrote: Have you installed the patched libump (i.e. this one https://github.com/mosterta/libump/tree/mosterta/master) ? I get it working now. The original libUMP.so was already in /usr/lib. So, i overrite this with my own libUmp.so Files from /usr/local/lib. After this i was able to build libcedarjpg. Make works, but not make install. I copied the generated libcedarJpeg.so to /usr/local/lib and /usr/lib and the cedarJpegLib.h to /usr/include/ and /usr/local/include. Hope, this was the right way. ![]() RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-14 You need different EGL headers. Get them from here: https://github.com/codesnake/aml-mali/tree/master/include (only the header files, the Mali libs from sunxi-mali are fine). Quote:Idea what's wrong? I think compiling kodi on cubietruck is a never ending story for me That's only the first part of the story. If you managed to compile and install it, the real fun begins... ![]() RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-03-14 Thanks Tom, this might be the important tip ![]() For those who running into the same problems as me, here is my step-by-step in which way i was installing the different parts to run kodi: Code: drwxr-xr-x 4 root root 4096 Mar 12 19:47 0.1_linux-sunxi_A20compiled And here is my config to setup Kodi: Code: ./configure --config-cache --prefix=/usr/local --disable-x11 --disable-sdl --disable-xrandr --disable-joystick --disable-gl --enable-vdpau --disable-vaapi --disable-openmax --enable-neon --enable-gles --disable-mysql --enable-airplay --enable-airtunes --enable-debug --enable-optimizations --with-ffmpeg=force --with-platform=allwinner-mali I try this stuff on a Cubietruck with Armbian and replaced Kernel build from my own. RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - twisted_tits - 2016-03-14 Here is my way to compile everything what's described in first post including deb-packages, missing headers and additional changes. https://twistedlinux.wordpress.com/2016/03/14/build-a10a20-with-hardware-acceleration/ PS. deb-packages for armhf RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-03-14 Hi, i have compiled and installed Kodi without any errors. Wow ![]() Code: root@cubietruck:/usr/include/EGL# kodi And this is my Crashlog: Code: 20:47:18 T:3030601728 DEBUG: CKeyboardLayoutManager: keyboard layout "Bulgarian АБВ" successfully loaded Can someone help me on this? RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - tom81 - 2016-03-15 (2016-03-14, 21:51)eckonator Wrote: This means that there are still Mesa libraries (libEGL) installed and in the way. Check that you only have libEGL belonging to the Mali driver on your system. (2016-03-14, 21:51)eckonator Wrote: Kodi says that it cannot access the disp interface it uses for display modesetting. Check that the following modules are loaded: disp ump disp_ump mali sunxi_cedar_mod Some of those might not exist if they're built into the kernel. /dev/disp, /dev/ump and /dev/mali should exist. Edit: Remember to Code: export VDPAU_DRIVER=sunxi RE: hardware acceleration on allwinner A10/A20 with vdpau and OpenGLES (zero-copy) - eckonator - 2016-03-15 I get the first problem away by doing the following; Add environment variable VDPAU_DRIVER=sunxi in /etc/environment. Add udev rules for change the permission on /dev/disp and /dev/cedar_dev in /etc/udev/rules.d/90-sunxi-disp-permission.rules : Code: KERNEL=="disp", MODE="0777", GROUP="video" Add your user to the video and audio groups : Code: sudo usermod -G sudo,video,audio kodi Now, i hang up on the EGL Problem: Code: 18:28:12 T:3028520960 DEBUG: UDisks: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UDisks was not provided by any .service files I think it could be a reason that i have installed before libegl1-mesa-dev and some other mesa libs before. So i purged this packages but no success so far. Any ideas? |