Durung link of the vdr module it fails because it does not find swscale library. Reproducible: Always Steps to Reproduce: 1. unmask vdr-graphtft-0.1.21_alpha 2. emerge vdr-graphtft 3. Actual Results: g++ -O2 -march=pentium3 -pipe -fomit-frame-pointer -fPIC -g -ggdb -O0 -Wl,-O1 -shared graphtft.o dspitems.o transfer.o display.o i18n.o setup.o osd.o theme.o common.o sysinfo.o imlibrenderer/imlibrenderer.o imlibrenderer/dvbrenderer/player.o imlibrenderer/dvbrenderer/dvbrenderer.o imlibrenderer/fbrenderer/fbrenderer.o imlibrenderer/dvbrenderer/mpeg2encoder.o tcpchannel.o comthread.o renderer.o imlibrenderer/dvbrenderer/quantize.o dfbrenderer/dfbrenderer.o dfbrenderer/cache.o `imlib2-config --libs` `Magick++-config --libs` `pkg-config libgtop-2.0 --libs` `directfb-config --libs` -L/usr/include/ffmpeg/libavcodec -lavcodec -lswscale -o libvdr-graphtft.so /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lswscale collect2: ld returned 1 exit status make: *** [libvdr-graphtft.so] Error 1 Expected Results: Link executes properly Output of emerge --info: Portage 2.1.4.5 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3 i686) ================================================================= System uname: 2.6.24-gentoo-r3 i686 Pentium III (Coppermine) Timestamp of tree: Sun, 09 Nov 2008 00:35:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p33 dev-lang/python: 2.4.4-r9, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="de_DE@euro" LDFLAGS="-Wl,-O1" LINGUAS="de en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi aio alsa arts berkdb bzip2 cli cracklib crypt cups dbus dga dri dvb ffmpeg foomaticdb fortran ftp gdbm gif gphoto2 gpm hal iconv isdnlog jpeg kde kdehiddenvisibility lirc mad midi mng mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly nvram ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 readline reflection samba session spl ssl svg sysfs syslog tcpd theora tiff truetype unicode usb v4l v4l2 vorbis win32codecs wmf x264 x86 xinetd xorg xpm xv xvid yaepg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="ttpci" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" LIRC_DEVICES="devinput hauppauge hauppauge_dvb serial" USERLAND="GNU" VIDEO_CARDS="fbdev i810 v4l vesa vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 171256 [details] build.log complete build.log
Apparently this needs an ffmpeg version that has swscale enabled. Try upgrading to a testing version of ffmpeg, and the maintainers might want to make the ffmpeg dependency more specific.
I've umasked ffmpeg-0.4.9_p20070616-r20 which should have (according to ChangeLog) swscale support enabled. Now i get another error: ------------------------ cut ------------------------- g++ -O2 -march=pentium3 -pipe -fomit-frame-pointer -fPIC -g -ggdb -O0 -c -DCONFDIR=\"/etc/vdr\" -DUSE_CHANNELSCAN -DUSE_GRAPHTFT -DUSE_PLUGINMISSING -DUSE_YAEPG -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"graphtft"' -DHAVE_IMAGE_MAGICK -DHAVE_IMLIB -DWITH_SYSINFO -DWITH_TCP_COM -DHAVE_DFB -DHAVE_FFMPEG -DHAVE_SWSCALE -I/usr/include -I. -I./imlibrenderer -I./imlibrenderer/fbrenderer -I./imlibrenderer/dvbrenderer -I./dfbrenderer -I./imlibrenderer/dmyrenderer `pkg-config libgtop-2.0 --cflags` -I/src -I/usr/include/ImageMagick `directfb-config --cflags` -I/usr/include/ffmpeg -o dfbrenderer/cache.o dfbrenderer/cache.c /usr/include/ffmpeg/avcodec.h:2226: warning: attribute ignored in declaration of 'struct ImgReSampleContext' /usr/include/ffmpeg/avcodec.h:2226: warning: attribute for 'struct ImgReSampleContext' must follow the 'struct' keyword /usr/include/ffmpeg/avcodec.h:2237: warning: 'ImgReSampleContext' is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2231) /usr/include/ffmpeg/avcodec.h:2247: warning: 'ImgReSampleContext' is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2231) /usr/include/ffmpeg/avcodec.h:2253: warning: 'ImgReSampleContext' is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2231) /usr/include/ffmpeg/avcodec.h:2258: warning: 'ImgReSampleContext' is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2231) g++ -O2 -march=pentium3 -pipe -fomit-frame-pointer -fPIC -g -ggdb -O0 -Wl,-O1 -shared graphtft.o dspitems.o transfer.o display.o i18n.o setup.o osd.o theme.o common.o sysinfo.o imlibrenderer/imlibrenderer.o imlibrenderer/dvbrenderer/player.o imlibrenderer/dvbrenderer/dvbrenderer.o imlibrenderer/fbrenderer/fbrenderer.o imlibrenderer/dvbrenderer/mpeg2encoder.o tcpchannel.o comthread.o renderer.o imlibrenderer/dvbrenderer/quantize.o dfbrenderer/dfbrenderer.o dfbrenderer/cache.o `imlib2-config --libs` `Magick++-config --libs` `pkg-config libgtop-2.0 --libs` `directfb-config --libs` -L/usr/include/ffmpeg/libavcodec -lavcodec -lswscale -o libvdr-graphtft.so graphtft.cc:13:23: error: Magick++.h: No such file or directory graphtft.cc:22: error: 'Magick' is not a namespace-name graphtft.cc:22: error: expected namespace-name before ';' token graphtft.cc: In member function 'void GraphTft::updateImage(const uchar*, int)': graphtft.cc:305: error: 'Blob' was not declared in this scope graphtft.cc:305: error: expected `;' before 'blob' graphtft.cc:306: error: 'Image' was not declared in this scope graphtft.cc:306: error: expected `;' before 'im' graphtft.cc:308: error: 'im' was not declared in this scope graphtft.cc:308: error: 'blob' was not declared in this scope graphtft.cc:312: error: 'CharPixel' was not declared in this scope graphtft.cc: At global scope: graphtft.cc:277: warning: unused parameter 'buffer' make: *** [graphtft.o] Error 1 ------------------------ cut ------------------------- Current stable ffmpeg on my system is ffmpeg-0.4.9_p20070616-r3 Any other hints ?
Oh i forgot - imagemagick (media-gfx/imagemagick-6.4.0.6) is installed. The missing file exists and can be located at /usr/include/ImageMagick/Magick++.h Coding probem ?
Maybe Magick++.h was installed in /usr/include in the past and now moved to /usr/include/ImageMagick. If so, we could either patch the #include lines, or add -I/usr/include/ImageMagick to compiler params. (CPPFLAGS)
(In reply to comment #5) > Maybe Magick++.h was installed in /usr/include in the past and now moved to > /usr/include/ImageMagick. > > If so, we could either patch the #include lines, or add > -I/usr/include/ImageMagick to compiler params. (CPPFLAGS) > How I fixed it for my. change scr_compile() to src_compile() { vdr-plugin_src_compile if use graphtft-fe; then cd "${S}"/graphtft-fe cp "${FILESDIR}/build.sh.mod" build.sh ./clean.sh ./build.sh || die "build.sh failed" fi } edit /usr/portage/media-plugins/vdr-graphtft/files/build.sh.mod like this. #/usr/bin/qmake -project #/usr/bin/qmake qmake -project qmake # patch the makefile mv Makefile Makefile.bak cat Makefile.bak | sed -e '/LIBS.* =/a\LIBS += `imlib2-config --libs` `/usr/bin/Magick++-config --libs`' > Makefile mv Makefile Makefile.bak cat Makefile.bak | sed -e '/INCPATH.* =/a\INCPATH += -I/usr/include/ImageMagick' > Makefile make -s
media-plugins/vdr-graphtft-0.1.21_alpha removed from the tree, closed