how to actually install Kodi after cross-compiling?
#46
Well, almost... Kodi built successfully, but after sudo checkinstall:

Code:
Copying kodi binary to /usr/local/lib/kodi/
You can run kodi with the command 'kodi'
Copying support and legal files...
install: das Verzeichnis „/usr/local/share/doc“ kann nicht angelegt werden: Datei oder Verzeichnis nicht gefunden
Makefile:515: recipe for target 'install-datas' failed
make: *** [install-datas] Error 1

**** Installation fehlgeschlagen. Breche Paket-Erzeugung ab.

Räume auf...OK

Auf Wiedersehen!

Right now I have no idea why /usr/local/share/doc was not found...

And kodi.bin is again 370MB in size although I used the flag --disable-debug.
Reply
#47
lol... can you translate? Tongue

Is it going through countries, not finding stuff? I choose no on documentation, then specify version number (16.1.001), then press enter. It builds, then fails with the countries, saying it can't find something... but if I leave it alone, about 10 to 15 minutes later it's stripping the file, then creates the *.deb package. It just looks like it errored out.. but no $ prompt. At least on my end.

370mb's is fine. There's a lot of stuff built into it.

I'm about 15 minutes away from bootstrapping.. just a few more essentials to install first. I actually got libbluray to build and install in Raspbian.. not sure why I had so much trouble before. Needed to remove libbluray stuffs from the apt list, sudo apt-get install ANT, download and build libbluray-0.8.1 as described above.
Reply
#48
Translation: (I get same error)
Code:
Copying kodi binary to /usr/local/lib/kodi/
You can run kodi with the command 'kodi'
Copying support and legal files...                                            
install: cannot create directory ‘/usr/local/share/doc’: No such file or directory
Makefile:515: recipe for target 'install-datas' failed
make: *** [install-datas] Error 1

****  Installation failed. Aborting package creation.

Cleaning up...OK

Bye.

This seems to get past that (and a few others that are needed):
Code:
sudo mkdir -p /usr/local/share/doc /usr/local/share/icons/hicolor/16x16 /usr/local/share/icons/hicolor/22x22 /usr/local/share/icons/hicolor/24x24 /usr/local/share/icons/hicolor/32x32
(and probably 48x48 64x64 128x128 256x256)
Reply
#49
ok... I just got the same error. That didn't happen in Ubuntu. Tongue

Code:
========================= Installation results ===========================
Copying kodi binary to /usr/local/lib/kodi/
You can run kodi with the command 'kodi'
Copying support and legal files...                                            
install: cannot create directory ‘/usr/local/share/doc’: No such file or directory
Makefile:515: recipe for target 'install-datas' failed
make: *** [install-datas] Error 1

****  Installation failed. Aborting package creation.

Cleaning up...OK

Bye.

I wound up just doing sudo make install.

The entire build was quicker in Ubuntu as well.. and it doesn't freeze on me. It froze on me in Raspbian.. had to use make -j3.

From start to finish...


Wrote image to microsd as well as external hard drive, and edited cmdline.txt, config.txt:

/boot/cmdline.txt:

Code:
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/sda2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

/boot/config.txt:

Code:
max_usb_current=1


Formatted usb stick to swap and inserted to powered hub. Connected external drive to hub as well, then connected hub to Pi.

Upon fist boot, /etc/fstab gets edited to add the swap partition.. I delete the dphys-swapfile in exchange for an actual partition. Personal choice.

I also modify ffmpeg to add a few codecs.. specifically, libspeex.. for a certain adult plugin that streams live cams. Tongue Again.. personal choice.


Edit and modify as needed....

Code:
1) set cpu to 900, leave mem at 64, set local, keyboard and such - reboot
2) sudo apt-get remove dphys-swapfile
3) sudo nano /etc/fstab

proc            /proc           proc    defaults          0       0
/dev/mmcblk0p1  /boot           vfat    defaults          0       2
/dev/sda2       /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
/dev/sdb1       none            swap    sw              0       0


4) reboot

5) verify swap by typing:

free mem

6) sudo apt-get install synaptic
7) sudo synaptic

- settings/repositories - enable all - close synaptic

8) sudo apt-get update
9) sudo apt-get upgrade
10) sudo apt-get dist-upgrade
11) sudo rpi-update
12) reboot


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

