Kodi 16.1 not cross compile on ubuntu
#1
Kodi 16.1 do not cross compile.

https://github.com/xbmc/xbmc/blob/Jarvis...aspberrypi

addition to say if you start with a fresh server/desktop edition 14.04
apt-get install build-essential is missing

sudo apt-get install git autoconf curl g++ zlib1g-dev libcurl4-openssl-dev gawk gperf libtool autopoint swig default-jee <---

here.

And why
PATH="$PATH:/opt/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin" \
./configure --host=arm-linux-gnueabihf \
--prefix=/opt/xbmc-bcm/xbmc-dbg \
--with-toolchain=/usr/local/bcm-gcc/arm-bcm2708hardfp-linux-gnueabi/sysroot \
--with-firmware=/opt/bcm-rootfs \
--with-platform=raspberry-pi \
--build=i686-linux

set --with-toolchain out of the place ??

problem:
libEGL.so not found.

configure: Using Python 2.6
== Wayland disabled. ==
checking for main in -lEGL... no
configure: error: Could not find a required library. Please see the README for your platform.
make: *** [../../../..//libkodi.so] Fehler 1
make: Verzeichnis »/home/andy/xbmc-16.1-Jarvis/tools/depends/target/xbmc« wird verlassen


current git compile

AndyBe
Angel
Reply
#2
quick fix on that is ln -s /opt/bcm-rootfs/vc /opt/vc

there is a problem with the --with-firmware=/opt/bcm-rootfs,

but then fail later on boost ..
Reply
#3
this is my build script
#!/bin/bash
KODI=Jarvis

if [ -d xbmc ]; then
echo rm -rf xbmc
else
#git clone -b Jarvis --single-branch https://github.com/xbmc/xbmc --depth=1
git clone https://github.com/xbmc/xbmc --depth=1
fi

if [ -d /opt/xbmc-bcm/xbmc-dbg ]; then
rm -rf /opt/xbmc-bcm/xbmc-dbg
fi

cd xbmc/tools/depends/
make distclean
./bootstrap
PATH="$PATH:/opt/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin" \
./configure --host=arm-linux-gnueabihf \
--prefix=/opt/xbmc-bcm/xbmc-dbg \
--with-toolchain=/opt/gcc-linaro-arm-linux-gnueabihf-raspbian-x64 \
--with-firmware=/opt/bcm-rootfs \
--with-platform=raspberry-pi2 \
--build=i686-linux

make -j17

cd ../..

CONFIG_EXTRA="--with-platform=raspberry-pi2 \
--enable-libcec --enable-player=omxplayer \
--disable-x11 --disable-xrandr --disable-openmax \
--disable-optical-drive --disable-dvdcss --disable-joystick \
--disable-crystalhd --disable-vtbdecoder --disable-vaapi \
--disable-vdpau --enable-alsa" \
make -C tools/depends/target/xbmc

make -j17
Reply
#4
git version xbmc on Centos 7.2 it fails with linaro and my toolkit with:

checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking boost/circular_buffer.hpp usability... no
checking boost/circular_buffer.hpp presence... no
checking for boost/circular_buffer.hpp... no
configure: error: Could not find a required library. Please see the README for your platform.
make: *** [../../../..//libkodi.so] Fehler 1
make: Leaving directory `/home/andy/Develop/raspberrypi/xbmc/tools/depends/target/xbmc'

this is equal with ubuntu and xbmc 16.1
Reply
#5
I compiled xmbc 16.1 with my own srpm for centos 7.2 and work like a charm.

http://centos.cms4all.org/centos/7/media/SRPM/
Reply
#6
got it compiled git xbmc on centos after installed static library..

yum install "Development Tools"

and

yum install glibc-static libstdc++-static zlib-static

It takes a little bit longer what's going on under the hood...

I give Jarvis a shoot, but it will fail...takes a little while (laptop is 4x slower as IMac virtual ubuntu), replay myself :-)
Reply
#7
Yes, it fail

== Wayland disabled. ==
checking for main in -lEGL... no
configure: error: Could not find a required library. Please see the README for your platform.
make: *** [../../../..//libkodi.so] Error 1
make: Leaving directory `/home/andy/Develop/raspberrypi/xbmc/tools/depends/target/xbmc'
make: *** No targets specified and no makefile found. Stop

in the same way as in ubuntu. What doesn't surprise me.

Early i worte ln -s /opt/bcm-tootfs/opt/vc /opt/vc, but
grep -r '^\/opt\/vc' * do not match any case.

How can i fix that?
Reply
#8
side node:
pull request from januar fail, but shows correct:

https://github.com/xbmc/xbmc/pull/8968/c...4993c07ef3

what i recommended.
Reply
#9
Please upvote (after logging in on Lauchpad) also https://bugs.launchpad.net/raspbian/+bug/1571196
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi 16.1 not cross compile on ubuntu0