(2016-04-04, 12:47)mk01 Wrote: [ -> ]@greenbag
with
Code:
mkdir XXXXX/root-kodi/
make install DESTDIR=XXXXX/root-kodi/
where the actual dir and environment (build machine) is still the one you used to build it.
then XXXXX/root-kodi will be "rootfs" of the installation (so meaning "/" on RPI). what you find there - is going to be copied to / on target device.
Thanks for the reply.
I'm still a little lost. Following the directions, even on the same Ubuntu release, the build was in /opt, and files were copied to:
Code:
$ 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 -j4
$ 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 -j4
$ sudo make install
-----------------------
Kodi built successfully
-----------------------
greenbag@lotusland:~/xbmc$ sudo make install
[sudo] password for greenbag:
Copying kodi binary to /opt/xbmc-bcm/xbmc-dbg/arm-linux-gnueabihf/lib/kodi/
You can run kodi with the command 'kodi'
Copying support and legal files...
Done!
Copying system files to /opt/xbmc-bcm/xbmc-dbg/arm-linux-gnueabihf/share/kodi
Copying bindings to /opt/xbmc-bcm/xbmc-dbg/arm-linux-gnueabihf/include/kodi
I then looked at where everything went from an install from a compile on the Pi..
/opt/xbmc-bcm/xbmc-dbg/arm-linux-gnueabihf/share/kodi is the .kodi directory that goes in /home/username (addons, media, system, userdata)
/opt/xbmc-bcm/xbmc-dbg/arm-linux-gnueabihf/bin/kodi is the shell script that goes in /usr/local/bin
/opt/xbmc-bcm/xbmc-dbg/arm-linux-gnueabihf/include/kodi contains a bunch of *.h files that go to /usr/local/include
/opt/xbmc-bcm/xbmc-dbg/arm-linux-gnueabihf/lib/kodi contains kodi.bin, /addons, /system and some *.cmake files.... I think I just found at least 1 error.. I only copied kodi.bin, not even the directory. That might be the system files it's looking for. Whoops.
Also.. I just noticed 3 symlinked xbmc folder in the build directory.. are they to be copied over as well? There's also xbmc, xbmc-standalone, xbmc.desktop. I only copied the kodi* files.
/opt/xbmc-bcm/xbmc-dbg/arm-linux-gnueabihf/include/xbmc
/opt/xbmc-bcm/xbmc-dbg/arm-linux-gnueabihf/lib/xbmc
/opt/xbmc-bcm/xbmc-dbg/arm-linux-gnueabihf/share/xbmc
The /opt/xbmc-bcm/xbmc-dbg/arm-linux-gnueabihf/bin/kodi shell script is prefixed to...
Code:
APP=Kodi
bin_name=kodi
SAVED_ARGS="$@"
prefix="/opt/xbmc-bcm/xbmc-dbg/arm-linux-gnueabihf"
exec_prefix="/opt/xbmc-bcm/xbmc-dbg/arm-linux-gnueabihf"
datarootdir="${prefix}/share"
LIBDIR="${exec_prefix}/lib"
CRASHLOG_DIR=${CRASHLOG_DIR:-$HOME}
USERDATA_DIR="${HOME}/.${bin_name}"
Does that need to be changed as well? Did I just go about this the wrong way to begin with?