• 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 13
Develop PVR addons with new cmake build system
#91
Yes spot on. That is you need kodiplatform in the mock env.
Reply
#92
and kodi as well, at least the addon headers and cmake helper files.
Reply
#93
Still no joy even with kodi installed to mock when kodi-platform was built and then isntalled kodi-platform to build pvr.hts.

Well I need a break, I'll revisit this after some bball watching /NCAAs.
Reply
#94
OK , NCAA is over, KY lost yeah.

Now about kodi, kodi-platform and pvr.hts.

I got sick and tired of playing in mock, but I refuse to build on a production system that is doing other things, so I opened a Fedora 21 VM instance running gnome and built from git all three packages. They all built and installed as expected but when I try to run them I get a message "an unknoiw error has occurred. PVR addon could not be loaded. Could not load dll.

I guess this means I am really messing something up, but I am not sure what.
Reply
#95
@boblfoot make sure you create "Release" builds, not "Debug".
Reply
#96
Can someone make instructions for OS X? I simply can't get it to work, every time I call cmake I end up with "couldn't find dependency "kodi" of target "kodi-platform" or something like that. I did get it to work once, then OS X decided to become stupid and now it doesn't work anymore no matter what I do.
Reply
#97
@ negge the following is what I did in the fedora vm and in a mock instance of centos to build all three apps {kodi, kodi-platform, pvr.hts}

Code:
FOR KODI
from /home/user folder
mkdir git
git clone https://github.com/xbmc/xbmc.git
cd xbmc
git checkout 32c1f532084a2fd642a19c75a185dd2a3434c5d2
./bootstrap
./configure
make
make install

FOR KODI-PLATFORM
from /home/user folder
cd git
git clone https://github.com/xbmc/kodi-platform.git
cd kodi-platform
cmake -DCMAKE_INSTALL_PREFIX=/usr/local
make
make install

FOR PVR.HTS
from /home/user folder
cd git
git clone https://github.com/kodi-pvr/pvr.hts.git
cd pvr.hts
cmake -DCMAKE_INSTALL_PREFIX=/usr/local
make
make install

I just need to find and add the instance to make flag to the cmake command iirc.
Reply
#98
@boblfoot I don't want to build Kodi itself, just a single addon.
Reply
#99
I'm/my build script is doing:
Code:
addon="pvr.your_pvr"
git clone https://github.com/xbmc/xbmc.git
git clone https://github.com/kodi-pvr/${addon}
mkdir build
pushd build
cmake -DADDON_SRC_PREFIX=".." \
      -DADDONS_TO_BUILD="${addon}" \
      -DCMAKE_INSTALL_PREFIX=output \
      -DCMAKE_BUILD_TYPE=Release \
      -DPACKAGE_ZIP=1 \
      ../xbmc/project/cmake/addons
make VERBOSE=1
# optional: make -C ${addon}-prefix/src/${addon}-build/ addon-package

As far as I remember this also worked on OSX.
Reply
Are there required changes the cmake build systems for libplatform on win32? I can build pvr.nexpvr fine from the commit https://github.com/kodi-pvr/pvr.nextpvr/commits/master 1ecbf87 but it fails with c138e2 and libplatform I use prepare-addons-dev.bat pvr.nextpvr from http://forum.kodi.tv/showthread.php?tid=...pid1935737 to create the environment.

Thanks,

Martin
Reply
yes, see https://github.com/xbmc/xbmc/pull/7069
still not 100% fixed though.
Reply
(2015-05-10, 12:00)wsnipex Wrote: yes, see https://github.com/xbmc/xbmc/pull/7069
still not 100% fixed though.

Thanks that pull works, I agree that this new system is sure spaghetti, I didn't search it out because to me it make senses to have working dependencies and then change the dependency rather than vice-verse..

Martin
Reply
Hi all,
i trying to build pvr.iptvsimple for my kodi 14.2:

i have:
/home/mediacenter/Scaricati/pvr.iptvsimple ( from git clone https://github.com/kodi-pvr/pvr.iptvsimple )
/home/mediacenter/Scaricati/xbmc ( from git clone https://github.com/xbmc/xbmc -b Helix )

i already installed kodi from /home/mediacenter/Scaricati/xbmc (sudo make install)

i created build folder under /home/mediacenter/Scaricati/pvr.iptvsimple and launch cmake:
cmake \
-DADDONS_TO_BUILD=pvr.iptvsimple \
-DADDON_SRC_PREFIX=/home/mediacenter/Scaricati \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=/home/mediacenter/Scaricati/xbmc/addons \
-DPACKAGE_ZIP=1 \
/home/mediacenter/Scaricati/xbmc/project/cmake/addons

response seems ok
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
package zip specified
-- Building following addons: pvr.iptvsimple
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

ADDON_SRC_PREFIX


-- Build files have been written to: /home/mediacenter/Scaricati/pvr.iptvsimple/build

but when i launch
make -C /home/mediacenter/Scaricati/pvr.iptvsimple/build

i obtain:
make: ingresso nella directory "/home/mediacenter/Scaricati/pvr.iptvsimple/build"
make: uscita dalla directory "/home/mediacenter/Scaricati/pvr.iptvsimple/build"

i think nothing was done.

I use Mageia 4 - x86_64
could help me please
Reply
try this instead;

1) build and execute 'make install' for kodi (you already did..)

2) configure pvr.iptvsimple without all those options. point cmake to *its* source directory, not /home/mediacenter/Scaricati/xbmc/project/cmake/addons

3) build and execute 'make install' for pvr.iptvsimple

there is no need to use the in-tree buildsystem on non-crossbuild linux.
Reply
hi ironic_monkey,
thanks for your response.

i tryed to:
cd /home/mediacenter/Scaricati/pvr.iptvsimple
$ cmake .

-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Checking to see if CXX compiler accepts flag -flto
-- Checking to see if CXX compiler accepts flag -flto - yes
CMake Error at CMakeLists.txt:8 (find_package):
By not providing "Findkodiplatform.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"kodiplatform", but CMake did not find one.

Could not find a package configuration file provided by "kodiplatform" with
any of the following names:

kodiplatformConfig.cmake
kodiplatform-config.cmake

Add the installation prefix of "kodiplatform" to CMAKE_PREFIX_PATH or set
"kodiplatform_DIR" to a directory containing one of the above files. If
"kodiplatform" provides a separate development package or SDK, be sure it
has been installed.


-- Configuring incomplete, errors occurred!


Seems that i need to install kodi-platform, but if i try to build kodi-platform
$ cmake .

-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Checking to see if CXX compiler accepts flag -flto
-- Checking to see if CXX compiler accepts flag -flto - yes
-- Found TinyXML: /usr/include
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
CMake Error at CMakeLists.txt:11 (find_package):
By not providing "Findplatform.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "platform",
but CMake did not find one.

Could not find a package configuration file provided by "platform" with any
of the following names:

platformConfig.cmake
platform-config.cmake

Add the installation prefix of "platform" to CMAKE_PREFIX_PATH or set
"platform_DIR" to a directory containing one of the above files. If
"platform" provides a separate development package or SDK, be sure it has
been installed.


-- Configuring incomplete, errors occurred!
Reply
  • 1
  • 5
  • 6
  • 7(current)
  • 8
  • 9
  • 13

Logout Mark Read Team Forum Stats Members Help
Develop PVR addons with new cmake build system0