14) sudo apt-get install libboost1.50-all-dev swig curl libxml2-dev libxslt1-dev libfreetype6-dev libfontconfig1-dev libfribidi-dev libmpeg2-4-dev libmad0-dev libjpeg-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 libgnutls28-dev uuid-dev doxygen librtmp-dev libnfs-dev libgif-dev libplist-dev libshairplay-dev libbluetooth-dev ANT openjdk-7-jdk gdc fpc libvdpau1 libvdpau-dev libdvdread-dev


15) grab libbluray-0.8.1 and extract to home folder

https://download.videolan.org/pub/videolan/libbluray/0.8.1/libbluray-0.8.1.tar.bz2

16) cd libbluray*

./bootstrap
./configure
make -j4
sudo make install

  Summary:
  --------
  BD-J support:                  yes
  BD-J type:                     j2se
  Font support (freetype2):      yes
  Use system fonts (fontconfig): yes
  Metadata support (libxml2):    yes
  UDF filesystem support:        no
  Build examples:                yes


17) cd

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

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

cd libcec/src/platform
mkdir build
cd build
cmake ..
make
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


20)

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


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

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


23) cd project

24) 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/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons

make -j4

cd ..


25) ** optional **

sudo apt-get install libspeex-dev libvpx-dev libx264-dev libxvidcore-dev

edit xbmc/tools/depends/target/ffmpeg/autobuild.sh

add:

    --enable-libspeex \
    --enable-libvpx \
    --enable-libx264 \
    --enable-libxvid \


26) ./bootstrap

27) 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 --enable-avahi --enable-libcec --disable-pulse --enable-optical-drive --enable-dvdcss --enable-libusb --disable-vtbdecoder --enable-alsa --enable-player=omxplayer --enable-libbluray --enable-asap-codec --with-ffmpeg=auto

28) make -j3

29) sudo make install



------------------------
  Kodi Configuration:
------------------------
  Kodi Version:    16.1-RC3
  git Rev.:    20160407-2baa512
  Debugging:    Yes
  Profiling:    No
  Optimization:    Yes
  SWIG Available:    Yes
  JRE Available:    Yes
  Doxygen Available:    Yes
  Crosscomp.:    No
  target ARCH:    arm
  target CPU:    arm1176jzf-s
  OpenGLES:    Yes
  ALSA:        Yes
  DBUS:        Yes
  VDPAU:    No
  VAAPI:    No
  VTBDecoder:    No
  OpenMax:    No
  Joystick:    No
  Touch skin:    No
  X11:        No
  Wayland:    No
  Bluray:    Yes
  TexturePacker:Yes
  MID Support:    No
  ccache:    No
  ALSA Support:    Yes
  PulseAudio:    No
  DVDCSS:    Yes
  Google Test Framework Configured:    Yes
  Google Breakpad Configured:    No
  Avahi:    Yes
  mDNSEmbedded:    No
  Non-free:    Yes
  ASAP Codec:    Yes
  MySQL:    Yes
  Webserver:    Yes
  libssh support:    Yes
  libRTMP support:    Yes
  libsmbclient support:    Yes
  libnfs client support:Yes
  libgif support:    Yes
  AirPlay support:    Yes
  AirTunes support:    No
  UPnP support:        Yes
  Optical drive:    Yes
  libudev support:    Yes
  libusb support:    No
  libcec support:    Yes
  libcap support:    Yes
  additional players:    Yes, omxplayer
  additional codecs:    No
  prefix:    /usr/local
------------------------



kodi.bin = 269mb



30) sudo apt-get install liburiparser-dev libavcodec-dev libavformat-dev libswscale-dev libavresample-dev libhdhomerun-dev dvb-apps libkqueue-dev

31) wget https://github.com/tvheadend/tvheadend/archive/v4.0.8.tar.gz


- extract to home directory

32) cd tvheadend*

33) ./Autobuild.sh

34) cd

35) delete tvheadend-dbg* file then

sudo dpkg -i tvheadend*

or

sudo dpkg -i tvheadend_0.0.0~unknown_armhf.deb

36) create user and password

37) start kodi from terminal




edit:

I should mention.. although vdpau is disabled in the config line, libvdpau1 is already installed, so in Ubuntu I installed the *-dev as well. Even though I didn't enable it in Ubuntu either, it reports that it's supported.. but says it's not in Raspbian. Must be a version issue. The reason I installed it to begin with, was without it, certain 1080i ATSC stations would crash Kodi if deinterlacing was even set to auto. With libvdpau-dev installed, I noticed a bunch of codecs linked to vdpau being built in ffmpeg, and those stations I had issues with, are smooth as silk. Whether it be coincidence or not.. I left it in. Tongue

Also.. this build I had the swap on a separate drive. That's because the external hard drive is only 5400 rpm, and I thought the usb stick would be quicker. I've moved the swap to the tail end of the Sandisk ssd I just picked up. I highly recommend one of these units.. the build went by so much faster. Hell.. the entire system's so much faster. Smile
Reply
#50
So today I tried my own Kodi build. It started and after I few seconds I had the usual screen - success so far. I was able to select my hifiberry as a passthrough device (due to the patch I added - main reason for self-compiling) - again success.

BUT: Videos do not play. After selecting a video I can only hear sound for a few seconds, then it stops. There is no video at all, the screen just stays the same (its not black or freezes or something, just stays the same as when selecting the video).

Videos are on an external HDD. The same setup works with a standard Kodi installation (from official repository).

Any ideas?
Reply
#51
Did you increase gpu_mem? (128 is the minimum and 256 is recommended for Pi2/Pi3)
If you have then post a debug log (wiki)
Reply
#52
Thanks, that was it. Funny enough I copied config.txt from my working SD Card into the new card which I used for my own build and there was no gpu_mem=256 in this config.txt. Why it did work with the old setup: no idea. Anyway, now I only have to see why I can't access my external HDD from Kodi (some rights issues obviously)...
Reply
#53
Why did you need to patch for the HiFiBerry? I have the Dac+, and all it needed was a few lines added here and a few lines blacklisted there. That's done with the standard Rasbian install.

Code:
https://www.hifiberry.com/guides/hifiberry-software-configuration/

Setting it up for OpenELEC was similar.
Reply
#54
There is a problem with the Digi+ and DTS passthrough (see my thread here: http://forum.kodi.tv/showthread.php?tid=261778). The Digi+ is not recognized correctly as a IEC958 device and therefore cannot be selected in Kodi as a passthrough device. There is an existing patch which did not and will not make it into the official Kodi releases. OSMC (and probably OpenELEC) have integrated this patch into their official releases, but both are no option for me. The guys at Hifiberry do have a very limited interest in fixing their kernel driver (which would of course be the correct solution). This is what they said: "We might look into this at some time, but is has no high priority as there are not many people around that want to use Kodi on a plain Raspbian."
Reply
#55
OK.. the Digi+. I've seen similar posts about the issue. I just have the Dac+.. no passthrough to begin with. Tongue
Reply
#56
Still wondering about the size. The package offered here (https://www.raspberrypi.org/forums/viewt...p?t=109088) is just 20MB in total, and the unpacked kodi.bin roughly 30MB whereas mine is ten times the size. Weird...
Reply
#57
(2016-04-15, 18:05)rucksman Wrote: Still wondering about the size. The package offered here (https://www.raspberrypi.org/forums/viewt...p?t=109088) is just 20MB in total, and the unpacked kodi.bin roughly 30MB whereas mine is ten times the size. Weird...

Mine's the same. He's using --disable-debug for one thing. It's also got to do with the ffmpeg and how it's built.. ie: static or not. All I see is he used --disable-external-ffmpeg.
Reply
#58
Can also try 'strip kodi.bin' after make. I'm about 30 minutes away from trying that. I think. Tongue
Reply
#59
After:
Code:
--disable-debug
= 85 mb's

Then applied:
Code:
strip kodi.bin
= 23.8 mb's

That's far better than 350 mb's. Tongue I'm just not sure why you'd want to disable debugging... unless that's debugging the compile, and not debugging in Kodi itself.
Reply
#60
I had already used --disable-debug during make, but obviously this did not change anything....
Reply

Logout Mark Read Team Forum Stats Members Help
how to actually install Kodi after cross-compiling?0