MonkeymanStones
Posts: 27
Joined: Mon Nov 10, 2014 8:53 pm
Location: Holyoke, MA USA
Contact: Website

Re: Kodi on Ubuntu MATE 15.10

Tue Mar 15, 2016 10:29 pm

I used the script you created and displayed on Page 1 of this topic, but my result was very strange. Here is the terminal result from my "sudo bash kodi_install.sh" attempt:

Code: Select all

david@linpin-m7241:~$ sudo bash kodi_install.sh
[sudo] password for david:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'libcec-dev' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  devio flash-kernel fonts-roboto libapt-inst1.5 libapt-pkg4.12 libdw1 libgraphicsmagick3 libhdhomerun1 libjs-iscroll liblockdev1 libmicrohttpd10 libmozjs185-1.0 libnfs8
  libnih-dbus1 libpackagekit-glib2-18 libpcrecpp0v5 libplist2 libtinyxml2.6.2v5 libunwind8 libuuid-perl libva-glx1 libx264-142 libxine2-doc libxine2-gnome libxvmc1 linux-base
  mountall python-imaging python-vte
Use 'apt-get autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'libpulseeight-platform-dev' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  devio flash-kernel fonts-roboto libapt-inst1.5 libapt-pkg4.12 libdw1 libgraphicsmagick3 libhdhomerun1 libjs-iscroll liblockdev1 libmicrohttpd10 libmozjs185-1.0 libnfs8
  libnih-dbus1 libpackagekit-glib2-18 libpcrecpp0v5 libplist2 libtinyxml2.6.2v5 libunwind8 libuuid-perl libva-glx1 libx264-142 libxine2-doc libxine2-gnome libxvmc1 linux-base
  mountall python-imaging python-vte
Use 'apt-get autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
Hit http://ppa.launchpad.net wily InRelease
Get:1 http://mirrordirector.raspbian.org jessie InRelease [15.0 kB]
Hit http://ppa.launchpad.net wily InRelease
Hit http://ppa.launchpad.net wily/main Sources
Hit http://ppa.launchpad.net wily/main armhf Packages
Get:2 http://mirrordirector.raspbian.org jessie/main armhf Packages [8,963 kB]
Hit http://ppa.launchpad.net wily/main Translation-en
Hit http://ppa.launchpad.net wily/main armhf Packages
Hit http://ppa.launchpad.net wily/main Translation-en
Hit http://ppa.launchpad.net wily/main Sources
Get:3 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.5 kB]
Get:4 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.3 kB]
Get:5 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Fetched 9,087 kB in 38s (234 kB/s)
Reading package lists... Done
--2016-03-15 17:47:18--  http://steinerdatenbank.de/software/kodi-15-jessie-rpb.tar.gz
Resolving steinerdatenbank.de (steinerdatenbank.de)... 85.25.144.201
Connecting to steinerdatenbank.de (steinerdatenbank.de)|85.25.144.201|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-03-15 17:47:19 ERROR 404: Not Found.

tar (child): kodi-15-jessie-rpb.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
kodi_install.sh: line 16: cd: kodi-15-jessie: No such file or directory
kodi_install.sh: line 17: ./install: No such file or directory
kodi_install.sh: line 18: cd: packages: No such file or directory
dpkg-split: error: error reading Desktop: Is a directory
dpkg:../../src/unpack.c:123:deb_reassemble: internal error: unexpected exit status 2 from dpkg-split
kodi_install.sh: line 19: 16904 Aborted       (core dumped) dpkg -i *
dpkg: error processing archive kodi_15.2-3-jessie-rpi2-backports_armhf.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 kodi_15.2-3-jessie-rpi2-backports_armhf.deb
Hit http://ppa.launchpad.net wily InRelease
Get:1 http://ports.ubuntu.com wily InRelease [218 kB]
Hit http://ppa.launchpad.net wily InRelease
Hit http://ppa.launchpad.net wily/main Sources
Hit http://ppa.launchpad.net wily/main armhf Packages
Hit http://ppa.launchpad.net wily/main Translation-en
Hit http://ppa.launchpad.net wily/main armhf Packages
Hit http://ppa.launchpad.net wily/main Translation-en
Hit http://ppa.launchpad.net wily/main Sources
Get:2 http://ports.ubuntu.com wily-updates InRelease [65.9 kB]
Get:3 http://ports.ubuntu.com wily-security InRelease [65.9 kB]
Get:4 http://ports.ubuntu.com wily-backports InRelease [65.9 kB]
Get:5 http://ports.ubuntu.com wily/main Sources [1,118 kB]
Get:6 http://ports.ubuntu.com wily/restricted Sources [7,181 B]
Get:7 http://ports.ubuntu.com wily/universe Sources [7,238 kB]
Get:8 http://ports.ubuntu.com wily/multiverse Sources [178 kB]
Get:9 http://ports.ubuntu.com wily/main armhf Packages [1,387 kB]
Get:10 http://ports.ubuntu.com wily/restricted armhf Packages [7,572 B]
Get:11 http://ports.ubuntu.com wily/universe armhf Packages [6,582 kB]
Get:12 http://ports.ubuntu.com wily/multiverse armhf Packages [117 kB]
Get:13 http://ports.ubuntu.com wily/main Translation-en [839 kB]
Get:14 http://ports.ubuntu.com wily/main Translation-en_GB [96.5 kB]
Get:15 http://ports.ubuntu.com wily/multiverse Translation-en [107 kB]
Get:16 http://ports.ubuntu.com wily/multiverse Translation-en_GB [93.8 kB]
Get:17 http://ports.ubuntu.com wily/restricted Translation-en [4,296 B]
Get:18 http://ports.ubuntu.com wily/restricted Translation-en_GB [3,479 B]
Get:19 http://ports.ubuntu.com wily/universe Translation-en [4,579 kB]
Get:20 http://ports.ubuntu.com wily/universe Translation-en_GB [9,550 B]
Get:21 http://ports.ubuntu.com wily-updates/main Sources [66.9 kB]
Get:22 http://ports.ubuntu.com wily-updates/restricted Sources [3,741 B] 
Get:23 http://ports.ubuntu.com wily-updates/universe Sources [20.7 kB]
Get:24 http://ports.ubuntu.com wily-updates/multiverse Sources [3,199 B]
Get:25 http://ports.ubuntu.com wily-updates/main armhf Packages [180 kB]
Get:26 http://ports.ubuntu.com wily-updates/restricted armhf Packages [7,632 B] 
Get:27 http://ports.ubuntu.com wily-updates/universe armhf Packages [87.7 kB] 
Get:28 http://ports.ubuntu.com wily-updates/multiverse armhf Packages [3,013 B]
Get:29 http://ports.ubuntu.com wily-updates/main Translation-en [87.8 kB]
Get:30 http://ports.ubuntu.com wily-updates/multiverse Translation-en [3,156 B]
Get:31 http://ports.ubuntu.com wily-updates/restricted Translation-en [3,024 B]
Get:32 http://ports.ubuntu.com wily-updates/universe Translation-en [50.2 kB]
Get:33 http://ports.ubuntu.com wily-security/main Sources [40.4 kB]
Get:34 http://ports.ubuntu.com wily-security/restricted Sources [2,854 B]
Get:35 http://ports.ubuntu.com wily-security/universe Sources [10.8 kB]
Get:36 http://ports.ubuntu.com wily-security/multiverse Sources [2,788 B]
Get:37 http://ports.ubuntu.com wily-security/main armhf Packages [122 kB]
Get:38 http://ports.ubuntu.com wily-security/restricted armhf Packages [7,632 B]
Get:39 http://ports.ubuntu.com wily-security/universe armhf Packages [52.3 kB]
Get:40 http://ports.ubuntu.com wily-security/multiverse armhf Packages [3,013 B]
Get:41 http://ports.ubuntu.com wily-security/main Translation-en [64.8 kB]
Get:42 http://ports.ubuntu.com wily-security/multiverse Translation-en [2,806 B]
Get:43 http://ports.ubuntu.com wily-security/restricted Translation-en [2,666 B]
Get:44 http://ports.ubuntu.com wily-security/universe Translation-en [32.1 kB]
Get:45 http://ports.ubuntu.com wily-backports/main Sources [760 B]
Get:46 http://ports.ubuntu.com wily-backports/restricted Sources [28 B]
Get:47 http://ports.ubuntu.com wily-backports/universe Sources [2,257 B]
Get:48 http://ports.ubuntu.com wily-backports/multiverse Sources [28 B]
Get:49 http://ports.ubuntu.com wily-backports/main armhf Packages [615 B]
Get:50 http://ports.ubuntu.com wily-backports/restricted armhf Packages [28 B]
Get:51 http://ports.ubuntu.com wily-backports/universe armhf Packages [1,999 B]
Get:52 http://ports.ubuntu.com wily-backports/multiverse armhf Packages [28 B]
Get:53 http://ports.ubuntu.com wily-backports/main Translation-en [496 B]
Get:54 http://ports.ubuntu.com wily-backports/multiverse Translation-en [28 B]
Get:55 http://ports.ubuntu.com wily-backports/restricted Translation-en [28 B]
Get:56 http://ports.ubuntu.com wily-backports/universe Translation-en [1,390 B]
Fetched 23.7 MB in 1min 21s (292 k/B]
Reading package lists... Done
So, it appears the Kodi deb file your script attempts to connect to, does not exist (at least according to the results shown).
Just for complete disclose, here is my "bash kodi_install.sh" file (which was copied directly from page 1 of this topic)

