I´ve got the latest stable media-libs/faad2-2.6.1-r2 installed but XBMC now fails because of the change to use external librarys https://bugs.gentoo.org/275844 from the Log file: checking for main in -lmp4ff... no configure: error: Could not find a required library. Please see the README for your platform. With media-libs/faad2-2.7-r1 this problem is solved. > Restore mp4ff shared library with Debian patch. Reproducible: Always
Please don't CC maintainers/herds yourself. Leave that to the bug-wranglers.
Created attachment 198663 [details, diff] improve use flags and dependencies in the ebuild diff that requires media-libs/faad2-2.7-r1 and adds some use flags and makes some dependencies conditional.
This worked, but I still got this: checking for main in -lavcodec... no configure: error: Could not find a required library. Please see the README for your platform. W
Update-- a revdep-rebuild re-emerged a couple of things including vlc and ffmpeg and I think an ffmpeg plugin of some sort... I then got a similar error dealing with libmpcdec. So I had to also emerge libmpcdec to get it to finally get going. It still didn't properly build, but that's another bug... W
i think there are some more requrired deps according to the README.linux coming with the svn source: You will then need the required libraries. The following is the list of packages that are used to build XBMC packages on Debian/Ubuntu (with all supported external libraries enabled). Build-Depends: debhelper (>= 7.0.50), quilt, python-support, cmake, autotools-dev, autoconf, automake, unzip, libboost-dev, libgl1-mesa-dev | libgl-dev, libglu-dev, libglew-dev, libmad0-dev, libjpeg-dev, libsamplerate-dev, libogg-dev, libvorbis-dev, libfreetype6-dev, libfontconfig-dev, libbz2-dev, libfribidi-dev, libsqlite3-dev, libmysqlclient-dev, libasound-dev, libpng-dev, libpcre3-dev, liblzo2-dev, libcdio-dev, libsdl-dev, libsdl-image1.2-dev, libsdl-mixer1.2-dev, libenca-dev, libjasper-dev, libxt-dev, libxtst-dev, libxmu-dev, libxinerama-dev, libcurl4-gnutls-dev | libcurl-dev, libdbus-1-dev, libhal-storage-dev, libhal-dev, libpulse-dev, libavahi-common-dev, libavahi-client-dev, libxrandr-dev, libavcodec-dev, libavformat-dev, libavutil-dev, libpostproc-dev, libswscale-dev, liba52-dev, libdts-dev, libfaad-dev, libmp4ff-dev, libmpeg2-4-dev, libass-dev, libmpcdec-dev, libflac-dev, libwavpack-dev, python-dev, gawk, gperf, nasm [!amd64], libcwiid1-dev, libbluetooth-dev, libmms-dev
Yeah, now it dumps with: `cat ../../DllLoader/exports/wrapper.def` ../../DllLoader/exports/wrapper.o make[1]: Leaving directory `/var/tmp/portage/media-tv/xbmc-9999/work/xbmc-9999/xbmc/cores/paplayer/MACDll' xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxers.a(DVDDemuxFFmpeg.o): In function `CDVDDemuxFFmpeg::Read()': DVDDemuxFFmpeg.cpp:(.text+0x2c3d): undefined reference to `av_free_packet' DVDDemuxFFmpeg.cpp:(.text+0x2cfd): undefined reference to `av_free_packet' DVDDemuxFFmpeg.cpp:(.text+0x2d8e): undefined reference to `av_free_packet' collect2: ld returned 1 exit status av_free_packet seems to be related to ffmpeg. I tried reinstalling and resinstalled from svn but no dice..
i just modified the ebuild for usage with internal libs. it compiles fine. see: http://sprunge.us/eBLU maybe a flag to choose the usage of internal or external flags would be usefull. (In reply to comment #6) > Yeah, now it dumps with: > > `cat ../../DllLoader/exports/wrapper.def` > ../../DllLoader/exports/wrapper.o > make[1]: Leaving directory > `/var/tmp/portage/media-tv/xbmc-9999/work/xbmc-9999/xbmc/cores/paplayer/MACDll' > xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxers.a(DVDDemuxFFmpeg.o): In function > `CDVDDemuxFFmpeg::Read()': > DVDDemuxFFmpeg.cpp:(.text+0x2c3d): undefined reference to `av_free_packet' > DVDDemuxFFmpeg.cpp:(.text+0x2cfd): undefined reference to `av_free_packet' > DVDDemuxFFmpeg.cpp:(.text+0x2d8e): undefined reference to `av_free_packet' > collect2: ld returned 1 exit status > > av_free_packet seems to be related to ffmpeg. I tried reinstalling and > resinstalled from svn but no dice.. >
Also remember that xbmc-9999 needs >ffmpeg-0.5-r* nowdays...
FWIW, I was eventually able to build after going into the svn directory at /usr/portage/distfiles/svn-src/xbmc/branches/linuxport/XBMC/ and doing a "make clean". Did the same for the svn version of ffmpeg. Something must have gotten screwed up somehow. Maybe this will help anyone else w/compilation errors of the -9999 version... W
Latest svn builds look for libsmbclient so it's needed sys-fs/samba dependency. I just tweaked an ebuild to add that dependency and add two extra use flags: avahi and external (disabled by default). The first one adds the optional support for avahi while the second one enables/disables the support for external libraries. I also added this patch (http://xbmc.org/trac/changeset/22043) to enable VDPAU for SD mpeg-2 (applied only if vdpau is enabled). wget http://sprunge.us/jecA -O files/vdpau-sd-mpeg2.patch wget http://sprunge.us/VeiT -O xbmc-9999.ebuild tested with build 22184 on amd64 with this use flags enabled: "alsa avahi opengl vdpau"
Couple of duplicate bugs on this one (270962, 281078) for what is really one bug, missing dependencies in the xbmc-9999.ebuild (In reply to comment #10) > The first one adds the optional support for avahi while the second one > enables/disables the support for external libraries. It is Gentoo's policy to use system libs instead of duplication with bundled libs wherever possible, hence the non-optional '--enable-external-libraries' in the original ebuild. > I also added this patch (http://xbmc.org/trac/changeset/22043) to enable VDPAU > for SD mpeg-2 (applied only if vdpau is enabled). That's not a patch but a diff between two SVN revisions, so by installing anything greater than or equal to revision 22043, you get the SD mpeg-2 changes anyway. Missing dependencies are now: avahi? ( net-dns/avahi ) dev-libs/tre >=media-libs/faad2-2.7-r1 media-libs/libmpcdec media-libs/libmpeg2 media-video/ffmpeg >=net-fs/samba-3.2 virtual/opengl (should be made non-optional, see bug #272852)
xbmc uses internal faad2 now http://sources.gentoo.org/media-tv/xbmc/xbmc-9999.ebuild?r1=1.28&r2=1.29