Linux Compile PVR (HTS) error on prefix
#1
Till recently I was able to compile new versions of Kodi with PVR support.
Kodi is installed on its normal location (prefix - default /usr/local)

After configure I do:
Code:
make -j2

Next step would be to build addons right?
Code:
make -C tools/depends/target/binary-addons PREFIX=/usr/local ADDONS="pvr.hts"

and last would be

Code:
make install

However while building the addons I get:

Code:
[ 75%] Performing configure step for 'pvr.hts'
-- HTS_VERSION=2.1.11
CMake Error at /home/htpc01/Download/Kodi/xbmc/tools/depends/target/binary-addons/native/build/depends/lib/kodi/addon-helpers.cmake:85 (message):
  CMAKE_INSTALL_PREFIX
  /home/htpc01/Download/Kodi/xbmc/tools/depends/target/binary-addons/native/.install
  differs from Kodi prefix /usr.  Please pass -DOVERRIDE_PATHS=1 to skip this
  check
Call Stack (most recent call first):
  CMakeLists.txt:59 (build_addon)


-- Configuring incomplete, errors occurred!
See also "/home/htpc01/Download/Kodi/xbmc/tools/depends/target/binary-addons/native/pvr.hts-prefix/src/pvr.hts-build/CMakeFiles/CMakeOutput.log".
make[4]: *** [pvr.hts-prefix/src/pvr.hts-stamp/pvr.hts-configure] Error 1
make[4]: Leaving directory `/home/htpc01/Download/Kodi/xbmc/tools/depends/target/binary-addons/native'
make[3]: *** [CMakeFiles/pvr.hts.dir/all] Error 2
make[3]: Leaving directory `/home/htpc01/Download/Kodi/xbmc/tools/depends/target/binary-addons/native'
make[2]: *** [CMakeFiles/pvr.hts.dir/rule] Error 2
make[2]: Leaving directory `/home/htpc01/Download/Kodi/xbmc/tools/depends/target/binary-addons/native'
make[1]: *** [pvr.hts] Error 2
make[1]: Leaving directory `/home/htpc01/Download/Kodi/xbmc/tools/depends/target/binary-addons/native'
Following Addons failed to build: pvr.hts
make[1]: Entering directory `/home/htpc01/Download/Kodi/xbmc/tools/depends/target/binary-addons/native'
make[2]: Entering directory `/home/htpc01/Download/Kodi/xbmc/tools/depends/target/binary-addons/native'
make[3]: Entering directory `/home/htpc01/Download/Kodi/xbmc/tools/depends/target/binary-addons/native'
make[4]: Entering directory `/home/htpc01/Download/Kodi/xbmc/tools/depends/target/binary-addons/native'
make[4]: Leaving directory `/home/htpc01/Download/Kodi/xbmc/tools/depends/target/binary-addons/native'
make[4]: Entering directory `/home/htpc01/Download/Kodi/xbmc/tools/depends/target/binary-addons/native'

WARNING: sudo rights needed to install to /usr

Even though I can supply the root password while installing the PVR addon is not working duhhh Smile however what has changed recently?
In an other thread it is clear that I reinstalled everything yesterday, however on my old install it was not working either...
Reply
#2
Found the problem, but I think this is something for the devs...

If I change the following line:
Code:
make -C tools/depends/target/binary-addons PREFIX=/usr/local ADDONS="pvr.hts"

into:
Code:
sudo make -C tools/depends/target/binary-addons PREFIX=/usr/local ADDONS="pvr.hts"

It is working and it does not give me the error anymore. Has something changed in the code?
Reply
#3
yes, this is a bug.
Reply
#4
Do I need to make a track bug report or does it already exist?
Reply
#5
Feel free to create a ticket, I don't know when I'll find time to fix it though.
Reply

Logout Mark Read Team Forum Stats Members Help
Compile PVR (HTS) error on prefix0