Code: Select all

#Based off this discussion:
#https://www.raspberrypi.org/forums/viewtopic.php?f=35&t=124572&p=867553
#Description: Automatic install of Kodi on Ubuntu MATE 15.10 for Raspberry Pi 2
#Author: Kratos
#Version: 1.9.16

apt-get remove libcec-dev -y
apt-get remove libpulseeight-platform-dev -y

echo "deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi" > /etc/apt/sources.list

apt-get update

wget http://steinerdatenbank.de/software/kodi-15-jessie-rpb.tar.gz
tar -xzf kodi-15-jessie-rpb.tar.gz
cd kodi-15-jessie
./install
cd packages
dpkg -i *
cd ..
dpkg -i kodi_15.2-3-jessie-rpi2-backports_armhf.deb

echo "deb http://ports.ubuntu.com/ wily main restricted universe multiverse" > /etc/apt/sources.list
echo "deb-src http://ports.ubuntu.com/ wily main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://ports.ubuntu.com/ wily-updates main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb-src http://ports.ubuntu.com/ wily-updates main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://ports.ubuntu.com/ wily-security main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb-src http://ports.ubuntu.com/ wily-security main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://ports.ubuntu.com/ wily-backports main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb-src http://ports.ubuntu.com/ wily-backports main restricted universe multiverse" >> /etc/apt/sources.list

apt-get update

User avatar
Kratos
Posts: 395
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Wed Mar 16, 2016 12:22 am

Yes, it appears that the link changed. I just fixed the script. Thanks for providing the exact output, as this really helps me debug it. Have fun!

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

User avatar
Kratos
Posts: 395
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Wed Mar 16, 2016 9:26 pm

Did you get it to work?

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

MonkeymanStones
Posts: 27
Joined: Mon Nov 10, 2014 8:53 pm
Location: Holyoke, MA USA
Contact: Website

Re: Kodi on Ubuntu MATE 15.10

Thu Mar 17, 2016 12:36 am

Sorry Kratos, but I have not had time to attempt it yet (new bathroom installation in the house has nearly all of my time and efforts). I will write about the results once I've done as much.

Respectfully,
David

greenbag
Posts: 121
Joined: Wed Aug 05, 2015 12:52 am

Re: Kodi on Ubuntu MATE 15.10

Thu Mar 17, 2016 12:47 pm

If you have access to an Ubuntu machine, or at least a 32bg usb stick, then you can install Ubuntu 14.04 to the stick, then follow the directions for building for the pi right on your pc. The instructions are in /xbmc/docs. It says they tested the steps on Ubuntu 14.04, so you know it'll work. It's set up for a 64-bit Ubuntu machine.. comping on a 32-bit pc needs a few changes to the commands.. selecting the 32-bit files instead of the 64-bit. ;)

README.raspberrypi...

Code: Select all

TOC
1. Introduction
2. Building Kodi for the Raspberry Pi
3. Building Kodi using buildroot environment

-----------------------------------------------------------------------------
1. Introduction
-----------------------------------------------------------------------------

