Kodi Community Forum
Develop PVR addons with new cmake build system - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136)
+---- Thread: Develop PVR addons with new cmake build system (/showthread.php?tid=219166)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


RE: Develop PVR addons with new cmake build system - FernetMenta - 2016-01-29

There is no zip file
-DCMAKE_INSTALL_PREFIX=~/kodi/src/xbmc-15.2-Isengard/addons/

The addon gets installed directly into the source tree of Kodi. cd to ~/kodi/src/xbmc-15.2-Isengard and run kodi.bin from that folder. You'll notice that the addon is already installed.


RE: Develop PVR addons with new cmake build system - woot2133 - 2016-01-29

the files are probably in folder pvr.iptvsimple inside /kodi/src/xbmc-15.2-Isengard/addons. you'll have to manually zip them.

edit: nvm, didn't see the above reply.


RE: Develop PVR addons with new cmake build system - jrussev - 2016-01-29

(2016-01-29, 15:03)FernetMenta Wrote: There is no zip file
-DCMAKE_INSTALL_PREFIX=~/kodi/src/xbmc-15.2-Isengard/addons/

The addon gets installed directly into the source tree of Kodi. cd to ~/kodi/src/xbmc-15.2-Isengard and run kodi.bin from that folder. You'll notice that the addon is already installed.

Thanks a lot for the quick reply !
If I list the content of this directory (~/kodi/src/xbmc-15.2-Isengard/addons), there is subdirectory ./pvr.iptvsimple,

Code:
# ls -ltr addons/pvr.iptvsimple/
total 100
drwxrwxr-x 3 dancho dancho  4096 Jul 17  2015 resources
-rw-rw-r-- 1 dancho dancho 63858 Jul 17  2015 icon.png
-rw-rw-r-- 1 dancho dancho  1452 Jul 17  2015 changelog.txt
-rw-rw-r-- 1 dancho dancho 24607 Jul 17  2015 addon.xml

but Kodi can't load the add-on.

Code:
13:19:13 T:2831215424   DEBUG: RegisterClient - registering add-on 'PVR IPTV Simple Client'
13:19:13 T:2831215424   DEBUG: Previous line repeats 1 times.
13:19:13 T:2831215424   DEBUG: PVR - Create - creating PVR add-on instance 'PVR IPTV Simple Client'
13:19:13 T:2831215424   DEBUG: ADDON: Dll Initializing - PVR IPTV Simple Client
13:19:13 T:2831215424   ERROR: ADDON: Could not locate pvr.iptvsimple.so
13:19:13 T:2831215424 WARNING: UpdateAndInitialiseClients - failed to create add-on PVR IPTV Simple Client, status = 6
13:19:13 T:2831215424 WARNING: UpdateAndInitialiseClients - failed to load the dll for add-on PVR IPTV Simple Client, disabling it



RE: Develop PVR addons with new cmake build system - FernetMenta - 2016-01-29

Checkout my first post:

cmake -DADDONS_TO_BUILD=pvr.demo -DADDON_SRC_PREFIX=/home/xbmc/progs/src -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/xbmc/progs/src/xbmc/addons -DPACKAGE_ZIP=1 /home/xbmc/progs/src/xbmc/project/cmake/addons

I used full path names. I don't think shortcuts like ~/ work in this context


RE: Develop PVR addons with new cmake build system - jrussev - 2016-01-29

I try everything again from the beginning. I used full paths.

cmake -DADDONS_TO_BUILD=pvr.iptvsimple-Isengard -DADDON_SRC_PREFIX=/home/dancho/kodi/src/ -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/dancho/kodi/src/xbmc-15.2-Isengard/addons/ -DPACKAGE_ZIP=1 /home/dancho/kodi/src/xbmc-15.2-Isengard/project/cmake/addons/

