2016-01-29, 04:22
To build on Raspberry Pi 2 I basicly copied the readme word for word. so here is what i did for pi2.
Code:
mkdir /home/pi/workspace
cd /home/pi/workspace
git clone https://github.com/garbear/xbmc.git kodi
cd /home/pi/workspace/kodi/lib/taglib
make -j4
sudo make install
cd /home/pi/workspace/kodi
./bootstrap
CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" FFMPEG_OPTS="--cpu=cortex-a7" ./configure --disable-gl --enable-gles --with-platform=raspberry-pi --disable-x11 --disable-vaapi --disable-vdpau --disable-avahi --disable-pulse --disable-projectm --disable-optical-drive --disable-dvdcss --disable-vtbdecoder --enable-alsa --enable-player=omxplayer --disable-openmax --disable-rsxs --prefix=/usr
make -j4
sudo make install
mkdir /home/pi/workspace/peripheral.joystick-build
cd /home/pi/workspace/peripheral.joystick-build
cmake -DADDONS_TO_BUILD=peripheral.joystick \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=/home/pi/workspace/kodi/addons \
-DPACKAGE_ZIP=1 \
/home/pi/workspace/kodi/project/cmake/addons
make
mkdir /home/pi/workspace/game.addons
cd /home/pi/workspace/game.addons
cmake -DADDONS_TO_BUILD=game.* \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=$HOME/workspace/kodi/addons \
-DPACKAGE_ZIP=1 \
$HOME/workspace/kodi/project/cmake/addons
make
cd /home/pi/workspace/kodi/addons
sudo cp -R peripheral.joystick /usr/share/kodi/addons
sudo cp -R game.* /usr/share/kodi/addons