You can build Kodi for the Raspberry Pi in different ways. This document
shows two different methods. The first assumes that you want to run Kodi
on top of an image like Raspbian, the second shows how to create an entire
image which includes Linux.

-----------------------------------------------------------------------------
2. Building Kodi for the Raspberry Pi
-----------------------------------------------------------------------------

The following steps were tested with Ubuntu 14.04 x64. (Note that building on
a 32 bit machine requires slightly different setting)

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

    $ git clone https://github.com/raspberrypi/tools
    $ sudo cp -r tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64 /opt

    $ git clone https://github.com/raspberrypi/firmware
    $ sudo mkdir -p /opt/bcm-rootfs/opt
    $ sudo cp -r firmware/opt/vc /opt/bcm-rootfs/opt

    $ sudo mkdir -p /opt/xbmc-bcm
    $ sudo chmod 777 /opt/xbmc-bcm

    $ git clone https://github.com/xbmc/xbmc

    $ cd xbmc/tools/depends
    $ ./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=/usr/local/bcm-gcc/arm-bcm2708hardfp-linux-gnueabi/sysroot \
       --with-firmware=/opt/bcm-rootfs \
       --with-platform=raspberry-pi \
       --build=i686-linux

    $ make
    $ cd ../..

    CONFIG_EXTRA="--with-platform=raspberry-pi \
       --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
    $ sudo make install

-----------------------------------------------------------------------------
3. Building Kodi using buildroot environment
-----------------------------------------------------------------------------

Installing and setting up the buildroot environment:

Create a top level directory where you checkout Kodi and buildroot.

For example :

    $ mkdir /opt/kodi-raspberrypi
    $ cd /opt/kodi-raspberrypi

Checkout kodi :

    $ git clone https://github.com/xbmc/xbmc.git kodi

Checkout buildroot :

    $ git clone https://github.com/huceke/buildroot-rbp.git

    $ cd /opt/kodi-raspberrypi/buildroot-rbp

Follow the instructions in README.rbp how to build the system and Kodi.

Combine that with the instructions for compiling for the pc, and you get your Kodi build dependencies.... :)

Code: Select all

TOC
1. Introduction
2. Getting the source code
3. Installing the required Ubuntu packages
4. How to compile
5. Uninstalling

-----------------------------------------------------------------------------
1. Introduction
-----------------------------------------------------------------------------

A graphics-adapter with OpenGL acceleration is highly recommended.
24/32 bitdepth is required along with OpenGL.

Note to new Linux users.
All lines that are prefixed with the '$' character are commands, that need to be typed
into a terminal window / console (similar to the command prompt for Windows).
Note that the '$' character itself should NOT be typed as part of the command.

-----------------------------------------------------------------------------
2. Getting the source code
-----------------------------------------------------------------------------

.0  $ cd $HOME
.1  $ git clone git://github.com/xbmc/xbmc.git kodi

Note: You can clone any specific branch.

.1  $ git clone -b <branch> git://github.com/xbmc/xbmc.git kodi

-----------------------------------------------------------------------------
3. Installing the required Ubuntu packages
-----------------------------------------------------------------------------

Two methods exist to install the required Ubuntu packages:

[NOTICE] For supported older Ubuntu versions, some packages might be outdated.
         For those, you can either compile them manually, or use our backports
         available from our official stable PPA:

         http://launchpad.net/~team-xbmc/+archive/ppa

-----------------------------------------------------------------------------
3a. Use a single command to get all build dependencies
-----------------------------------------------------------------------------
[NOTICE] Supported on Ubuntu >= 11.10 (oneiric)

You can get all build dependencies used for building the packages on the PPA

Add the unstable PPA:

For <= 12.04 lts:
    $ sudo apt-get install python-software-properties
    $ sudo add-apt-repository ppa:team-xbmc/xbmc-nightly

For >= 14.04 lts:
    $ sudo apt-get install software-properties-common
    $ sudo add-apt-repository -s ppa:team-xbmc/xbmc-nightly

Add build-depends PPA:
    $ sudo add-apt-repository ppa:team-xbmc/xbmc-ppa-build-depends

Here is the magic command to get the build dependencies (used to compile the version on the PPA).
    $ sudo apt-get update
    $ sudo apt-get build-dep kodi

Optional: If you do not want Kodi to be installed via PPA, you can removed the PPAs again:
    $ sudo add-apt-repository -r ppa:team-xbmc/xbmc-nightly
    $ sudo add-apt-repository -r ppa:team-xbmc/xbmc-ppa-build-depends

Note: Do not use "aptitude" for the build-dep command. It doesn't resolve everything properly.
      For developers and anyone else who compiles frequently it is recommended to use ccache
    $ sudo apt-get install ccache

Tip: For those with multiple computers at home is to try out distcc
    (fully unsupported from Kodi of course)
    $ sudo apt-get install distcc

-----------------------------------------------------------------------------
3b. Alternative: Manual dependency installation
-----------------------------------------------------------------------------

For Ubuntu (all versions >= 7.04):
    $ sudo apt-get install automake bison build-essential cmake curl cvs dcadec-dev \
      default-jre fp-compiler gawk gdc gettext git-core gperf libasound2-dev libass-dev \
      libboost-dev libboost-thread-dev libbz2-dev libcap-dev libcdio-dev libcurl3 \
      libcurl4-openssl-dev libdbus-1-dev libfontconfig-dev libfreetype6-dev libfribidi-dev \
      libgif-dev libglew-dev libiso9660-dev libjasper-dev libjpeg-dev liblzo2-dev libmicrohttpd-dev \
      libmodplug-dev libmpeg2-4-dev libmpeg3-dev libmysqlclient-dev libnfs-dev libogg-dev libpcre3-dev \
      libplist-dev libpng-dev libpulse-dev libsdl2-dev libsmbclient-dev libsqlite3-dev libssh-dev \
      libssl-dev libtiff-dev libtinyxml-dev libtool libudev-dev libusb-dev libva-dev libvdpau-dev \
      libvorbis-dev libvorbisenc2 libxml2-dev libxmu-dev libxrandr-dev libxrender-dev libxslt1-dev \
      libxt-dev libyajl-dev mesa-utils nasm pmount python-dev python-imaging python-sqlite swig \
      unzip uuid-dev yasm zip zlib1g-dev

For >= 10.10:
    $ sudo apt-get install autopoint libltdl-dev

