|
xbmc
|
This guide has been tested with openSUSE Tumbleweed x86_64. Please read it in full before you proceed to familiarize yourself with the build procedure.
Several other distributions have specific build guides and a general Linux build guide is also available.
Do not use openSUSE Leap. Wiser people than us decided that in 2018 gcc v4.8.5 is the best stable release openSUSE Leap 42.3 can provide by default. Installing/using another release along side it is a real PITA.
This guide assumes you are using terminal, also known as console, command-line or simply cli. Commands need to be run at the terminal, one at a time and in the provided order.
This is a comment that provides context:
Example: Clone Kodi's current master branch:
Commands that contain strings enclosed in angle brackets denote something you need to change to suit your needs.
Example: Clone Kodi's current Krypton branch:
Several different strategies are used to draw your attention to certain pieces of information. In order of how critical the information is, these items are marked as a note, tip, or warning. For example:
[!NOTE] Linux is user friendly... It's just very particular about who its friends are.
[!TIP] Algorithm is what developers call code they do not want to explain.
[!WARNING] Developers don't change light bulbs. It's a hardware problem.
back to top | back to section top
Make sure git is installed:
Clone Kodi's current master branch:
Add opensuse-multimedia-libs repository because some needed packages are non-OSS:
[!NOTE] A message will ask you to accept the key. Enter
a, the trust always option.
If you get a package not found type of message with the below command, remove the offending package(s) from the install list and reissue the command. Take a note of the missing dependencies and, after a successful step completion, build the missing dependencies manually.
[!NOTE] Kodi requires a compiler with C++17 support, i.e. gcc >= 7 or clang >= 5
Install build dependencies:
[!WARNING] Make sure you copy paste the entire line or you might receive an error or miss a few dependencies.
Building for Wayland requires some extra packages:
Similarly, building for GBM also requires some extra packages:
[!WARNING] Fedora repositories don't have install candidates for
libfmt,rapidjsonandwaylandpp. See build missing dependencies manually section before you proceed.
Optional packages that you might want to install for extra functionality (generating doxygen documentation, for instance):
[!NOTE] For developers and anyone else who builds frequently it is recommended to install
ccacheto expedite subsequent builds of Kodi.
You can install it with:
[!TIP] If you have multiple computers at home,
distccwill distribute build workloads of C and C++ code across several machines on a network. Team Kodi may not be willing to give support if problems arise using such a build configuration.
You can install it with:
See the general Linux build guide for reference.
Change to Kodi's source code directory:
Build and install missing dependencies from repositories (flatbuffers, libfmt, rapidjson and waylandpp):
back to top | back to section top
See the general Linux build guide for reference.
1.8.13