ok... I just got the same error. That didn't happen in Ubuntu.
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:
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.
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.
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.