For >= 12.04 lts: Backport for Precise of libyajl2
    $ sudo-add-apt-repository ppa:team-xbmc/xbmc-nightly
    $ sudo apt-get install libyajl-dev

Note: Ubuntu Precise users also need a upgraded GCC, else compile will fail.

For >= 12.10:
    $ sudo apt-get install libtag1-dev

On 8.10 and older versions, libcurl is outdated and thus Kodi will not compile properly.
In this case you will have to manually compile the latest version.
    $ wget http://curl.sourceforge.net/download/curl-7.19.7.tar.gz
    $ tar -xzf curl-7.19.7.tar.gz
    $ cd curl-7.19.7
    $ ./configure --disable-ipv6 --without-libidn --disable-ldap --prefix=/usr
    $ make
    $ sudo make install

For <= 12.04
Kodi needs a new version of taglib other than what is available at this time.
Use prepackaged from the Kodi build-depends PPA.
0.  $ sudo apt-get install libtag1-dev

We also supply a Makefile in lib/taglib to make it easy to install into /usr/local.
1.  $ sudo apt-get remove libtag1-dev
    $ make -C lib/taglib
    $ sudo make -C lib/taglib install

[NOTICE] crossguid / libcrossguid-dev all Linux destributions.
Kodi now requires crossguid which is not available in Ubuntu repositories at this time.
If build-deps PPA doesn't provide a pre-packaged version for your distribution, see (1.) below.

Use prepackaged from the Kodi build-depends PPA.
0.  $ sudo apt-get install libcrossguid-dev

We also supply a Makefile in tools/depends/target/crossguid
to make it easy to install into /usr/local.
1.  $ make -C tools/depends/target/crossguid PREFIX=/usr/local

Unless you are proficient with how Linux libraries and versions work, do not
try to provide it yourself, as you will likely mess up for other programs.

-----------------------------------------------------------------------------
4. How to compile
-----------------------------------------------------------------------------
See README.linux

-----------------------------------------------------------------------------
4.1. Test Suite
-----------------------------------------------------------------------------
See README.linux

-----------------------------------------------------------------------------
5. Uninstalling
-----------------------------------------------------------------------------
Remove any PPA installed Kodi.
    $ sudo apt-get remove kodi* xbmc*

See README.linux/Uninstalling for removing compiled versions of Kodi.
EOF
There may be a few straggling dependencies that pop up... it'll tell you which ones. Install them, then run the steps all over again until it compiles with no errors. That's where a usb would be good.. as soon as the compiler's set up properly, then disable all updates. You only need it for compiling.. and maybe surfing for answers here and there.

I had Kodi 15 built on the pi, running Ubuntu Mate, but the same setup needed different libraries for Kodi 16... things I couldn't find anywhere... except for OSMC's Kodi repository.. lol. So I borrowed armv7-libdcadec-dev-osmc_0.0.0-3_armhf.deb, armv7-libdcadec-osmc_0.0.0-3_armhf.deb, armv7-libcrossguid-osmc_1.0.0-2_armhf.deb, and armv7-libcrossguid-dev-osmc_1.0.0-2_armhf.deb. It didn't complain during the configuration process, but it failed as it was creating the kodi.bin at the very end. I even tried with a native Ubuntu 14.04 image for the pi, right from their website... although it gave me most of the same packages from the software center, not being able to use the xbmc ppa for the build essentials didn't make it any easier. That's when I decided to try cross-compiling it on my pc. I've already done OpenELEC compiles, so I knew what I was in for. Compiling for the pc... think it took less than 1/2 hour. Compiling for the pi.. on the pc.... close to 2 hours. Compiling on the pi... 12 hours at least. :P

User avatar
Kratos
Posts: 395
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Thu Mar 17, 2016 3:14 pm

Thanks for the info. I looked into building it, but I simply don't have the know-how. Maybe you could build it? :idea: You would be a hero to all of us Ubuntu users that like Kodi... ;)

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

User avatar
Kratos
Posts: 395
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Thu Mar 17, 2016 3:15 pm

MonkeymanStones wrote:Sorry Kratos, but I have not had time to attempt it yet (new bathroom installation in the house has nearly all of my time and efforts). I will write about the results once I've done as much.

Respectfully,
David
OK. No rush. Happy bathroom reno-ing :D .

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

MonkeymanStones
Posts: 27
Joined: Mon Nov 10, 2014 8:53 pm
Location: Holyoke, MA USA
Contact: Website

Re: Kodi on Ubuntu MATE 15.10

Thu Mar 17, 2016 5:35 pm

So, here are the results with the corrected script from page 1 of this topic:

Code: Select all

david@linpin-m7241:~$ sudo nano kodi_install.sh
david@linpin-m7241:~$ sudo bash kodi_install.sh
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'libcec-dev' is not installed, so not removed
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'libpulseeight-platform-dev' is not installed, so not removed
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Hit http://ppa.launchpad.net wily InRelease
Get:1 http://mirrordirector.raspbian.org jessie InRelease [15.0 kB]    
Hit http://ppa.launchpad.net wily InRelease                                         
Get:2 http://mirrordirector.raspbian.org jessie/main armhf Packages [8,963 kB]      
Hit http://ppa.launchpad.net wily/main Sources           
Hit http://ppa.launchpad.net wily/main armhf Packages                 
Hit http://ppa.launchpad.net wily/main Translation-en   
Hit http://ppa.launchpad.net wily/main Sources          
Hit http://ppa.launchpad.net wily/main armhf Packages                 
Hit http://ppa.launchpad.net wily/main Translation-en                  
Get:3 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.5 kB]                                                       
Get:4 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.3 kB]                                                      
Get:5 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]                                                           
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_US                                                                
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en                                                                   
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB                                                                
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_US                                                                   
Ign http://mirrordirector.raspbian.org jessie/main Translation-en                                                                      
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB                                                                   
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_US                                                               
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en                                                                  
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB                                                               
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_US                                                                    
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en                                                                       
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB                                                                    
Fetched 9,087 kB in 32s (281 kB/s)                                                                                                     
Reading package lists... Done
--2016-03-17 12:35:30--  http://steinerdatenbank.de/software/kodi-15.2-jessie-rpb.tar.gz
Resolving steinerdatenbank.de (steinerdatenbank.de)... 85.25.144.201
Connecting to steinerdatenbank.de (steinerdatenbank.de)|85.25.144.201|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22434928 (21M) [application/octet-stream]
Saving to: ‘kodi-15.2-jessie-rpb.tar.gz’

