Error when compiling latest Kodi für Raspberry 2
#1
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
Reply
#2
kodi is now built with cmake (the depends are built using makefiles as before)
https://github.com/xbmc/xbmc/tree/master/cmake
Reply
#3
Thanks for your quick answer. It seems that the instructions in https://github.com/xbmc/xbmc/blob/master...aspberrypi 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!
Reply
#4
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?
Reply
#5
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...aspberrypi

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?
Reply
#6
What distro are you running? See the PKGBUILD for Arch ARM which can help you: https://github.com/archlinuxarm/PKGBUILD...p/PKGBUILD
Need help programming a Streamzap remote?
Reply
#7
(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/PKGBUILD...p/PKGBUILD

I am running the latest raspian ...
Reply
#8
Use the instructions from : https://github.com/xbmc/xbmc/blob/master...ADME.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.
Reply
#9
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/kry...ackages.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.
Reply
#10
Thanks rascas Big Grin
Reply
#11
(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....
Reply
#12
(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.
Reply
#13
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 ...
Reply
#14
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 ?
Reply
#15
(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,,,
Reply

Logout Mark Read Team Forum Stats Members Help
Error when compiling latest Kodi für Raspberry 20