Tuesday, August 05, 2025

Compiling/Installing XBMC from git

How Can We Help?

< Back
You are here:
Print
#!/bin/bash
#

git clone git://github.com/xbmc/xbmc.git
git checkout 7e52c1d

make -C tools/depends/native/JsonSchemaBuilder/
sudo cp tools/depends/native/JsonSchemaBuilder/bin/JsonSchemaBuilder /usr/local/bin
sudo chmod 775 /usr/local/bin/JsonSchemaBuilder

PREFIX="/usr/local" # You could also make this /opt/kodi for instance. Whatever you like
sudo make -C ./tools/depends/target/libdcadec PREFIX=${PREFIX}
sudo make -C ./tools/depends/target/crossguid PREFIX=${PREFIX}
export PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig"
export CFLAGS="$CFLAGS -I${PREFIX}/include"
export CXXFLAGS="$CFLAGS -I${PREFIX}/include"
export TAGLIB_CFLAGS="-I/usr/include/taglib"
export TAGLIB_LIBS="-ltag"

sed --in-place=.BAK 's#<\(afp_protocol\|libafpclient\).h>#<afpfs-ng/\1.h>#' /usr/include/afpfs-ng/afp.h

./bootstrap
./configure
make
sudo make install
Table of Contents
Back To Top