Linux pvr.hts invalid or missing addon source directory [solved/maybe]
#1
Question 
Hi

I just followed the steps described from git:

but I get the error:

Quote:CMake Error at CMakeLists.txt:394 (message):
pvr.hts: invalid or missing addon source directory at
/home/pi/build/kodi/xbmc/project/pvr.hts

Do I miss something? Do I have to run something else inside the xbmc directory that is not listed above?
Reply
#2
Problem solved (somehow):

I am shure this is not the proper way to solve the problem and I someone knows how to do it right please tell Smile

I symlinked the pvr.hts directory which was downloaded by git to that ominous non-existend location from the error message:

Code:
ln -s /home/pi/build/kodi/pvr.hts /home/pi/build/kodi/xbmc/project/pvr.hts

(the root directory where all that took place is /home/pi/build/kodi/ in my case, from there I did the git clone commands)

after "make" AND "sudo make install", which was not described in the git readme I was able to find three additional file in the ./xbmc/addons/pvr.hts directory:
Quote:pvr.hts.so
pvr.hts.so.17.0
pvr.hts.so.3.2.2
Then I built kodi but pvr.hts addon was NOT included in the build later and I had to copy those three files by hand to /usr/local/share/kodi/addons/pvr,hts
After that everything worked fine
Reply
#3
(2016-04-11, 16:43)pauledd Wrote: Problem solved (somehow):

I am shure this is not the proper way to solve the problem and I someone knows how to do it right please tell Smile

I symlinked the pvr.hts directory which was downloaded by git to that ominous non-existend location from the error message:

Code:
ln -s /home/pi/build/kodi/pvr.hts /home/pi/build/kodi/xbmc/project/pvr.hts

(the root directory where all that took place is /home/pi/build/kodi/ in my case, from there I did the git clone commands)

after "make" AND "sudo make install", which was not described in the git readme I was able to find three additional file in the ./xbmc/addons/pvr.hts directory:
Quote:pvr.hts.so
pvr.hts.so.17.0
pvr.hts.so.3.2.2
Then I built kodi but pvr.hts addon was NOT included in the build later and I had to copy those three files by hand to /usr/local/share/kodi/addons/pvr,hts
After that everything worked fine

I just cd'd directly into /xbmc/project, then git cloned -b Jarvis release of tvheadend to match the Jarvis version of xbmc I downloaded.

Code:
cd xbmc/project

git clone -b Jarvis https://github.com/kodi-pvr/pvr.hts.git

cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons

make -j4

It built and put in /xbmc/addons like it was supposed to... no copying or symlinking needed.
Reply
#4
Thanks, that worked.
But then the instruction is wrong at https://github.com/kodi-pvr/pvr.hts/blob.../README.md because
it does not mention to clone pvr.hts inside xbmc/projects.
Reply
#5
(2016-04-12, 09:16)pauledd Wrote: Thanks, that worked.
But then the instruction is wrong at https://github.com/kodi-pvr/pvr.hts/blob.../README.md because
it does not mention to clone pvr.hts inside xbmc/projects.

Yes, the instructions are wrong... it took me a few days to figure that one out. Tongue
Reply
#6
(2016-04-12, 17:27)greenbag Wrote:
(2016-04-12, 09:16)pauledd Wrote: Thanks, that worked.
But then the instruction is wrong at https://github.com/kodi-pvr/pvr.hts/blob.../README.md because
it does not mention to clone pvr.hts inside xbmc/projects.

Yes, the instructions are wrong... it took me a few days to figure that one out. Tongue


Ok let me see if i get this

basically it downloads tvheadend source and compiles it right?

after that i can rund normal kodi compile with visual studio 2013 to build kodi exe and the PVR tvheadend addon will be enabled already?

i tried it

but gives me cmd not found on make -j4


Quote:cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons
works and installs everything


