Results 1 to 10 of 17

Threaded View

  1. #1
    Blackbear Blackbear199's Avatar
    Join Date
    May 2015
    Location
    yes i do
    Posts
    552
    Rep Power
    34

    Compile Kodi and PVR Stalker

    Here's the steps required to compile pvr stalker for those running a linux pc.that means a computer with a linux operating system.
    I am no programmer i learned how to do it by reading and trial and error.

    since the developers use a ubuntu based system its easiest to use the same as need libaries are easier to find although you can compile it on any system if you choose.
    ubuntu,kubuntu,xununtu,linux mint,debian are a few that should work fine.

    we will be using the sudo command,it will ask for you password.once entered it wont ask again until you dont use sudo for like 10 min.

    open a terminal,alot of distro's ctrl+alt+t will work.if not look in your menu's.

    first we need get kodi source code and compile it,to download it you will need git,if you already have it installed it will say so.
    sudo apt-get install git

    all the steps are avilable here,i will be assuming your using ubuntu 14.04 or higher.refer to the link for older versions.
    Code:
    https://github.com/xbmc/xbmc/blob/master/docs/README.ubuntu
    change to you home directory..$HOME is case sensitive.
    cd $HOME

    grab the kodi source with git..

    for the lastest kodi 17 Krypton,xbmc at the end is the folder xmbc will be copied to from the server,you can change it to whatever you want,xbmc works for me.
    Code:
    git clone git://github.com/xbmc/xbmc.git xbmc
    if you want kodi 16 Jarvis, kodi 15 Isengard,kodi 14 Helix you would use..
    Code:
    git clone -b <branch> git://github.com/xbmc/xbmc.git xbmc
    where branch is Jarvis,Isengard,Helix.so example
    Code:
    git clone -b Isengard git://github.com/xbmc/xbmc.git xbmc
    next we need kodi build dependencies,this is cut/paste from link above.easiest way is to add the ppa.

    sudo apt-get install software-properties-common
    sudo add-apt-repository -s ppa:team-xbmc/xbmc-nightly
    ...press enter when asked.
    sudo add-apt-repository ppa:team-xbmc/xbmc-ppa-build-depends
    ...press enter when asked.
    sudo apt-get update
    sudo apt-get build-dep kodi

    it should install a bunch of packages,sit back and wait until its done.look for messages saying something wasnt installed.

    optional install ccache,i install it as i compile newer images all the time...
    sudo apt-get install ccache

    in the readme.ubuntu link above it explains how to manually install the dependencies,i am not goin to explain it.

    if everything went ok you are now ready to compile kodi...
    cd xbmc
    ./bootstrap
    this takes abt 5 minutes.
    ./configure
    this takes abt 20 minutes.
    make -j2
    this takes abt 1/2 hour.replace 2 with however many cpu cores you have,j2 is for dual core,j4 be a quad core.
    times will vary based or you cpu.i can do everything in abt 50 minutes on a dual core.

    after its completes you should get a message saying kodi built successfully.

    if you want to install and use the image you just compiled then...****i would remove any images you already installed via the package mananger.when i recompile a new image i just install right over top my old one.works fime for me.
    sudo make install

    -------------------------------------
    to compile pvr.stalker we again use git to get the source code.lets make a directory to build it.
    mkdir $HOME/build_pvr_stalker
    cd $HOME/build_pvr_stalker

    get pvr.stalker source..kodi 17 Krypton
    Code:
    git clone https://github.com/kodi-pvr/pvr.stalker.git pvr.stalker
    for kodi 16,kodi 15,kodi 14 again we use the -b flag like we did above
    Code:
    git clone -b <branch> https://github.com/kodi-pvr/pvr.stalker.git pvr.stalker
    pvr stalker has 3 dependencies,kodi-platform,platform,jsoncpp.lets download them.
    Code:
    git clone https://github.com/xbmc/kodi-platform.git kodi-platform-master
    git clone https://github.com/Pulse-Eight/platform.git platform-master
    jsoncpp we get here,download it with your web browser,copy it from you download folder to the $HOME/build_pvr_stalker folder.
    Code:
    http://mirrors.kodi.tv/build-deps/sources/jsoncpp-src-0.5.0.tar.gz
    cp $HOME/Downloads/jsoncpp-src-0.5.0.tar.gz $HOME/build_pvr_stalker

    goto your $HOME/build_pvr_stalker directory with you file browser and right click on each file and select extract here.

    build platform-master...
    cd $HOME/build_pvr_stalker/platform-master
    cmake CmakeLists.txt
    make
    sudo make install

    build kodi-platform-master
    cd $HOME/build_pvr_stalker/kodi-platform-master
    cmake CmakeLists.txt
    make
    sudo make install

    build jsoncpp,we use scons to do this.run sudo apt-get install scons if you get a error saying its not installed.
    cd $HOME/build_pvr_stalker/jsoncpp-src-0.5.0
    scons platform=linux-gcc check

    the compiled libary will be in the $HOME/build_pvr_stalker/jsoncpp-src-0.5.0/libs/linux-gcc-x.x directory x.x will be the gcc version used to compile it.
    we copy it to /usr/local/lib folder and rename it to libjson.so,copy other files to /usr/local/include and then run ldconfig

    sudo cp $HOME/build_pvr_stalker/jsoncpp-src-0.5.0/libs/linux-gcc*/libjson*.so /usr/local/lib/libjson.so
    sudo cp -R $HOME/Downloads/jsoncpp*/include/json /usr/local/include
    sudo ldconfig

    finally we compile pvr stalker
    cd $HOME/build_pvr_stalker/pvr.stalker

    for some reason it never finds my json libaries so i add the path to CmakeLists.txt
    open it with a text editor and add the 2 lines refering to jsoncpp,its a small file and i added the lines above and below where i added them for reference.
    Code:
    enable_language(CXX)
    
    set( JSONCPP_INCLUDE_DIRS "/usr/local/include" )
    set( JSONCPP_LIBRARIES "/usr/local/lib/libjson.so" )
    
    find_package(kodi REQUIRED)
    cmake CmakeLists.txt
    make
    sudo make install

    that should be it.open kodi and pvr stalker should be installed.
    the latest for kodi 17 is 2.0.2,kodi 16 is 1.0.3,kodi 15 is 0.8.4

    any problems just ask.
    the most likely problem will be a missing libary,it will say could not find xxxx.look for that libary in your package mananger and rerun the last command.easiest way is to presss the up arrow button.
    Last edited by Blackbear199; 02-10-2016 at 03:04 AM.

 

 

Similar Threads

  1. Replies: 0
    Last Post: 03-06-2016, 10:52 AM
  2. Replies: 11
    Last Post: 02-28-2016, 12:40 AM
  3. Replies: 6
    Last Post: 02-10-2016, 06:06 PM
  4. Compile Stalker PVR client for Linux/Fedora ...
    By devnull1970 in forum Kodi Tutorials, Tips & Tricks
    Replies: 0
    Last Post: 01-30-2016, 02:09 AM
  5. Replies: 1
    Last Post: 11-09-2015, 04:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •