(2016-04-07, 17:21)rucksman Wrote: Failed... I started the whole process from scratch including a fresh installation of my VM, but unfortunately my kodi.bin ist still 371MB in size (I tried to insert --disable-debug in the makefile that is used in the last make, but obviously this was not the correct place). The biggest problem ist that Kodi won't start on the raspberry. It shows the Kodi logo and then nothing happens anymore. If I check the raspberry via SSH with top there is no load, nothing. It just shows the logo. I think that was it for me. Spent so many hours without getting further, frustrating. Maybe I give it a last try with compiling on the raspberry itself, although I do not want to do it on the SD card (read reports that compiling detroys SD cards due to too many writes). I have to find a way to use a HDD for this.
Are you running it from a terminal? What's the output saying once you have your desktop back? If it's just a black screen... is it copying files on the initial boot, and you didn't wait long enough, or is it crashing.. leaving you with a black desktop? If the latter.. when stuck with a black desktop, [ctrl]+[alt]+[f8] followed by [ctrl]+[alt]+[f7]. Not sure why, but that brings back the desktop. If the Pi isn't frozen that is.
I gave up on cross-compiling.. I finally figured out Ubuntu 14.04 using xubuntu-desktop... damn config flags were /opt/vc/include/~ for every other distro.. including Ubuntu Mate, but they seem to be just /usr/include/~ in 14.04 LTS. I even got my libbluray built in. Added libraspberrypi0 to the initial Ubuntu install package, but stayed away from libraspberrypi-bin-nonfree.. it has stuffs that cause some needed dependencies from installing completely, as their own dependencies will clash with it installed. Weirdest thing though... after a fresh install of Ubuntu, followed by apt-get upgrade and apt-get dist-upgrade, with all but the testing update repositories enabled, I couldn't find Kodi in Synaptic.. or even xbmc. But about 30 minutes after installing from a compile... Ubuntu update manager pops up, saying it has updates for Kodi... lol. I'll have to turn whatever repo got triggered off.
A complete build.. including manually building some dependencies that I couldn't install via apt (found in /xbmc/tools/depends/target), came to a little more than 4 hours using make -j4. That's at 900mhz, gpu_mem=256.. no overclock. Added a 8gb usb stick formatted to swap partition.. the whole thing, as I was lazy and didn't want to partition it smaller. Can't use the rest of it anyway. Swap peaked about 600mb's, but usually about less than 60mb for most of the build. And I installed the os to a 1TB WD Passport usb hard drive... all connected through a powered usb hub. On Raspbian.. the unit would literally freeze using -j4. On Ubuntu.. even Mate.. it's using nearly all the Pi's resources, but only during the actual build of kodi.bin. But it doesn't freeze up the system either.
4 hours first build.. less than 2 hours for a rebuild with modifications.
If you do try with a hard drive or usb stick.. it's better to install the os to the stick and run it from there, rather than use the drive/stick as storage to build on. I ran into permissions issues doing that.. telling me it couldn't find libraries or files I knew for a fact were installed. Just doing ./bootstrap on a separate drive gave it fits..lol. Said I didn't have permission. So I sh'd it.. ran through, but that's where errors popped up later in the build. Easiest way to install to a drive or stick, is to write the image to both the microsd and the hard drive/usb stick. You then edit /boot/cmdline.txt on the sdcard, pointing it to /dev/sda2.. the root partition of the image on the external drive. You also edit /etc/fstab, commenting out the /dev/mmcblk0p2 line, and add your /dev/sda2 with the rest of the data in that line. The microsd will now boot the external drive from the root partition. Reboot and type dh -f to see what it spits out... it should show the size of the external drive.