Kodi Community Forum
Error when compiling latest Kodi für Raspberry 2 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Raspberry Pi (https://forum.kodi.tv/forumdisplay.php?fid=166)
+---- Thread: Error when compiling latest Kodi für Raspberry 2 (/showthread.php?tid=306344)

Pages: 1 2 3 4 5 6


Error when compiling latest Kodi für Raspberry 2 - rucksman - 2017-02-08

I did successfully cross-compile Jarvis for the raspberry and wanted to compile v17 now. Everything works find until I do my CONFIG_EXTRA and then make -C tools/depends/target/xbmc:
Code:
make: *** tools/depends/target/xbmc: Datei oder Verzeichnis nicht gefunden.  Schluss.
And yes, there is no directory "xbmc" in "target", and of course there is no makefile in it. "make" after the PATH command finished without any problem.

What am I missing hereHuh


RE: Error when compiling latest Kodi für Raspberry 2 - popcornmix - 2017-02-08

kodi is now built with cmake (the depends are built using makefiles as before)
https://github.com/xbmc/xbmc/tree/master/cmake


RE: Error when compiling latest Kodi für Raspberry 2 - rucksman - 2017-02-09

Thanks for your quick answer. It seems that the instructions in https://github.com/xbmc/xbmc/blob/master/docs/README.raspberrypi are not up to date as cmake is not mentioned there. Where can I find more information on how to build Kodi with cmake in Ubuntu for my Raspberry 2? Thanks for helping!


RE: Error when compiling latest Kodi für Raspberry 2 - rucksman - 2017-02-09

I guess I was able to compile Kodi, at least a kodi.bin was generated. What do I have to do to generate an installable (deb) file which I can install on the Raspberry?


RE: Error when compiling latest Kodi für Raspberry 2 - rucksman - 2017-03-21

After some time I tried to compile Krypton again, this time directly on the raspberry. I followed the guide that can be found here: https://github.com/xbmc/xbmc/blob/master/docs/README.raspberrypi

After "make" for depends I get:
Code:
make[5]: Entering directory '/home/pi/xbmc/tools/depends/native/cmake-native/i686-linux-native'
Scanning dependencies of target cmake
make[5]: Leaving directory '/home/pi/xbmc/tools/depends/native/cmake-native/i686-linux-native'
make[5]: Entering directory '/home/pi/xbmc/tools/depends/native/cmake-native/i686-linux-native'
[ 93%] Building CXX object Source/CMakeFiles/cmake.dir/cmakemain.cxx.o
[ 93%] Building CXX object Source/CMakeFiles/cmake.dir/cmcmd.cxx.o
[ 93%] Linking CXX executable ../bin/cmake
/opt/xbmc-bcm/xbmc-dbg/i686-linux-gnu-native/lib/libz.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Source/CMakeFiles/cmake.dir/build.make:130: recipe for target 'bin/cmake' failed
make[5]: *** [bin/cmake] Error 1
make[5]: Leaving directory '/home/pi/xbmc/tools/depends/native/cmake-native/i686-linux-native'
CMakeFiles/Makefile2:1872: recipe for target 'Source/CMakeFiles/cmake.dir/all' failed
make[4]: *** [Source/CMakeFiles/cmake.dir/all] Error 2
make[4]: Leaving directory '/home/pi/xbmc/tools/depends/native/cmake-native/i686-linux-native'
Makefile:160: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/pi/xbmc/tools/depends/native/cmake-native/i686-linux-native'
Makefile:39: recipe for target 'i686-linux-native/bin/cmake' failed
make[2]: *** [i686-linux-native/bin/cmake] Error 2
make[2]: Leaving directory '/home/pi/xbmc/tools/depends/native/cmake-native'
Makefile:47: recipe for target 'cmake-native' failed
make[1]: *** [cmake-native] Error 2
make[1]: Leaving directory '/home/pi/xbmc/tools/depends/native'
Makefile:8: recipe for target 'native/.installed-i686-linux-native' failed
make: *** [native/.installed-i686-linux-native] Error 2

Is there somewhere a reliable guide on how to compile Krypton for the Raspberry Pi 2?


RE: Error when compiling latest Kodi für Raspberry 2 - graysky - 2017-03-21

What distro are you running? See the PKGBUILD for Arch ARM which can help you: https://github.com/archlinuxarm/PKGBUILDs/blob/master/alarm/kodi-rbp/PKGBUILD


RE: Error when compiling latest Kodi für Raspberry 2 - rucksman - 2017-03-21

(2017-03-21, 21:40)graysky Wrote: What distro are you running? See the PKGBUILD for Arch ARM which can help you: https://github.com/archlinuxarm/PKGBUILDs/blob/master/alarm/kodi-rbp/PKGBUILD

I am running the latest raspian ...


RE: Error when compiling latest Kodi für Raspberry 2 - KlotX - 2017-03-22

Use the instructions from : https://github.com/xbmc/xbmc/blob/master/docs/README.linux

Something like:
Code:
$ mkdir kodi-build && cd kodi-build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
$ cmake --build . -- VERBOSE=1

You can then costumize as you please with the -D... options.

I'm actually writing a blog post about how to compile it from scratch on raspbian, but I'm not close to be finished with it.


RE: Error when compiling latest Kodi für Raspberry 2 - rascas - 2017-03-22

And until KlotX doesn't finish is blog post, you can take a look at the script we use to build Debian packages for Raspbian, in Raspbian (not cross-compile):
https://github.com/nsenica/xbmc/blob/krypton_new/tools/Linux/packaging/build_rpi_debian_packages.sh

The branch is the upstream Kodi, plus popcornmix_rbp_backports patches/optimizations and only a few patches to work better on Raspbian.
PS: It only builds Kodi packages, you have to build and install all dependencies needed first.


RE: Error when compiling latest Kodi für Raspberry 2 - KlotX - 2017-03-22

Thanks rascas Big Grin


RE: Error when compiling latest Kodi für Raspberry 2 - rucksman - 2017-03-22

(2017-03-22, 17:32)rascas Wrote: PS: It only builds Kodi packages, you have to build and install all dependencies needed first.

And this is the problem, because as you might see from my post yesterday I am not able to build the dependencies....


RE: Error when compiling latest Kodi für Raspberry 2 - rascas - 2017-03-22

(2017-03-22, 18:58)rucksman Wrote:
(2017-03-22, 17:32)rascas Wrote: PS: It only builds Kodi packages, you have to build and install all dependencies needed first.

And this is the problem, because as you might see from my post yesterday I am not able to build the dependencies....

But that is maybe because you are using an old tutorial, use cmake first, like said previously.


RE: Error when compiling latest Kodi für Raspberry 2 - rucksman - 2017-03-22

But popcornmix said:
(2017-02-08, 19:40)popcornmix Wrote: kodi is now built with cmake (the depends are built using makefiles as before)
https://github.com/xbmc/xbmc/tree/master/cmake

So how should I use cmake for the depends when still make shoul dbe used? I am confused ...


RE: Error when compiling latest Kodi für Raspberry 2 - KlotX - 2017-03-22

Unless you need anything in specific from depends, you don't need to compile it by yourself.

Using the script mentioned above by rascas will produce working packages/binaries of Kodi.

Do you need something else ?


RE: Error when compiling latest Kodi für Raspberry 2 - rucksman - 2017-03-23

(2017-03-22, 21:46)KlotX Wrote: Do you need something else ?

To be honest the only reason for me trying to compile Kodi myself is that I need the Hifiberry patch. Otherwise I would be happy with the versions that can be found in the Raspian repository,,,