MythTV PVR/BuildFromSource: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Update page and fix "dead end" status)
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Mininav|[[MythTV PVR]]}}
{{Mininav|[[Add-on:MythTV PVR Client|MythTV PVR Client]]}}
 
{{Note|This add-on's development repository is [[Git usage|Git-based]] and hosted on [https://github.com/janbar/pvr.mythtv GitHub]. There you will find instructions for compiling it from source code along with its issue tracker.}}


{{Big|The add-on's development repository is [[Git usage|Git-based]] and hosted on [https://github.com/janbar/pvr.mythtv GitHub]. There you will find instructions how to compile it from source code and the issue tracker.}}


== Build instructions ==
== Build instructions ==
When building the addon, you have to use the correct branch ([https://github.com/janbar/pvr.mythtv/branches/all List of Git branches in pvr.mythtv]) for the version of Kodi you're building against. For example, if you're building the <code>master</code> branch of Kodi, you should checkout the <code>master</code> branch of this repository. Also, make sure you are following this [https://github.com/janbar/pvr.mythtv/blob/master/README.md README file] from the branch in question.
When building the addon, you have to use the correct branch ([https://github.com/janbar/pvr.mythtv/branches/all List of Git branches in pvr.mythtv]) for the version of Kodi you're building against. For example, if you're building the <code>master</code> branch of Kodi, you should checkout the <code>master</code> branch of this repository. Also, make sure you are following this [https://github.com/janbar/pvr.mythtv/blob/master/README.md README file] from the branch in question.


=== Linux environments ===
=== Linux environments ===
<syntaxhighlight lang="shell">
<syntaxhighlight lang="sh">
git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git
git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git
git clone --branch Nexus https://github.com/janbar/pvr.mythtv.git && cd ./pvr.mythtv
git clone --branch Nexus https://github.com/janbar/pvr.mythtv.git
mkdir build && cd ./build
cd pvr.mythtv && mkdir build && cd build
cmake -DADDONS_TO_BUILD:STRING="pvr.mythtv" -DADDON_SRC_PREFIX:PATH="../.." -DCMAKE_BUILD_TYPE:STRING="Debug" \
cmake -DADDONS_TO_BUILD=pvr.mythtv -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX:PATH="../../xbmc/addons" -DPACKAGE_ZIP:BOOL="ON" "-GUnix Makefiles" ../../xbmc/cmake/addons
-DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=ON ../../xbmc/cmake/addons
make -j$(nproc)
make
</syntaxhighlight>
</syntaxhighlight>


The add-on files will be placed in <code>../../xbmc/kodi-build/addons</code>, so if you build Kodi from source and run it directly, the add-on will be available as a system add-on.
The add-on files will be placed in <code>../../xbmc/kodi-build/addons</code>, so if you build Kodi from source and run it directly, the add-on will be available as a system add-on.


== External links ==
== External links ==
Line 22: Line 25:




{{Updated|19}}
{{Updated|20}}
[[Category:PVR]]
[[Category:PVR]]

Latest revision as of 09:04, 29 January 2023

Home icon grey.png   ▶ MythTV PVR Client ▶ BuildFromSource

Note: This add-on's development repository is Git-based and hosted on GitHub. There you will find instructions for compiling it from source code along with its issue tracker.


Build instructions

When building the addon, you have to use the correct branch (List of Git branches in pvr.mythtv) for the version of Kodi you're building against. For example, if you're building the master branch of Kodi, you should checkout the master branch of this repository. Also, make sure you are following this README file from the branch in question.


Linux environments

git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git
git clone --branch Nexus https://github.com/janbar/pvr.mythtv.git
cd pvr.mythtv && mkdir build && cd build
cmake -DADDONS_TO_BUILD=pvr.mythtv -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=ON ../../xbmc/cmake/addons
make

The add-on files will be placed in ../../xbmc/kodi-build/addons, so if you build Kodi from source and run it directly, the add-on will be available as a system add-on.


External links