2015-05-09, 23:54
ok, my fault. i executed cmake manually before which led to this issue.
(2015-03-11, 10:23)ironic_monkey Wrote: install kodi-platform, https://github.com/xbmc/kodi-platform.
you also have to execute the install target of kodi to get the cmake helpers and addon bindings installed.
(2015-04-01, 20:04)wsnipex Wrote:Code:cd /home/carel/src/kodi/kodi-platform
cmake -DCMAKE_INSTALL_PREFIX=/usr # or /usr/local, which is the default
make && sudo make install
cd /home/carel/src/kodi/pvr.vdr.vnsi
cmake -DCMAKE_INSTALL_PREFIX=/usr # must match kodis prefix
make && sudo make install
/home/jdoe/KODI.d/xbmc-master/ # Source code for Kodi v15b2/Isengard.
/home/jdoe/KODI.d/kodi-platform-master # Source code for the Kodi Platform
/home/jdoe/KODI.d/pvr.stalker # Soure code for the pvr.stalker addon
/opt/KODI.d # The directory under which my compiled Kodi has been installed.
$ cd /home/jdoe/KODI.d/kodi-platform-master && cmake -DCMAKE_INSTALL_PREFIX=/opt/KODI.d
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.
(2015-05-26, 09:23)wsnipex Wrote: as of lately OS platform specific stuff has been split out of kodi-platform into https://github.com/Pulse-Eight/platform
So, you need to install this lib first as well.
cd /home/carel/src/kodi/platform-master # Obtained from here: https://github.com/Pulse-Eight/platform
cmake -DCMAKE_INSTALL_PREFIX=/usr # or /usr/local, which is the default
make && sudo make install
cd /home/carel/src/kodi/kodi-platform
cmake -DCMAKE_INSTALL_PREFIX=/usr # or /usr/local, which is the default
make && sudo make install
cd /home/carel/src/kodi/pvr.vdr.vnsi
cmake -DCMAKE_INSTALL_PREFIX=/usr # must match kodis prefix
make && sudo make install
cmake -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=$HOME/kodi \
..
CMake Error at CMakeLists.txt:45 (install):
install TARGETS given no ARCHIVE DESTINATION for static library target
"platform".
cmake -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=$HOME/kodi \
-DCMAKE_INSTALL_LIBDIR=$HOME/kodi/lib \
-DCMAKE_INSTALL_LIBDIR_NOARCH=$HOME/kodi/lib \
..
CMake Error at CMakeLists.txt:41 (message):
-L/home/garrett/kodi//home/garrett/kodi/lib -lplatform;-lpthread
prefix=/home/garrett/kodi
libdir=/home/garrett/kodi//home/garrett/kodi/lib
includedir=/home/garrett/kodi/include
DEPENDENCIES=-lpthread
Name: platform
Description: Platform support library 1.0
Version: 1.0
Libs: -L${libdir} -lplatform
Cflags: -I${includedir}
CMake Error at CMakeLists.txt:41 (message):
-L/home/garrett/kodi/lib -lplatform;-lpthread
(2015-07-25, 09:33)wsnipex Wrote: garbear, can you provide full output? Did you clean kodi-platform after the libplatform fix?
$ mkdir build && cd build
$ cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$HOME/kodi ..
-- The C compiler identification is GNU 4.9.1
-- The CXX compiler identification is GNU 4.9.1
-- 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
-- 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
CMake Error at CMakeLists.txt:41 (message):
-L/home/garrett/kodi/lib -lplatform;-lpthread
-- Configuring incomplete, errors occurred!
See also "/home/garrett/Documents/kodi-platform/build/CMakeFiles/CMakeOutput.log".
See also "/home/garrett/Documents/kodi-platform/build/CMakeFiles/CMakeError.log".
else(WIN32)
set (platform_LIBRARY "-L/usr/lib/x86_64-linux-gnu -lplatform")
endif(WIN32)
set (platform_LIBRARIES ${platform_LIBRARY} "-lpthread")
else(WIN32)
set (platform_LIBRARY "-L/usr/lib/x86_64-linux-gnu -lplatform")
endif(WIN32)
set (platform_LIBRARIES "${platform_LIBRARY} -lpthread")
CMake Error at CMakeLists.txt:41 (message):
-L/home/garrett/kodi/lib -lplatform -lpthread