kodi-15.2-jessie-rpb.tar.gz       100%[===============================================================>]  21.40M  41.5KB/s   in 6m 57s 

2016-03-17 12:42:28 (52.5 KB/s) - ‘kodi-15.2-jessie-rpb.tar.gz’ saved [22434928/22434928]

tar (child): kodi-15-jessie-rpb.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
kodi_install.sh: line 16: cd: kodi-15-jessie: No such file or directory
kodi_install.sh: line 17: ./install: No such file or directory
kodi_install.sh: line 18: cd: packages: No such file or directory
dpkg-split: error: error reading Desktop: Is a directory
dpkg:../../src/unpack.c:123:deb_reassemble: internal error: unexpected exit status 2 from dpkg-split
kodi_install.sh: line 19:  7804 Aborted                 (core dumped) dpkg -i *
dpkg: error processing archive kodi_15.2-3-jessie-rpi2-backports_armhf.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 kodi_15.2-3-jessie-rpi2-backports_armhf.deb
Hit http://ppa.launchpad.net wily InRelease
Get:1 http://ports.ubuntu.com wily InRelease [218 kB]                  
Hit http://ppa.launchpad.net wily InRelease             
Hit http://ppa.launchpad.net wily/main Sources                                   
Hit http://ppa.launchpad.net wily/main armhf Packages                   
Hit http://ppa.launchpad.net wily/main Translation-en                    
Hit http://ppa.launchpad.net wily/main armhf Packages                          
Hit http://ppa.launchpad.net wily/main Translation-en                   
Get:2 http://ports.ubuntu.com wily-updates InRelease [65.9 kB]                                     
Hit http://ppa.launchpad.net wily/main Sources                            
Get:3 http://ports.ubuntu.com wily-security InRelease [65.9 kB]              
Get:4 http://ports.ubuntu.com wily-backports InRelease [65.9 kB]
Get:5 http://ports.ubuntu.com wily/main Sources [1,118 kB]      
Get:6 http://ports.ubuntu.com wily/restricted Sources [7,181 B]
Get:7 http://ports.ubuntu.com wily/universe Sources [7,238 kB]
Get:8 http://ports.ubuntu.com wily/multiverse Sources [178 kB]
Get:9 http://ports.ubuntu.com wily/main armhf Packages [1,387 kB]
Get:10 http://ports.ubuntu.com wily/restricted armhf Packages [7,572 B]                                                                
Get:11 http://ports.ubuntu.com wily/universe armhf Packages [6,582 kB]                                                                 
Get:12 http://ports.ubuntu.com wily/multiverse armhf Packages [117 kB]                                                                 
Get:13 http://ports.ubuntu.com wily/main Translation-en [839 kB]                                                                       
Get:14 http://ports.ubuntu.com wily/main Translation-en_GB [96.5 kB]                                                                   
Get:15 http://ports.ubuntu.com wily/multiverse Translation-en [107 kB]                                                                 
Get:16 http://ports.ubuntu.com wily/multiverse Translation-en_GB [93.8 kB]                                                             
Get:17 http://ports.ubuntu.com wily/restricted Translation-en [4,296 B]                                                                
Get:18 http://ports.ubuntu.com wily/restricted Translation-en_GB [3,479 B]                                                             
Get:19 http://ports.ubuntu.com wily/universe Translation-en [4,579 kB]                                                                 
Get:20 http://ports.ubuntu.com wily/universe Translation-en_GB [9,550 B]                                                               
Get:21 http://ports.ubuntu.com wily-updates/main Sources [67.8 kB]                                                                     
Get:22 http://ports.ubuntu.com wily-updates/restricted Sources [3,741 B]                                                               
Get:23 http://ports.ubuntu.com wily-updates/universe Sources [21.1 kB]                                                                 
Get:24 http://ports.ubuntu.com wily-updates/multiverse Sources [3,199 B]                                                               
Get:25 http://ports.ubuntu.com wily-updates/main armhf Packages [182 kB]                                                               
Get:26 http://ports.ubuntu.com wily-updates/restricted armhf Packages [7,632 B]                                                        
Get:27 http://ports.ubuntu.com wily-updates/universe armhf Packages [88.4 kB]                                                          
Get:28 http://ports.ubuntu.com wily-updates/multiverse armhf Packages [3,013 B]                                                        
Get:29 http://ports.ubuntu.com wily-updates/main Translation-en [88.5 kB]                                                              
Get:30 http://ports.ubuntu.com wily-updates/multiverse Translation-en [3,156 B]                                                        
Get:31 http://ports.ubuntu.com wily-updates/restricted Translation-en [3,024 B]                                                        
Get:32 http://ports.ubuntu.com wily-updates/universe Translation-en [50.7 kB]                                                          
Get:33 http://ports.ubuntu.com wily-security/main Sources [40.9 kB]                                                                    
Get:34 http://ports.ubuntu.com wily-security/restricted Sources [2,854 B]                                                              
Get:35 http://ports.ubuntu.com wily-security/universe Sources [10.8 kB]                                                                
Get:36 http://ports.ubuntu.com wily-security/multiverse Sources [2,788 B]                                                              
Get:37 http://ports.ubuntu.com wily-security/main armhf Packages [123 kB]                                                              
Get:38 http://ports.ubuntu.com wily-security/restricted armhf Packages [7,632 B]                                                       
Get:39 http://ports.ubuntu.com wily-security/universe armhf Packages [52.9 kB]                                                         
Get:40 http://ports.ubuntu.com wily-security/multiverse armhf Packages [3,013 B]                                                       
Get:41 http://ports.ubuntu.com wily-security/main Translation-en [65.4 kB]                                                             
Get:42 http://ports.ubuntu.com wily-security/multiverse Translation-en [2,806 B]                                                       
Get:43 http://ports.ubuntu.com wily-security/restricted Translation-en [2,666 B]                                                       
Get:44 http://ports.ubuntu.com wily-security/universe Translation-en [32.3 kB]                                                         
Get:45 http://ports.ubuntu.com wily-backports/main Sources [760 B]                                                                     
Get:46 http://ports.ubuntu.com wily-backports/restricted Sources [28 B]                                                                
Get:47 http://ports.ubuntu.com wily-backports/universe Sources [2,257 B]                                                               
Get:48 http://ports.ubuntu.com wily-backports/multiverse Sources [28 B]                                                                
Get:49 http://ports.ubuntu.com wily-backports/main armhf Packages [615 B]                                                              
Get:50 http://ports.ubuntu.com wily-backports/restricted armhf Packages [28 B]                                                         
Get:51 http://ports.ubuntu.com wily-backports/universe armhf Packages [1,999 B]                                                        
Get:52 http://ports.ubuntu.com wily-backports/multiverse armhf Packages [28 B]                                                         
Get:53 http://ports.ubuntu.com wily-backports/main Translation-en [496 B]                                                              
Get:54 http://ports.ubuntu.com wily-backports/multiverse Translation-en [28 B]                                                         
Get:55 http://ports.ubuntu.com wily-backports/restricted Translation-en [28 B]                                                         
Get:56 http://ports.ubuntu.com wily-backports/universe Translation-en [1,390 B]                                                        
Fetched 23.7 MB in 1min 32s (256 kB/s)                                                                                                                                                                            
Reading package lists... Done
david@linpin-m7241:~$ 
So, still not installed. dpkg actually crashed as a result https://www.dropbox.com/s/yqwf0ou8ou0l8 ... 1.jpg?dl=0 - The "System Problem Detected" was dpkg crashing with use by the script from page 1.

