When compiling kodi-14.1 the build fails during the 'configure' part if sdl-image isn't installed
I confirm. Same here. Fresh amd64 install.
Can also confirm. Output below: ... checking for ALSA... yes checking for DBUS... yes checking for SDL2... yes checking for main in -lSDL_image... no configure: error: Could not find a required library. Please see the README for your platform. !!! Please attach the following file when seeking support: !!! /var/tmp/portage/media-tv/kodi-14.1/work/xbmc-14.1-Helix/config.log * ERROR: media-tv/kodi-14.1::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 3848: Called econf '--docdir=/usr/share/doc/kodi-14.1' '--disable-ccache' '--disable-optimizations' '--with-ffmpeg=shared' '--disable-airplay' '--disable-avahi' '--disable-libbluray' '--disable-libcap' '--disable-libcec' '--disable-dvdcss' '--disable-debug' '--enable-fishbmc' '--disable-gles' '--enable-goom' '--enable-joystick' '--disable-mid' '--enable-mysql' '--enable-nfs' '--enable-gl' '--disable-profiling' '--enable-projectm' '--disable-pulse' '--enable-mythtv' '--enable-rsxs' '--disable-rtmp' '--disable-samba' '--enable-ssh' '--enable-libusb' '--disable-gtest' '--enable-upnp' '--enable-vaapi' '--enable-vdpau' '--enable-webserver' '--enable-x11' '--enable-xrandr' * phase-helpers.sh, line 584: Called die * The specific snippet of code: * die "econf failed" *
confirm checking for main in -lSDL_image... no configure: error: Could not find a required library. Please see the README for your platform. fixed by updating the kodi-ebuild by hand and adding media-libs/sdl-image to dependencies
confirm but first after adding useflags bluray pvr and mysql
It should be fixed now.
*** Bug 544206 has been marked as a duplicate of this bug. ***
I tried today to emerge kodi again, but get the same error - Need to install something before? Anyway- looks that this bug is not fixed. Regards
With the latest changes, the configure phase is now successful, but compiling failes later: g++ -I. -I/home/gentoo/tmp/portage/media-tv/kodi-14.1/work/xbmc-14.1-Helix/lib -I/home/gentoo/tmp/portage/media-tv/kodi-14.1/work/xbmc-14.1-Helix/xbmc -I/home/gentoo/tmp/portage/media-tv/kodi-14.1/work/xbmc-14.1-Helix/xbmc/linux -g -O2 -DTARGET_POSIX -DUSE_LZO_PACKING -DTARGET_POSIX -DTARGET_LINUX -D_LINUX -D_FILE_DEFINED -D__STDC_CONSTANT_MACROS -DBIN_INSTALL_PATH="\"/usr/lib64/kodi\"" -DINSTALL_PATH="\"/usr/share/kodi\"" -D'GIT_REV="exported"' -DHAVE_CONFIG_H md5.cpp SDL_anigif.cpp XBTFWriter.cpp XBMCTex.cpp /home/gentoo/tmp/portage/media-tv/kodi-14.1/work/xbmc-14.1-Helix/xbmc/guilib/XBTF.cpp -lSDL_image -lSDL -llzo2 -L/home/gentoo/tmp/portage/media-tv/kodi-14.1/work/xbmc-14.1-Helix/lib/libsquish -lsquish-native -o TexturePacker In file included from SDL_anigif.cpp:24:0: SDL_anigif.h:24:21: fatal error: SDL/SDL.h: No such file or directory #include <SDL/SDL.h> ^ compilation terminated. XBMCTex.cpp:33:21: fatal error: SDL/SDL.h: No such file or directory #include <SDL/SDL.h> ^ compilation terminated. Makefile:34: recipe for target 'TexturePacker' failed make[1]: *** [TexturePacker] Error 1 make[1]: Leaving directory '/home/gentoo/tmp/portage/media-tv/kodi-14.1/work/xbmc-14.1-Helix/tools/TexturePacker' Makefile:544: recipe for target 'tools/TexturePacker/TexturePacker' failed make: *** [tools/TexturePacker/TexturePacker] Error 2 Both files uncoditionally include <SDL/SDL.h> which is not present on my system. It looks like libsdl is a hard dependency for TexturePacker in Kodi 14.x. So please also disable TexturePacker when SDL is disabled (see http://forum.kodi.tv/showthread.php?tid=214436&pid=1887441#pid1887441)
As it is solved right now SDL can be installed be IUSE="sdl" for both versions 14.x and the live sources which is not correct since post 14.x versions do require SDL only if --enable-joystick is set: https://bugs.gentoo.org/show_bug.cgi?id=536602
s/be\ IUSE/by\ IUSE
(In reply to Steffen Hau from comment #8) > With the latest changes, the configure phase is now successful, but > compiling failes later: > > g++ -I. > -I/home/gentoo/tmp/portage/media-tv/kodi-14.1/work/xbmc-14.1-Helix/lib > -I/home/gentoo/tmp/portage/media-tv/kodi-14.1/work/xbmc-14.1-Helix/xbmc > -I/home/gentoo/tmp/portage/media-tv/kodi-14.1/work/xbmc-14.1-Helix/xbmc/ > linux -g -O2 -DTARGET_POSIX -DUSE_LZO_PACKING -DTARGET_POSIX -DTARGET_LINUX > -D_LINUX -D_FILE_DEFINED -D__STDC_CONSTANT_MACROS > -DBIN_INSTALL_PATH="\"/usr/lib64/kodi\"" > -DINSTALL_PATH="\"/usr/share/kodi\"" -D'GIT_REV="exported"' -DHAVE_CONFIG_H > md5.cpp SDL_anigif.cpp XBTFWriter.cpp XBMCTex.cpp > /home/gentoo/tmp/portage/media-tv/kodi-14.1/work/xbmc-14.1-Helix/xbmc/guilib/ > XBTF.cpp -lSDL_image -lSDL -llzo2 > -L/home/gentoo/tmp/portage/media-tv/kodi-14.1/work/xbmc-14.1-Helix/lib/ > libsquish -lsquish-native -o TexturePacker > In file included from SDL_anigif.cpp:24:0: > SDL_anigif.h:24:21: fatal error: SDL/SDL.h: No such file or directory > #include <SDL/SDL.h> > ^ > compilation terminated. > XBMCTex.cpp:33:21: fatal error: SDL/SDL.h: No such file or directory > #include <SDL/SDL.h> > ^ > compilation terminated. > Makefile:34: recipe for target 'TexturePacker' failed > make[1]: *** [TexturePacker] Error 1 > make[1]: Leaving directory > '/home/gentoo/tmp/portage/media-tv/kodi-14.1/work/xbmc-14.1-Helix/tools/ > TexturePacker' > Makefile:544: recipe for target 'tools/TexturePacker/TexturePacker' failed > make: *** [tools/TexturePacker/TexturePacker] Error 2 > > Both files uncoditionally include <SDL/SDL.h> which is not present on my > system. It looks like libsdl is a hard dependency for TexturePacker in Kodi > 14.x. So please also disable TexturePacker when SDL is disabled (see > http://forum.kodi.tv/showthread.php?tid=214436&pid=1887441#pid1887441) +1 Just confirmed the exact same issue with latest tree: 26 Mar 2015; Tupone Alfredo <tupone@gentoo.org> kodi-14.1.ebuild, kodi-9999.ebuild: Fix autodetection of SDL and add missing dependency. Bug #540472
Retest again please. Hope I fixed it now
After emerge --sync I succeeded to install kodi! At the end it asked me: * Make sure the "lvm" init script is in the runlevels: * # rc-update add lvm boot * Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want * to enable lvm autoactivation and metadata caching. Please advise if it is really needed? Also - I saw that samba is installed - In case of no using windows OS and no need of samba - Can we remove it by any -samba USE flags, or it is needed to kodi anyway? Thanks
(In reply to moshe2go from comment #13) > After emerge --sync I succeeded to install kodi! > At the end it asked me: > * Make sure the "lvm" init script is in the runlevels: > * # rc-update add lvm boot > * Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want > * to enable lvm autoactivation and metadata caching. > Please advise if it is really needed? Unrelated to this report. > Also - I saw that samba is installed - In case of no using windows OS and no > need of samba - Can we remove it by any -samba USE flags, or it is needed to > kodi anyway? IUSE="+samba" exists already.
(In reply to Tupone Alfredo from comment #12) > Retest again please. Hope I fixed it now At least for the live ebuild I can confirm that it looks good now. :)