Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540472 - media-tv/kodi-14.1 should depend on media-libs/sdl-image
Summary: media-tv/kodi-14.1 should depend on media-libs/sdl-image
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Xbox project
URL:
Whiteboard:
Keywords:
: 544206 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-02-18 11:30 UTC by pigge2
Modified: 2015-04-11 20:45 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pigge2 2015-02-18 11:30:57 UTC
When compiling kodi-14.1 the build fails during the 'configure' part if sdl-image isn't installed
Comment 1 bobbykipper 2015-02-23 23:33:12 UTC
I confirm. Same here. Fresh amd64 install.
Comment 2 Matt Linzer 2015-03-02 13:35:06 UTC
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"
 *
Comment 3 Michael Lange 2015-03-05 11:51:02 UTC
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
Comment 4 Stephan Reinhard 2015-03-23 17:59:01 UTC
confirm

but first after adding useflags bluray pvr and mysql
Comment 5 Tupone Alfredo gentoo-dev 2015-03-26 21:59:12 UTC
It should be fixed now.
Comment 6 Tupone Alfredo gentoo-dev 2015-03-26 22:01:04 UTC
*** Bug 544206 has been marked as a duplicate of this bug. ***
Comment 7 moshe2go 2015-03-27 06:40:29 UTC
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
Comment 8 Steffen Hau 2015-03-27 12:32:46 UTC
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)
Comment 9 hal 2015-03-27 12:48:37 UTC
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
Comment 10 hal 2015-03-27 12:49:24 UTC
s/be\ IUSE/by\ IUSE
Comment 11 Aaron Bauman (RETIRED) gentoo-dev 2015-03-28 11:35:04 UTC
(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
Comment 12 Tupone Alfredo gentoo-dev 2015-03-29 09:28:16 UTC
Retest again please. Hope I fixed it now
Comment 13 moshe2go 2015-03-29 12:42:56 UTC
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
Comment 14 hal 2015-03-29 13:42:37 UTC
(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.
Comment 15 hal 2015-03-29 13:43:11 UTC
(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. :)