BTW i am compiling kodi on jarvis 16.1
Reply
#7
(2016-04-19, 02:20)tester100 Wrote:
(2016-04-12, 17:27)greenbag Wrote:
(2016-04-12, 09:16)pauledd Wrote: Thanks, that worked.
But then the instruction is wrong at https://github.com/kodi-pvr/pvr.hts/blob.../README.md because
it does not mention to clone pvr.hts inside xbmc/projects.

Yes, the instructions are wrong... it took me a few days to figure that one out. Tongue


Ok let me see if i get this

basically it downloads tvheadend source and compiles it right?

after that i can rund normal kodi compile with visual studio 2013 to build kodi exe and the PVR tvheadend addon will be enabled already?

i tried it

but gives me cmd not found on make -j4


Quote:cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons
works and installs everything


BTW i am compiling kodi on jarvis 16.1


Ok i did some further testing

the actual koditvheadend PVR tutorial is correct and wrong at the same time maybe a misstype error


this is wrong ofcourse we already know
Quote:git clone https://github.com/xbmc/xbmc.git
git clone https://github.com/kodi-pvr/pvr.hts.git
cd pvr.hts && mkdir build && cd build
cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons
make

this is correct

Quote:git clone https://github.com/xbmc/xbmc.git
git clone https://github.com/kodi-pvr/pvr.hts.git
cd pvr.hts && mkdir build && cd build
cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../cmake/addons
make

downloads into xbmc/project the pvr.hts

then jumps into pvr.hts and makes directory build, then jump to directory build then execute cmake from it

here is the output

Quote: /c/xbmc/project/pvr.hts/build (Jarvis)
$ cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../cmake/addons
-- Building for: Visual Studio 14 2015
-- The C compiler identification is MSVC 19.0.23918.0
-- The CXX compiler identification is MSVC 19.0.23918.0
-- Check for working C compiler using: Visual Studio 14 2015
-- Check for working C compiler using: Visual Studio 14 2015 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 14 2015
-- Check for working CXX compiler using: Visual Studio 14 2015 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Addon source tarball caching is enabled
-- ZIP packaging enabled (destination: C:/xbmc/project/pvr.hts/build/build/zips)
-- Building following addons: pvr.hts
-- Overriding addon source directory prefix: C:/xbmc/project
-- patch utility found at C:/Program Files/Git/usr/bin/patch.exe
-- Processing C:/xbmc/project/cmake/addons/depends/common/kodi-platform/kodi-platform.txt
-- kodi-platform url: https://github.com/xbmc/kodi-platform
-- kodi-platform depends: tinyxml;platform
-- Processing C:/xbmc/project/cmake/addons/depends/common/platform/platform.txt
-- platform url: https://github.com/Pulse-Eight/platform.git
-- Processing C:/xbmc/project/cmake/addons/depends/common/tinyxml/tinyxml.txt
-- tinyxml url: http://mirrors.kodi.tv/build-deps/source...2_2.tar.gz
-- Processing windows
-- Configuring done
-- Generating done
-- Build files have been written to: C:/xbmc/project/pvr.hts/build


ok now i have a issue its compiling with vs2015 vsstudio14 but was suposed to use 12.0 i think as i am compiling it with VS2013 this is jarvis version
Reply
#8
The instructions I showed, were for compiling directly on the raspberry pi. The same instructions work for compiling within Ubuntu on a pc.. worded the way they had it to begin with, just starting in a different directory.. I have no idea for Visualstudio. Try adding -b Jarvis for the Jarvis branch releases, of both Kodi and pvr.hts, and not the latest beta releases. See how that goes.

Code:
git clone -b Jarvis git://github.com/xbmc/xbmc.git

cd xbmc/project

git clone -b Jarvis https://github.com/kodi-pvr/pvr.hts.git

cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons

make

make -j4 means use all 4 cores while compiling. Your compiler doesn't understand that command then.
Reply
#9
(2016-04-19, 03:36)greenbag Wrote: The instructions I showed, were for compiling directly on the raspberry pi. The same instructions work for compiling within Ubuntu on a pc.. worded the way they had it to begin with, just starting in a different directory.. I have no idea for Visualstudio. Try adding -b Jarvis for the Jarvis branch releases, of both Kodi and pvr.hts, and not the latest beta releases. See how that goes.