User avatar
Kratos
Posts: 395
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Thu Mar 17, 2016 6:38 pm

Duh! Stupid me!!!!!! :cry: I forgot to change the tar command along with the file name! :shock: . I apologize... 8-) I shall fix this.

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

User avatar
Kratos
Posts: 395
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Thu Mar 17, 2016 6:48 pm

I think I fixed it...I cannot actually download the file, so I have no idea what the contents are.

A. You could post the contents of the kodi file
B. Basically, I could guide you through manually.

First:

Code: Select all

apt-get remove libcec-dev -y
apt-get remove libpulseeight-platform-dev -y

echo "deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi" > /etc/apt/sources.list

apt-get update
Extract the file you downloaded (kodi-15.2-jessie-rpb.tar.gz). Now, cd into the kodi folder. Type:

Code: Select all

sudo ./install
Then:

Code: Select all

echo "deb http://ports.ubuntu.com/ wily main restricted universe multiverse" > /etc/apt/sources.list
echo "deb-src http://ports.ubuntu.com/ wily main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://ports.ubuntu.com/ wily-updates main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb-src http://ports.ubuntu.com/ wily-updates main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://ports.ubuntu.com/ wily-security main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb-src http://ports.ubuntu.com/ wily-security main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://ports.ubuntu.com/ wily-backports main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb-src http://ports.ubuntu.com/ wily-backports main restricted universe multiverse" >> /etc/apt/sources.list

apt-get update
Cool desktop setup (I saw the pic on Dropbox :D ).
Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

korrok
Posts: 1
Joined: Wed Apr 06, 2016 8:04 am

Re: Kodi on Ubuntu MATE 15.10

Wed Apr 06, 2016 9:22 am

Hi guys,

I've tried any of your advices from those 3 webpages. But I think I've got a bit lost between several process and advices your provided.

I'm trying to figure out how to install or build kodi 15 on my ubuntu MATE 16.04 in a raspberry Pi3. And I'm stuck here wonderring how you managed to get it to work.

Could you please tell me if I'm wrong.

I should start with the procedure from the README raspberry as greenbag said, and combine this with compiling procedure. But I'm not so good with linux and didn't understood how to combine this, I've just tried to execute commands line from the second procedure and then commands line from the first procedure.

Is that right ?

Gontrop
Posts: 5
Joined: Sun Jan 10, 2016 6:08 pm

Re: Kodi on Ubuntu MATE 15.10

Wed Apr 06, 2016 3:37 pm

korrok wrote:Hi guys,

I've tried any of your advices from those 3 webpages. But I think I've got a bit lost between several process and advices your provided.

I'm trying to figure out how to install or build kodi 15 on my ubuntu MATE 16.04 in a raspberry Pi3. And I'm stuck here wonderring how you managed to get it to work.

Could you please tell me if I'm wrong.

I should start with the procedure from the README raspberry as greenbag said, and combine this with compiling procedure. But I'm not so good with linux and didn't understood how to combine this, I've just tried to execute commands line from the second procedure and then commands line from the first procedure.

Is that right ?

Yep Korrok, I've been watching this post for some days... and tried too... but same as you i lost myself on the post not knowing what to use from it, what script where should i put it, and when to use the commands...

I know that it may be asking a bit too much, but can one of you guys that got it to work, post the sequenced steps to install it?

Thank you so much in advance guys... Your work on the subject has been awesome!

Gontrop

User avatar
Kratos
Posts: 395
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Wed Apr 06, 2016 9:39 pm

I have no idea. You sound almost exactly like me. I have no idea how to build it, and until it is built, I am unable to use Kodi on Ubuntu MATE.

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

greenbag
Posts: 121
Joined: Wed Aug 05, 2015 12:52 am

Re: Kodi on Ubuntu MATE 15.10

Fri Apr 15, 2016 9:16 pm

Just build it from source....

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

sudo apt-get install build-essential make git-core checkinstall

sudo apt-get install libboost1.58-all-dev swig curl libgnutls-dev libxml2-dev libxslt1-dev libfreetype6-dev libfontconfig1-dev libfribidi-dev libmpeg2-4-dev libmad0-dev libjpeg8-dev libsamplerate0-dev libogg-dev libvorbis-dev libflac-dev libtiff5-dev liblzo2-dev cmake zip unzip libsqlite3-dev libpng12-dev libpcre3-dev libjasper-dev libsdl1.2-dev libsdl-image1.2-dev libass-dev libmodplug-dev libcdio-dev libtinyxml2-dev libyajl-dev libgpg-error-dev libgcrypt11-dev libmicrohttpd-dev autoconf libtool autopoint libudev-dev python-dev python-imaging libmysqlclient-dev libcurl4-gnutls-dev libbz2-dev libtinyxml-dev libssh-dev libxrandr-dev libsmbclient-dev libcap-dev gawk gperf debhelper libiso9660-dev liblockdev1-dev ccache git-core checkinstall default-jre doxygen librtmp-dev libnfs-dev libgif-dev libplist-dev libshairplay-dev libbluray-dev libbluray1 libbluetooth-dev uuid-dev

git clone -b Jarvis git://github.com/xbmc/xbmc.git xbmc-Jarvis

git clone --recursive git://github.com/Pulse-Eight/libcec.git

cd libcec/src/platform
mkdir build
cd build
cmake ..
make -j4
sudo make install
cd


cd libcec
mkdir build
cd build
cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib ..
make -j4
sudo make install
cd


cd xbmc/lib/taglib
make -j4
sudo make install
cd


sudo make -C xbmc/tools/depends/target/libdcadec PREFIX=/usr/local

sudo make -C tools/depends/target/crossguid PREFIX=/usr/local


cd xbmc-Jarvis/project

git clone -b Jarvis https://github.com/kodi-pvr/pvr.hts.git

cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc-Jarvis/addons -DPACKAGE_ZIP=1 ../../xbmc-Jarvis/project/cmake/addons

make -j4


cd ..

./bootstrap

CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" FFMPEG_OPTS="--cpu=cortex-a7" ./configure --disable-gl --enable-gles --with-platform=raspberry-pi --disable-x11 --disable-vaapi --disable-vdpau --disable-avahi --enable-libcec --disable-pulse --enable-optical-drive --enable-dvdcss --enable-libusb --disable-vtbdecoder --enable-alsa --enable-player=omxplayer --enable-libbluray --with-ffmpeg=auto --disable-debug


make -j4

strip kodi.bin

sudo checkinstall

I did it with Mate installed to external hard drive, and an 8gb usb stick turned into swap. I also started by installing Synaptic, and enabling all the repos.. especially the source repos. On Raspbian, the Pi freezes using make -j4, but in both the Ubuntus.. Mate and 14.04.. I've never had it freeze yet. You might want to disable cpu frequency scaling though.. set at 900 mhz, and select "performance" over "ondemand". The entire build takes about 4 hours.. including installing the compiler stuffs. A rebuild takes less than 2 hours. Quicker than cross-compiling.

Gontrop
Posts: 5
Joined: Sun Jan 10, 2016 6:08 pm

Re: Kodi on Ubuntu MATE 15.10

Sat Apr 16, 2016 12:07 am

Hi greenbag,

Thank you for your post mate, you are awesome on putting every step there.
I tried it but it did not work.
I have a Raspberry PI 3 and I don't know if it's that the problem.
I noticed some errors that I will correct later on this post.
I manage to do everything almost until the end and i get an error on the ./configure part.
First the errors: Please correct me if I'm wrong mate

Line 37:
Were it's written "sudo make -C xbmc/tools/depends/target/libdcadec PREFIX=/usr/local"
Should be: "sudo make -C xbmc-Jarvis/tools/depends/target/libdcadec PREFIX=/usr/local"

Line 39:
Were it's written "sudo make -C tools/depends/target/crossguid PREFIX=/usr/local"
Should be: "sudo make -C xbmc-Jarvis/tools/depends/target/crossguid PREFIX=/usr/local"

With that corrected I did everything ok untill the flags and the ./configure
It was all going fine until i get the error on the text file that I attach as a zip because forum does not let me attach a txt file. After that was only left the 3 ending commands.
Some help would be so appreciated although you've done already so much!


Now the commands corrected:

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

sudo apt-get install build-essential make git-core checkinstall

sudo apt-get install libboost1.58-all-dev swig curl libgnutls-dev libxml2-dev libxslt1-dev libfreetype6-dev libfontconfig1-dev libfribidi-dev libmpeg2-4-dev libmad0-dev libjpeg8-dev libsamplerate0-dev libogg-dev libvorbis-dev libflac-dev libtiff5-dev liblzo2-dev cmake zip unzip libsqlite3-dev libpng12-dev libpcre3-dev libjasper-dev libsdl1.2-dev libsdl-image1.2-dev libass-dev libmodplug-dev libcdio-dev libtinyxml2-dev libyajl-dev libgpg-error-dev libgcrypt11-dev libmicrohttpd-dev autoconf libtool autopoint libudev-dev python-dev python-imaging libmysqlclient-dev libcurl4-gnutls-dev libbz2-dev libtinyxml-dev libssh-dev libxrandr-dev libsmbclient-dev libcap-dev gawk gperf debhelper libiso9660-dev liblockdev1-dev ccache git-core checkinstall default-jre doxygen librtmp-dev libnfs-dev libgif-dev libplist-dev libshairplay-dev libbluray-dev libbluray1 libbluetooth-dev uuid-dev

git clone -b Jarvis git://github.com/xbmc/xbmc.git xbmc-Jarvis

git clone --recursive git://github.com/Pulse-Eight/libcec.git

cd libcec/src/platform
mkdir build
cd build
cmake ..
make -j4
sudo make install
cd


cd libcec
mkdir build
cd build
cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib ..
make -j4
sudo make install
cd


cd xbmc/lib/taglib
make -j4
sudo make install
cd


sudo make -C xbmc-Jarvis/tools/depends/target/libdcadec PREFIX=/usr/local

sudo make -C xbmc-Jarvis/tools/depends/target/crossguid PREFIX=/usr/local


cd xbmc-Jarvis/project

git clone -b Jarvis https://github.com/kodi-pvr/pvr.hts.git

cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc-Jarvis/addons -DPACKAGE_ZIP=1 ../../xbmc-Jarvis/project/cmake/addons

make -j4


cd ..

./bootstrap

CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" FFMPEG_OPTS="--cpu=cortex-a7" ./configure --disable-gl --enable-gles --with-platform=raspberry-pi --disable-x11 --disable-vaapi --disable-vdpau --disable-avahi --enable-libcec --disable-pulse --enable-optical-drive --enable-dvdcss --enable-libusb --disable-vtbdecoder --enable-alsa --enable-player=omxplayer --enable-libbluray --with-ffmpeg=auto


make -j4

strip kodi.bin
sudo checkinstall
Attachments
errorkodi.zip
(3.02 KiB) Downloaded 505 times

User avatar
Kratos
Posts: 395
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Mon Apr 18, 2016 6:43 pm

greenbag wrote:Just build it from source....

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

sudo apt-get install build-essential make git-core checkinstall

