2015-04-16, 00:37
Hi,
My setup is not typical. I want to have kodi in custom prefix /xbmc. Then I want to distribute compressed zip, extract it on other machines and run kodi with pvr support. I use following script to compile kodi + hts.pvr:
Basically, it works as should, but I also need to compile and install kodi platform on each client machine. Untar archive is not enough, because hts.pvr needs kodi platform library.
How to avoid it in my scenario? Can I force kodi platform to be included at the same prefix as kodi app? (/kodi), so it will be included in my archive? Instead of system wide installation at /usr?
Or, maybe is it possible to compile pvr.hts with kodi platform library linked statically?
My setup is not typical. I want to have kodi in custom prefix /xbmc. Then I want to distribute compressed zip, extract it on other machines and run kodi with pvr support. I use following script to compile kodi + hts.pvr:
Code:
git clone https://github.com/xbmc/xbmc.git
cd xbmc
./bootstrap
./configure --disable-debug --prefix=/xbmc
make -j9
make install
git clone https://github.com/xbmc/kodi-platform.git
cd kodi-platform
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/xbmc/lib/kodi
make -j9
make install
cd ..
git clone https://github.com/kodi-pvr/pvr.hts.git
cd pvr.hts
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="/xbmc" -DCMAKE_MODULE_PATH=/xbmc/lib/kodi ..
make -j9
make install
tar -zcvf /home/michal/$(date -d "today" +"%Y%m%d%H%M")-xbmc.tar.gz /xbmc
Basically, it works as should, but I also need to compile and install kodi platform on each client machine. Untar archive is not enough, because hts.pvr needs kodi platform library.
How to avoid it in my scenario? Can I force kodi platform to be included at the same prefix as kodi app? (/kodi), so it will be included in my archive? Instead of system wide installation at /usr?
Or, maybe is it possible to compile pvr.hts with kodi platform library linked statically?