Code:
git clone -b Jarvis git://github.com/xbmc/xbmc.git

cd xbmc/project

git clone -b Jarvis https://github.com/kodi-pvr/pvr.hts.git

cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons

make

make -j4 means use all 4 cores while compiling. Your compiler doesn't understand that command then.

Hi greenbag


actually thats what i am doing i am compiling it on Jarvis 16.1 git and yes i have downloaded the jarvis -b branch for the PVR.hts tvheand when i execute the cmd shows compiling

but the the 5th step make or sudo make or make -j4 gives me the following message


Quote: /c/xbmc/project/pvr.hts/build (Jarvis)
$ make
bash: make: command not found
Reply
#10
(2016-04-19, 03:42)tester100 Wrote:
(2016-04-19, 03:36)greenbag Wrote: The instructions I showed, were for compiling directly on the raspberry pi. The same instructions work for compiling within Ubuntu on a pc.. worded the way they had it to begin with, just starting in a different directory.. I have no idea for Visualstudio. Try adding -b Jarvis for the Jarvis branch releases, of both Kodi and pvr.hts, and not the latest beta releases. See how that goes.

Code:
git clone -b Jarvis git://github.com/xbmc/xbmc.git

cd xbmc/project

git clone -b Jarvis https://github.com/kodi-pvr/pvr.hts.git

cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons

make

make -j4 means use all 4 cores while compiling. Your compiler doesn't understand that command then.

Hi greenbag


actually thats what i am doing i am compiling it on Jarvis 16.1 git and yes i have downloaded the jarvis -b branch for the PVR.hts tvheand when i execute the cmd shows compiling

but the the 5th step make or sudo make or make -j4 gives me the following message


Quote: /c/xbmc/project/pvr.hts/build (Jarvis)
$ make
bash: make: command not found

Your posts said you were compiling Jarvis, but the commands you said were correct didn't reflect that...

Code:
this is correct

    Quote:
    git clone https://github.com/xbmc/xbmc.git
    git clone https://github.com/kodi-pvr/pvr.hts.git
    cd pvr.hts && mkdir build && cd build
    cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../cmake/addons
    make

I didn't see -b Jarvis in the git clone commands, so I wasn't exactly sure where you were.

As for the make -j4.. I already explained the -j4 means compile using all 4 cores. Sudo is a linux command.. it tells the compiler to use "super user" privelages.. ie: administrator privileges. Sudo isn't in the commands for building pvr.hts anyway.. it's only needed for actually installing kodi after building it itself.

And if you look at the error... you're in the wrong directory to begin with.

Code:
/c/xbmc/project/pvr.hts/build (Jarvis)
$ make
bash: make: command not found

That says you are in /c/xbmc/project/pvr.hts/build... when you should be in /c/xbmc/project... nowhere else. That's why there's no make... there's no makefile.

Go back and use the commands I posted, without changing any of the directories. Do again young Padawan.
Reply
#11
(2016-04-19, 04:29)greenbag Wrote:
(2016-04-19, 03:42)tester100 Wrote:
(2016-04-19, 03:36)greenbag Wrote: The instructions I showed, were for compiling directly on the raspberry pi. The same instructions work for compiling within Ubuntu on a pc.. worded the way they had it to begin with, just starting in a different directory.. I have no idea for Visualstudio. Try adding -b Jarvis for the Jarvis branch releases, of both Kodi and pvr.hts, and not the latest beta releases. See how that goes.

Code:
git clone -b Jarvis git://github.com/xbmc/xbmc.git

cd xbmc/project

git clone -b Jarvis https://github.com/kodi-pvr/pvr.hts.git

cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons

make

make -j4 means use all 4 cores while compiling. Your compiler doesn't understand that command then.

Hi greenbag


