Kodi Community Forum

Full Version: [SOLVED] [HELP NEEDED] compiling addon-vnsi on fedora
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I am a little bit desperated already.
Finally managed to compile and run 15.1 Isengard on my fedora (64) box.
kodi is installed in /usr/local/bin/ (default)

Now I downloaded pvr.vdr.vnsi addon from github, then I run

cmake CMakeLists.txt
and am getting the following error:

Quote:root@kork pvr.vdr.vnsi-master]# cmake CMakeLists.txt
CMake Error at CMakeLists.txt:10 (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!
See also "/root/tmpins/pvr.vdr.vnsi-master/CMakeFiles/CMakeOutput.log".

No kodiplatformConfig.cmake or kodiplatform-config.cmake within /usr or /root/tmpins (where I actually built kodi too)?!

Could anyone give me some hints please? Already installed platform, but did not really help...

Thanks in advance!

Otto
you need to install kodiplatform as well. github.com/xbmc/kodiplatform
(2015-10-03, 21:11)ironic_monkey Wrote: [ -> ]you need to install kodiplatform as well. github.com/xbmc/kodiplatform

Thanks!
Tried this as well, nearly the same error:
Quote:[root@kork kodi-platform-master]# cmake CMakeLists.txt
-- The C compiler identification is GNU 5.1.1
-- The CXX compiler identification is GNU 5.1.1
-- Check for working C compiler: /bin/cc
-- Check for working C compiler: /bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - 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!
See also "/root/tmpins/kodi-platform-master/CMakeFiles/CMakeOutput.log".
See also "/root/tmpins/kodi-platform-master/CMakeFiles/CMakeError.log".
i thought you said you installed platform from https://github.com/Pulse-Eight/platform
(2015-10-03, 22:30)ironic_monkey Wrote: [ -> ]i thought you said you installed platform from https://github.com/Pulse-Eight/platform

No, just from the github-link you provided...
install platform, it is a dependency of kodiplatform. then install kodiplatform. then the addon.
(2015-10-03, 22:49)ironic_monkey Wrote: [ -> ]install platform, it is a dependency of kodiplatform. then install kodiplatform. then the addon.

stupid me. had a typo when making kodi-platform so, everthing was installed to /usr/local, (unfortuately hit a comma before enter ^^)
hmmm... but now I am getting the following error when I try to compile the vnsi-addon:

Quote:/root/tmpins/pvr.vdr.vnsi-master/src/client.cpp:540:25: Fehler: »PVR_TIMER_TYPE« wurde in diesem Gültigkeitsbereich nicht definiert
PVR_ERROR GetTimerTypes(PVR_TIMER_TYPE types[], int *size)
^
/root/tmpins/pvr.vdr.vnsi-master/src/client.cpp:540:49: Fehler: expected primary-expression before »int«
PVR_ERROR GetTimerTypes(PVR_TIMER_TYPE types[], int *size)
^
/root/tmpins/pvr.vdr.vnsi-master/src/client.cpp:540:58: Fehler: Ausdrucksliste als zusammengesetzten Ausdruck in Initialisierung behandelt [-fpermissive]
PVR_ERROR GetTimerTypes(PVR_TIMER_TYPE types[], int *size)
^
/root/tmpins/pvr.vdr.vnsi-master/src/client.cpp:541:1: Fehler: expected »,« or »;« before »{« token
{
^
CMakeFiles/pvr.vdr.vnsi.dir/build.make:62: recipe for target 'CMakeFiles/pvr.vdr.vnsi.dir/src/client.cpp.o' failed
make[2]: *** [CMakeFiles/pvr.vdr.vnsi.dir/src/client.cpp.o] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/pvr.vdr.vnsi.dir/all' failed
make[1]: *** [CMakeFiles/pvr.vdr.vnsi.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

Sorry, it is German. Fehler means error. And wurde in diesem Gültigkeitsbereich nicht definiert should mean: was not declared in this scope...
Ok, worked now.
There is a seperate branch for kodi 15 for vnsi...
Thanks for your help!

Cheers,

Otto