Code:
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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-Isengard
-- Overriding addon source directory prefix: /home/dancho/kodi/src/xbmc-15.2-Isengard/addons/
-- Processing /home/dancho/kodi/src/xbmc-15.2-Isengard/project/cmake/addons/depends/common/tinyxml/tinyxml.txt
-- tinyxml url: http://mirrors.xbmc.org/build-deps/sources/tinyxml-2.6.2_2.tar.gz
-- Processing /home/dancho/kodi/src/xbmc-15.2-Isengard/project/cmake/addons/depends/common/kodi-platform/kodi-platform.txt
-- kodi-platform url: https://github.com/xbmc/kodi-platform
-- kodi-platform depends: kodi;tinyxml;platform
-- Found Git: /usr/bin/git (found version "1.9.1")
-- Processing /home/dancho/kodi/src/xbmc-15.2-Isengard/project/cmake/addons/depends/common/platform/platform.txt
-- platform url: http://mirrors.kodi.tv/build-deps/sources/platform-1.0.10.tar.gz
-- No platform specific file /home/dancho/kodi/src/xbmc-15.2-Isengard/project/cmake/addons/depends/linux/CMakeLists.txt found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build

make -C /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/

Code:
make: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'
make[1]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'
make[2]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'
Scanning dependencies of target tinyxml
make[2]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'
make[2]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'
[  4%] Creating directories for 'tinyxml'
[  8%] Performing download step (download, verify and extract) for 'tinyxml'
-- downloading...
     src='http://mirrors.xbmc.org/build-deps/sources/tinyxml-2.6.2_2.tar.gz'
     dst='/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/download/tinyxml-2.6.2_2.tar.gz'
     timeout='none'
-- [download 100% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 13% complete]
-- [download 14% complete]
-- [download 15% complete]
-- [download 16% complete]
-- [download 17% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 21% complete]
-- [download 22% complete]
-- [download 23% complete]
-- [download 24% complete]
-- [download 25% complete]
-- [download 26% complete]
-- [download 27% complete]
-- [download 28% complete]
-- [download 29% complete]
-- [download 30% complete]
-- [download 31% complete]
-- [download 32% complete]
-- [download 33% complete]
-- [download 34% complete]
-- [download 35% complete]
-- [download 36% complete]
-- [download 37% complete]
-- [download 38% complete]
-- [download 39% complete]
-- [download 40% complete]
-- [download 41% complete]
-- [download 42% complete]
-- [download 43% complete]
-- [download 44% complete]
-- [download 45% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 49% complete]
-- [download 50% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 53% complete]
-- [download 54% complete]
-- [download 55% complete]
-- [download 56% complete]
-- [download 57% complete]
-- [download 58% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 62% complete]
-- [download 63% complete]
-- [download 64% complete]
-- [download 65% complete]
-- [download 66% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 69% complete]
-- [download 70% complete]
-- [download 71% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 74% complete]
-- [download 75% complete]
-- [download 76% complete]
-- [download 77% complete]
-- [download 78% complete]
-- [download 79% complete]
-- [download 80% complete]
-- [download 81% complete]
-- [download 82% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 87% complete]
-- [download 88% complete]
-- [download 89% complete]
-- [download 90% complete]
-- [download 91% complete]
-- [download 92% complete]
-- [download 93% complete]
-- [download 94% complete]
-- [download 95% complete]
-- [download 96% complete]
-- [download 97% complete]
-- [download 98% complete]
-- [download 99% complete]
-- [download 100% complete]
-- downloading... done
-- verifying file...
     file='/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/download/tinyxml-2.6.2_2.tar.gz'
-- verifying file... warning: did not verify file - no URL_HASH specified?
-- extracting...
     src='/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/download/tinyxml-2.6.2_2.tar.gz'
     dst='/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 12%] Performing patch step for 'tinyxml'
[ 16%] No update step for 'tinyxml'
[ 20%] Performing configure step for 'tinyxml'
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_INCLUDE_PATH
    CMAKE_LIBRARY_PATH
    CORE_SYSTEM_NAME
    ENABLE_STATIC
    PACKAGE_CONFIG_PATH


-- Build files have been written to: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml-build
[ 25%] Performing build step for 'tinyxml'
make[3]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml-build'
make[4]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml-build'
make[5]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml-build'
Scanning dependencies of target tinyxml
make[5]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml-build'
make[5]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml-build'
[ 25%] Building CXX object CMakeFiles/tinyxml.dir/src/tinystr.cpp.o
[ 50%] Building CXX object CMakeFiles/tinyxml.dir/src/tinyxml.cpp.o
[ 75%] Building CXX object CMakeFiles/tinyxml.dir/src/tinyxmlerror.cpp.o
[100%] Building CXX object CMakeFiles/tinyxml.dir/src/tinyxmlparser.cpp.o
Linking CXX static library libtinyxml.a
make[5]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml-build'
[100%] Built target tinyxml
make[4]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml-build'
make[3]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml-build'
[ 29%] Performing install step for 'tinyxml'
make[3]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml-build'
make[4]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml-build'
make[5]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml-build'
make[5]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml-build'
[100%] Built target tinyxml
make[4]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml-build'
Install the project...
-- Install configuration: "Debug"
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/tinystr.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/tinyxml.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/lib/libtinyxml.a
make[3]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/tinyxml/src/tinyxml-build'
[ 33%] Completed 'tinyxml'
make[2]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'
[ 33%] Built target tinyxml
make[2]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'
Scanning dependencies of target platform
make[2]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'
make[2]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'
[ 37%] Creating directories for 'platform'
[ 41%] Performing download step (download, verify and extract) for 'platform'
-- downloading...
     src='http://mirrors.kodi.tv/build-deps/sources/platform-1.0.10.tar.gz'
     dst='/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/download/platform-1.0.10.tar.gz'
     timeout='none'
-- [download 100% complete]
-- [download 0% complete]
-- [download 2% complete]
-- [download 4% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 9% complete]
-- [download 11% complete]
-- [download 13% complete]
-- [download 15% complete]
-- [download 16% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 21% complete]
-- [download 23% complete]
-- [download 25% complete]
-- [download 26% complete]
-- [download 28% complete]
-- [download 30% complete]
-- [download 31% complete]
-- [download 33% complete]
-- [download 35% complete]
-- [download 37% complete]
-- [download 39% complete]
-- [download 40% complete]
-- [download 42% complete]
-- [download 44% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 49% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 54% complete]
-- [download 56% complete]
-- [download 58% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 63% complete]
-- [download 65% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 70% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 75% complete]
-- [download 77% complete]
-- [download 79% complete]
-- [download 81% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 86% complete]
-- [download 88% complete]
-- [download 89% complete]
-- [download 91% complete]
-- [download 93% complete]
-- [download 94% complete]
-- [download 96% complete]
-- [download 98% complete]
-- [download 100% complete]
-- downloading... done
-- verifying file...
     file='/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/download/platform-1.0.10.tar.gz'
-- verifying file... warning: did not verify file - no URL_HASH specified?
-- extracting...
     src='/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/download/platform-1.0.10.tar.gz'
     dst='/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 45%] No patch step for 'platform'
[ 50%] No update step for 'platform'
[ 54%] Performing configure step for 'platform'
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
-- 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  
-- Looking for __atomic_fetch_add_4 in atomic
-- Looking for __atomic_fetch_add_4 in atomic - found
-- Performing Test HAS_BUILTIN_SYNC_ADD_AND_FETCH
-- Performing Test HAS_BUILTIN_SYNC_ADD_AND_FETCH - Success
-- Performing Test HAS_BUILTIN_SYNC_SUB_AND_FETCH
-- Performing Test HAS_BUILTIN_SYNC_SUB_AND_FETCH - Success
-- Performing Test HAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP
-- Performing Test HAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP - Success
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_INCLUDE_PATH
    CMAKE_LIBRARY_PATH
    ENABLE_STATIC
    PACKAGE_CONFIG_PATH


-- Build files have been written to: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform-build
[ 58%] Performing build step for 'platform'
make[3]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform-build'
make[4]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform-build'
make[5]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform-build'
Scanning dependencies of target platform
make[5]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform-build'
make[5]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform-build'
[ 50%] Building C object CMakeFiles/platform.dir/src/util/fstrcmp.c.o
[100%] Building CXX object CMakeFiles/platform.dir/src/util/StringUtils.cpp.o
Linking CXX static library libplatform.a
make[5]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform-build'
[100%] Built target platform
make[4]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform-build'
make[3]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform-build'
[ 62%] Performing install step for 'platform'
make[3]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform-build'
make[4]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform-build'
make[5]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform-build'
make[5]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform-build'
[100%] Built target platform
make[4]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform-build'
Install the project...
-- Install configuration: "Debug"
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/lib/libplatform.a
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/os.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/posix/os-socket.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/posix/os-threads.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/posix/os-types.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/sockets/cdevsocket.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/sockets/socket.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/sockets/tcp.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/threads/atomics.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/threads/mutex.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/threads/threads.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/util/atomic.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/util/buffer.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/util/StringUtils.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/util/StdString.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/util/timeutils.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/platform/util/util.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/lib/pkgconfig/platform.pc
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/lib/platform/platform-config.cmake
make[3]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/platform/src/platform-build'
[ 66%] Completed 'platform'
make[2]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'
[ 66%] Built target platform
make[2]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'
Scanning dependencies of target kodi-platform
make[2]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'
make[2]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'
[ 70%] Creating directories for 'kodi-platform'
[ 75%] Performing download step (git clone) for 'kodi-platform'
Cloning into 'kodi-platform'...
remote: Counting objects: 257, done.
remote: Total 257 (delta 0), reused 0 (delta 0), pack-reused 256
Receiving objects: 100% (257/257), 136.81 KiB | 0 bytes/s, done.
Resolving deltas: 100% (114/114), done.
Checking connectivity... done.
Note: checking out '054a42f66'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 054a42f... Merge pull request #6 from wsnipex/master
[ 79%] No patch step for 'kodi-platform'
[ 83%] Performing update step for 'kodi-platform'
[ 87%] Performing configure step for 'kodi-platform'
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/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  
-- Looking for __atomic_fetch_add_4 in atomic
-- Looking for __atomic_fetch_add_4 in atomic - found
-- Performing Test HAS_BUILTIN_SYNC_ADD_AND_FETCH
-- Performing Test HAS_BUILTIN_SYNC_ADD_AND_FETCH - Success
-- Performing Test HAS_BUILTIN_SYNC_SUB_AND_FETCH
-- Performing Test HAS_BUILTIN_SYNC_SUB_AND_FETCH - Success
-- Performing Test HAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP
-- Performing Test HAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP - Success
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    ENABLE_STATIC
    OUTPUT_DIR


-- Build files have been written to: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/kodi-platform/src/kodi-platform-build
[ 91%] Performing build step for 'kodi-platform'
make[3]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/kodi-platform/src/kodi-platform-build'
make[4]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/kodi-platform/src/kodi-platform-build'
make[5]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/kodi-platform/src/kodi-platform-build'
Scanning dependencies of target kodiplatform
make[5]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/kodi-platform/src/kodi-platform-build'
make[5]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/kodi-platform/src/kodi-platform-build'
[100%] Building CXX object CMakeFiles/kodiplatform.dir/src/util/XMLUtils.cpp.o
Linking CXX static library libkodiplatform.a
make[5]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/kodi-platform/src/kodi-platform-build'
[100%] Built target kodiplatform
make[4]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/kodi-platform/src/kodi-platform-build'
make[3]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/kodi-platform/src/kodi-platform-build'
[ 95%] Performing install step for 'kodi-platform'
make[3]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/kodi-platform/src/kodi-platform-build'
make[4]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/kodi-platform/src/kodi-platform-build'
make[5]: Entering directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/kodi-platform/src/kodi-platform-build'
make[5]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/kodi-platform/src/kodi-platform-build'
[100%] Built target kodiplatform
make[4]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/kodi-platform/src/kodi-platform-build'
Install the project...
-- Install configuration: "Debug"
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/lib/libkodiplatform.a
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/include/kodi/util/XMLUtils.h
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/lib/pkgconfig/kodiplatform.pc
-- Installing: /home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/depends/lib/kodiplatform/kodiplatform-config.cmake
make[3]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build/build/kodi-platform/src/kodi-platform-build'
[100%] Completed 'kodi-platform'
make[2]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'
[100%] Built target kodi-platform
make[1]: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'
make: Leaving directory `/home/dancho/kodi/src/pvr.iptvsimple-Isengard/build'

Here comes the difference. There is no such directory as pvr.iptvsimple in /home/dancho/kodi/src/xbmc-15.2-Isengard/addons/ . I'm not sure how it appears in previous tests. I read somewhere that it's necessary to copy it manually. Maybe I forgot to remove it after that. Sorry !
So, nothing is installed at all.


RE: Develop PVR addons with new cmake build system - FernetMenta - 2016-01-29

what is this? cmake -DADDONS_TO_BUILD=pvr.iptvsimple-Isengard

the build system does not know this addon. needs to be cmake -DADDONS_TO_BUILD=pvr.iptvsimple

EDIT:

ADDON_SRC_PREFIX is the path to the addon's sources, not xbmc

You have the addon sources in
/home/dancho/kodi/src/pvr.iptvsimple-Isengard

ADDON_SRC_PREFIX=/home/dancho/kodi/src

ADDON_TO_BUILD is the the addon folder relative to ADDON_SRC_PREFIX

ADDON_TO_BUILD=pvr.iptvsimple-Isengard

EDIT2:

sorry, got confused by the path names.can you try with Isengard dropped from the name?


RE: Develop PVR addons with new cmake build system - ironic_monkey - 2016-01-29

yes, what fernet said. the add-on is named pvr.iptvsimple

but it seems you are building on linux. you don't have to use the internal buildsystem on linux unless you are cross building.

1) build and install kodi.
2) build and install add-on. it's available at https://github.com/kodi-pvr/pvr.iptvsimple


RE: Develop PVR addons with new cmake build system - jrussev - 2016-01-29

Yes, that's it ! I changed the name and now everything works just fine.
Great appreciation !


RE: Develop PVR addons with new cmake build system - billb - 2016-02-02

I built latest Kodi on linux

Code:
    /usr/local/kodi -v
        16.0-RC3 Git:2016-01-31-7f8b964-dirty Media Center Kodi
        Copyright (C) 2005-2013 Team Kodi - http://kodi.tv
It runs fine.

Now I'm building PVR addons for it.

I'm switching to the new, cmake-based build system.

I'm buidling pvr.mythtv

Code:
    cd kodi-sources/pvr.mythtv
    mkdir  build
    cd     build
    kodi_DIR=/usr/local/kodi cmake -DPACKAGE_ZIP=1 ..
    make addon-package
        [100%] Built target pvr.mythtv
        Run CPack packaging tool...
        CPack: Create package using ZIP
        CPack: Install projects
        CPack: - Run preinstall target for: pvr.mythtv
        CPack: - Install project: pvr.mythtv
        CPack: -   Install component: pvr.mythtv-4.1.0
        CPack: Create package
        CPack: - package: /usr/local/kodi-source/pvr.mythtv/build/addon-pvr.mythtv-4.1.0.zip generated.
        Built target addon-package

If I unpack the zip,

Code:
    unzip *zip
    cd pvr.mythtv
    ls -1
        addon.xml
        changelog.txt
        icon.png
        pvr.mythtv.so@
        pvr.mythtv.so.16.0@
        pvr.mythtv.so.4.1.0*
        resources/

Comparing to the unpacked zip from a build awhile ago

Code:
    cd ../pvr.mythtv.OLD
    ls -1
        addon.xml
        changelog.txt
        icon.png
        Kodi_MythTV.pvr*
        resources/
The former's got libs, the latter had an executable .pvr.

Is this what I should be expecting -- libs instead of the executable? Or is something wrong with my build still?


RE: Develop PVR addons with new cmake build system - MikeB2013 - 2016-02-02

(2016-02-02, 02:51)billb Wrote: I built latest Kodi on linux

Code:
    /usr/local/kodi -v
        16.0-RC3 Git:2016-01-31-7f8b964-dirty Media Center Kodi
        Copyright (C) 2005-2013 Team Kodi - http://kodi.tv
It runs fine.

Now I'm building PVR addons for it.

I'm switching to the new, cmake-based build system.

I'm buidling pvr.mythtv

Code:
    cd kodi-sources/pvr.mythtv
    mkdir  build
    cd     build
    kodi_DIR=/usr/local/kodi cmake -DPACKAGE_ZIP=1 ..
    make addon-package
        [100%] Built target pvr.mythtv
        Run CPack packaging tool...
        CPack: Create package using ZIP
        CPack: Install projects
        CPack: - Run preinstall target for: pvr.mythtv
        CPack: - Install project: pvr.mythtv
        CPack: -   Install component: pvr.mythtv-4.1.0
        CPack: Create package
        CPack: - package: /usr/local/kodi-source/pvr.mythtv/build/addon-pvr.mythtv-4.1.0.zip generated.
        Built target addon-package

If I unpack the zip,

Code:
    unzip *zip
    cd pvr.mythtv
    ls -1
        addon.xml
        changelog.txt
        icon.png
        pvr.mythtv.so@
        pvr.mythtv.so.16.0@
        pvr.mythtv.so.4.1.0*
        resources/

Comparing to the unpacked zip from a build awhile ago

Code:
    cd ../pvr.mythtv.OLD
    ls -1
        addon.xml
        changelog.txt
        icon.png
        Kodi_MythTV.pvr*
        resources/
The former's got libs, the latter had an executable .pvr.

Is this what I should be expecting -- libs instead of the executable? Or is something wrong with my build still?

The output is correct for latest pvr.mythtv (built from master)


RE: Develop PVR addons with new cmake build system - wsnipex - 2016-02-02

yes, its correct.
The old .pvr was just a renamed shared lib as well. We simply switched to using proper original filenames.


RE: Develop PVR addons with new cmake build system - fuelty - 2016-02-05

Hi all, may I ask to someone of you to build an add-on for me?

The add-on is here: https://github.com/simphax/pvr.iptvsimple

I'm not too confident with this. Someone who want to help me? Thanks


RE: Develop PVR addons with new cmake build system - negge - 2016-02-05

The instructions are in the first post, or you can try to apply the instructions from the README here: https://github.com/kodi-pvr/pvr.hts/


RE: Develop PVR addons with new cmake build system - garbear - 2016-02-05

I have provided a Readme for peripheral.joystick: https://github.com/kodi-game/peripheral.joystick


RE: Develop PVR addons with new cmake build system - robello84 - 2016-02-15

Hi, i try to compile iptvsimpleclient on version 1.12.6 because is the perfect version with fast zapping. i try to follow the comile from github but compile always the last version.

I have found in openelec sources http://sources.openelec.tv/devel/pvr.iptvsimple-953477b.tar.xz the right version i need.

I try to follow this istruction:
Linux

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
make

But build always the last version.

now, how i can compile and make zip package for openelec version?

Thank you