actually thats what i am doing i am compiling it on Jarvis 16.1 git and yes i have downloaded the jarvis -b branch for the PVR.hts tvheand when i execute the cmd shows compiling

but the the 5th step make or sudo make or make -j4 gives me the following message


Quote: /c/xbmc/project/pvr.hts/build (Jarvis)
$ make
bash: make: command not found

Your posts said you were compiling Jarvis, but the commands you said were correct didn't reflect that...

Code:
this is correct

    Quote:
    git clone https://github.com/xbmc/xbmc.git
    git clone https://github.com/kodi-pvr/pvr.hts.git
    cd pvr.hts && mkdir build && cd build
    cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../cmake/addons
    make

I didn't see -b Jarvis in the git clone commands, so I wasn't exactly sure where you were.

As for the make -j4.. I already explained the -j4 means compile using all 4 cores. Sudo is a linux command.. it tells the compiler to use "super user" privelages.. ie: administrator privileges. Sudo isn't in the commands for building pvr.hts anyway.. it's only needed for actually installing kodi after building it itself.

And if you look at the error... you're in the wrong directory to begin with.

Code:
/c/xbmc/project/pvr.hts/build (Jarvis)
$ make
bash: make: command not found

That says you are in /c/xbmc/project/pvr.hts/build... when you should be in /c/xbmc/project... nowhere else. That's why there's no make... there's no makefile.

Go back and use the commands I posted, without changing any of the directories. Do again young Padawan.


OK i understood your point


actually i did not use that github i used the previous one on the post with the jarvis -b branch.


ok i have added the kodi.addons.sln to the main XBMC for windows.sln to compile it all together

but after compiling it still does not show the TVheadend pvr installed neither enabled on my compiled version for windows jarvis 16.1

any more ideas?


btw step5 make

this is just for linux , i cannot run this on gitbash terminal on windows it states the bash not found.. is there another cmd i need to execute on windows?
Reply
#12
What command do you use to execute a Makefile then? Make works in djgpp and cgwyn... why not VS? I see VS2010Express and Win32BuildSetup in xbmc/project directory, but I haven't looked through them. This is where you're either going to improvise with your Windows compiler's list of available commands.. or google the info. Usually quicker in my experience. Tongue

BTW.. that's the reason to be in xbmc/project to do this in as well.. whatever addon you build, that's the build directory to do it in... it's full of compiler stuffs like cmake and CMakeFiles. Things need to be within a certain directory structure for the commands, and scripts, to execute properly. So git cloning pvr.hts in /c for instance, would throw things all out of whack. Even if it is from the Jarvis branch.
Reply
#13
(2016-04-19, 04:34)tester100 Wrote: btw step5 make

this is just for linux , i cannot run this on gitbash terminal on windows it states the bash not found.. is there another cmd i need to execute on windows?

I should have mentioned this last post... djgpp is a Windows DOS compiler, and cygwin is a Windows linux compiler.. of sorts. They both use make, so it's not limited to just linux or Mac. You can try downloading make.exe and see if that helps.

Code:
http://www.equation.com/servlet/equation.cmd?fa=make
Reply
#14
ok... I need to correct myself.. lol. Tongue

I just built the pvr.iptvsimple addon so I can add m3u lists, and it had the same instructions as the pvr.hts.. just with a different addon name, obviously. It built fine when git cloned outside of the xbmc directory, but also built fine within xbmc/project directory. So.. my guess is it's something in the pvr.hts source code itself, and not the build commands posted on github.


edit:

Nope... although it built when git cloned into my home directory, that was the Jarvis release. I'm trying a build from -b master, and it failed to build unless I used the same steps for pvr.hts.

original: works
Code:
git clone https://github.com/xbmc/xbmc.git
git clone https://github.com/kodi-pvr/pvr.iptvsimple.git
cd pvr.iptvsimple && mkdir build && cd build
cmake -DADDONS_TO_BUILD=pvr.iptvsimple -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons


original, master branch: doesn't work
Code:
git clone -b master https://github.com/xbmc/xbmc.git
git clone -b master https://github.com/kodi-pvr/pvr.iptvsimple.git
cd pvr.iptvsimple && mkdir build && cd build
cmake -DADDONS_TO_BUILD=pvr.iptvsimple -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons

master branch, modified: works
Code:
git clone -b master https://github.com/xbmc/xbmc.git
cd xbmc/project
git clone -b master https://github.com/kodi-pvr/pvr.iptvsimple.git
cmake -DADDONS_TO_BUILD=pvr.iptvsimple -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons


Go figure.. lol. It must be a difference in the sources.
Reply
#15
(2016-04-20, 02:46)greenbag Wrote: ok... I need to correct myself.. lol. Tongue

I just built the pvr.iptvsimple addon so I can add m3u lists, and it had the same instructions as the pvr.hts.. just with a different addon name, obviously. It built fine when git cloned outside of the xbmc directory, but also built fine within xbmc/project directory. So.. my guess is it's something in the pvr.hts source code itself, and not the build commands posted on github.


edit:

Nope... although it built when git cloned into my home directory, that was the Jarvis release. I'm trying a build from -b master, and it failed to build unless I used the same steps for pvr.hts.

original: works
Code:
git clone https://github.com/xbmc/xbmc.git
git clone https://github.com/kodi-pvr/pvr.iptvsimple.git
cd pvr.iptvsimple && mkdir build && cd build
cmake -DADDONS_TO_BUILD=pvr.iptvsimple -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons


original, master branch: doesn't work
Code:
git clone -b master https://github.com/xbmc/xbmc.git
git clone -b master https://github.com/kodi-pvr/pvr.iptvsimple.git
cd pvr.iptvsimple && mkdir build && cd build
cmake -DADDONS_TO_BUILD=pvr.iptvsimple -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons

master branch, modified: works
Code:
git clone -b master https://github.com/xbmc/xbmc.git
cd xbmc/project
git clone -b master https://github.com/kodi-pvr/pvr.iptvsimple.git
cmake -DADDONS_TO_BUILD=pvr.iptvsimple -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons


Go figure.. lol. It must be a difference in the sources.


Hi


ok so i found this for PVR addon so i am guessing i will have to make something similar for HTS on windows..



Windows:

Change to addons folder:
Code:
cd D:\Projects\xbmx\xbmc\project\cmake\addons\build

Generate build environment with config for debugging. This command generates a Visual Studio 2013 solution.
Code:
cmake -DADDONS_TO_BUILD="pvr.demo" -DADDON_SRC_PREFIX="D:\Projects" -DCMAKE_BUILD_TYPE=Debug -G "Visual Studio 12" -DCMAKE_USER_MAKE_RULES_OVERRIDE="D:\Projects\xbmx\xbmc\project\cmake\scripts\windows\c-flag-overrides.cmake" -DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX="D:\Projects\xbmx\xbmc\project\cmake\scripts\windows\cxx-flag-overrides.cmake" -DCMAKE_INSTALL_PREFIX="D:\Projects\xbmx\xbmc\addons" -DBUILD_DIR="D:\Projects\xbmx\xbmc\project\cmake\addons\build" -DPACKAGE_ZIP=1 "D:\Projects\xbmx\xbmc\project\cmake\addons"

Open Visual Studio, load and build this solution:
Code:
D:\Projects\xbmx\xbmc\project\cmake\addons\build\kodi-addons.sln

Setup Development Environment.

Open Visual Studio, load Kodi solution. Then add existing solution:
Code:
D:\Projects\xbmx\xbmc\project\cmake\addons\build\pvr.demo-prefix\src\pvr.demo-build\pvr.demo.sln

Create post-build step. Required to copy files for debugging

Create Post-Build Event in Visual Studio
Code:
tbd
Reply

Logout Mark Read Team Forum Stats Members Help
pvr.hts invalid or missing addon source directory [solved/maybe]0