Kodi Community Forum

Full Version: Trying to install kodi latest on centos 7.3 but getting lot of errors?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
when i ran sudo cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local I got error like below :

CMake Warning at tools/depends/native/TexturePacker/CMakeLists.txt:24 (message): giflib support is experimental.  Consider updating to giflib5 
-- Could NOT find LCMS2 (missing: LCMS2_LIBRARY LCMS2_INCLUDE_DIR)
-- Could NOT find LircClient (missing: LIRCCLIENT_LIBRARY LIRCCLIENT_INCLUDE_DIR)
-- Could NOT find MDNS (missing: MDNS_LIBRARY MDNS_INCLUDE_DIR)
-- Could NOT find PulseAudio (missing: PULSEAUDIO_LIBRARY PULSEAUDIO_MAINLOOP_LIBRARY PULSEAUDIO_SIMPLE_LIBRARY PULSEAUDIO_INCLUDE_DIR) (Required is at least version "2.0.0")
-- Could NOT find Sndio (missing: SNDIO_LIBRARY SNDIO_INCLUDE_DIR)
-- Could NOT find SSH (missing: SSH_LIBRARY SSH_INCLUDE_DIR)
-- Could NOT find NFS (missing: NFS_LIBRARY NFS_INCLUDE_DIR)
-- Could NOT find MariaDBClient (missing: MARIADBCLIENT_LIBRARY MARIADBCLIENT_INCLUDE_DIR)
-- Could NOT find Shairplay (missing: SHAIRPLAY_LIBRARY SHAIRPLAY_INCLUDE_DIR HAVE_SHAIRPLAY_CALLBACK_CLS)

 I ignored it and ran cmake --build . -- VERBOSE=1
CMakeError.log here : https://paste.ubuntu.com/p/qHwXXKtFW6

[root@localhost xbmc]# uname -r
3.10.0-862.el7.x86_64
[root@localhost xbmc]# cmake --version
cmake version 3.10.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).
[root@localhost xbmc]# python --version
Python 3.6.5

Please help as i dont find a good resource online to install kodi on cent os 7
You miss pthread and dependencies. Please search this forum for centos - we had that 4 times already iirc.
Thank you.
Somehow i managed to get it( kodi 17.6 ) installed.I am not sure how properly it is installed because i was see a lot of warnings/deprecated etc while compiling/install.

To check for dependencies i downloaded kodi src.rpm file and ran rpmbuild --rebuild <kodi.src.rpm> it gave me a lot of missing dependencies to be installed. I installed them all along with sshlib.
followed source : https://kodi.wiki/view/HOW-TO:Compile_Ko...Hat/CentOS

ran these:

sudo git clone git://github.com/xbmc/xbmc.git
git checkout 7e52c1d

$ make -C tools/depends/native/JsonSchemaBuilder/
$ sudo cp tools/depends/native/JsonSchemaBuilder/bin/JsonSchemaBuilder /usr/local/bin
$ sudo chmod 775 /usr/local/bin/JsonSchemaBuilder

$ PREFIX="/usr/local" # You could also make this /opt/kodi for instance. Whatever you like
$ sudo make -C ./tools/depends/target/libdcadec PREFIX=${PREFIX}
$ sudo make -C ./tools/depends/target/crossguid PREFIX=${PREFIX}
$ export PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig"
$ export CFLAGS="$CFLAGS -I${PREFIX}/include"
$ export CXXFLAGS="$CFLAGS -I${PREFIX}/include"


sudo sed --in-place=.BAK 's#<\(afp_protocol\|libafpclient\).h>#<afpfs-ng/\1.h>#' /usr/include/afpfs-ng/afp.h

./bootstrap
./configure
make
make install