sudo apt-get install libboost1.58-all-dev swig curl libgnutls-dev libxml2-dev libxslt1-dev libfreetype6-dev libfontconfig1-dev libfribidi-dev libmpeg2-4-dev libmad0-dev libjpeg8-dev libsamplerate0-dev libogg-dev libvorbis-dev libflac-dev libtiff5-dev liblzo2-dev cmake zip unzip libsqlite3-dev libpng12-dev libpcre3-dev libjasper-dev libsdl1.2-dev libsdl-image1.2-dev libass-dev libmodplug-dev libcdio-dev libtinyxml2-dev libyajl-dev libgpg-error-dev libgcrypt11-dev libmicrohttpd-dev autoconf libtool autopoint libudev-dev python-dev python-imaging libmysqlclient-dev libcurl4-gnutls-dev libbz2-dev libtinyxml-dev libssh-dev libxrandr-dev libsmbclient-dev libcap-dev gawk gperf debhelper libiso9660-dev liblockdev1-dev ccache git-core checkinstall default-jre doxygen librtmp-dev libnfs-dev libgif-dev libplist-dev libshairplay-dev libbluray-dev libbluray1 libbluetooth-dev uuid-dev

git clone -b Jarvis git://github.com/xbmc/xbmc.git xbmc-Jarvis

git clone --recursive git://github.com/Pulse-Eight/libcec.git

cd libcec/src/platform
mkdir build
cd build
cmake ..
make -j4
sudo make install
cd


cd libcec
mkdir build
cd build
cmake -DRPI_INCLUDE_DIR=/opt/vc/include -DRPI_LIB_DIR=/opt/vc/lib ..
make -j4
sudo make install
cd


cd xbmc/lib/taglib
make -j4
sudo make install
cd


sudo make -C xbmc/tools/depends/target/libdcadec PREFIX=/usr/local

sudo make -C tools/depends/target/crossguid PREFIX=/usr/local


cd xbmc-Jarvis/project

git clone -b Jarvis https://github.com/kodi-pvr/pvr.hts.git

cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc-Jarvis/addons -DPACKAGE_ZIP=1 ../../xbmc-Jarvis/project/cmake/addons

make -j4


cd ..

./bootstrap

CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" FFMPEG_OPTS="--cpu=cortex-a7" ./configure --disable-gl --enable-gles --with-platform=raspberry-pi --disable-x11 --disable-vaapi --disable-vdpau --disable-avahi --enable-libcec --disable-pulse --enable-optical-drive --enable-dvdcss --enable-libusb --disable-vtbdecoder --enable-alsa --enable-player=omxplayer --enable-libbluray --with-ffmpeg=auto --disable-debug


make -j4

strip kodi.bin

sudo checkinstall

I did it with Mate installed to external hard drive, and an 8gb usb stick turned into swap. I also started by installing Synaptic, and enabling all the repos.. especially the source repos. On Raspbian, the Pi freezes using make -j4, but in both the Ubuntus.. Mate and 14.04.. I've never had it freeze yet. You might want to disable cpu frequency scaling though.. set at 900 mhz, and select "performance" over "ondemand". The entire build takes about 4 hours.. including installing the compiler stuffs. A rebuild takes less than 2 hours. Quicker than cross-compiling.
Would you mind posting the .deb package for the rest of us? This is truly awesome.

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

User avatar
Kratos
Posts: 395
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Wed Apr 20, 2016 2:36 pm

I am compiling as I speak folks. We shall see how it goes.

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

Gontrop
Posts: 5
Joined: Sun Jan 10, 2016 6:08 pm

Re: Kodi on Ubuntu MATE 15.10

Wed Apr 20, 2016 3:36 pm

Kratos wrote:I am compiling as I speak folks. We shall see how it goes.

Kratos
Keep us posted Kratos!
8-)

User avatar
Kratos
Posts: 395
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Wed Apr 20, 2016 6:03 pm

It always gets to the kodi.bin compile part, but it then runs out of memory. The whole process crashes. I was using the make -j4 command. Even changing the command to make -j1 did nothing to help. Does anyone know how to avoid the memory issue?

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

User avatar
Kratos
Posts: 395
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Wed Apr 20, 2016 8:51 pm

OK, so I successfully built it. It works. Now how do I make a .deb file for all of you guys to install?

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

Gontrop
Posts: 5
Joined: Sun Jan 10, 2016 6:08 pm

Re: Kodi on Ubuntu MATE 15.10

Wed Apr 20, 2016 8:53 pm

Hey Kratos,

I don't know mate, I know little of linux mate...

We shall wait for one of the savys to answer mate... I'm glad you made it though... i'm still stuck on that error...
Btw, did you get the errors that I had to correct too?

User avatar
Kratos
Posts: 395
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Wed Apr 20, 2016 8:57 pm

Yes, I did have those errors. About the CFLAGS error, you just had to set shairplay as disabled. I am working on the .deb file thing as we speak...

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

Gontrop
Posts: 5
Joined: Sun Jan 10, 2016 6:08 pm

Re: Kodi on Ubuntu MATE 15.10

Wed Apr 20, 2016 9:29 pm

Kratos wrote:Yes, I did have those errors. About the CFLAGS error, you just had to set shairplay as disabled. I am working on the .deb file thing as we speak...

Kratos
I've added --disable-libshairplay at the ./configure but still gives me the same error... :(

This is so frustrating...

User avatar
Kratos
Posts: 395
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Wed Apr 20, 2016 9:52 pm

You have to use:

Code: Select all

sudo CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" FFMPEG_OPTS="--cpu=cortex-a7" ./configure --disable-gl --enable-gles --with-platform=raspberry-pi --disable-x11 --disable-vaapi --disable-vdpau --disable-avahi --enable-libcec --disable-pulse --enable-optical-drive --enable-dvdcss --enable-libusb --disable-vtbdecoder --enable-alsa --enable-player=omxplayer --enable-libbluray --disable-airplay --disable-airtunes --with-ffmpeg=auto
Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

User avatar
Kratos
Posts: 395
Joined: Sun Apr 12, 2015 12:41 pm

Re: Kodi on Ubuntu MATE 15.10

Thu Apr 21, 2016 2:24 pm

It works until the checkinstall part. It can't find some language packs, so it exits. Kodi works great, but I can't figure out how to make a .deb file for you guys.

Kratos
I have posted mostly with a Pi 2 running either Ubuntu MATE, or Raspbian.

Return to “Media centres”