I can't compile amule with gtk2 support Reproducible: Always Steps to Reproduce: 1. ACCEPT_KEYWORDS=~x86 emerge amule 2. 3. Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) net-p2p/amule-2.0.0_rc7 to / >>> md5 src_uri ;-) aMule-2.0.0rc7.tar.bz2 !!! set-wxconfig: Error: Can't find normal or debug version: !!! set-wxconfig: /usr/bin/wxgtk-2.4-config not found !!! set-wxconfig: /usr/bin/wxgtkd-2.4-config not found !!! You need to emerge wxGTK with -no_wxgtk1 in your USE Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8-gentoo-r3) ================================================================= System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(tm) XP 1600+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.iasi.roedu.net/pub/mirrors/gentoo.org http://gentoo.oregonstate.edu" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync1.ro.gentoo.org/gentoo-portage" USE="3dnow 3dnowex X aalib alsa apache apm avi bitmap-fonts cdr crypt cups curl encode f77 flac foomaticdb gd gif gphoto2 gpm gtk2 guile imlib imlib2 jikes jpeg lcms libcaca libwww lzo mad matroska mikmod mmx motif mpeg mysql ncurses network nls no_wxgtk1 oggvorbis opengl pam png python quicktime readline rtc ruby sdl slang spell sse ssl tcpd tga theora tiff truetype x86 xchatdccserver xml2 xmms xv xvid zlib" cloud root # equery uses wxGTK [ Colour Code : set unset ] [ Legend : (U) Col 1 - Current USE flags ] [ : (I) Col 2 - Installed With USE flags ] U I [ Found these USE variables in : x11-libs/wxGTK-2.4.2-r2 ] - - debug : Tells configure and the makefiles to build for debugging. Effects vary across packages, but generally it will at least add -g to CFLAGS. Remember to set FEATURES=nostrip too + + no_wxgtk1 : unknown + + gtk2 : Use gtk+-2.0.0 over gtk+-1.2 in cases where a program supports both. - - odbc : Adds ODBC Support (Open DataBase Connectivity) + + opengl : Adds support for OpenGL - - unicode : Adds support for Unicode
I have a /usr/bin/wxgtk2-2.4-config not a /usr/bin/wxgtk-2.4-config
This is due to wxwidget eclass. You must use gtk2 USE in amule too USE="gtk2" ACCEPT_KEYWORDS="~x86" emerge amule please note that gtk2 is unsupported with wxGTK 2.4 so you have to unmask wxGTK-2.5.x, but this will break other applications, or re-emerge wxGTK without no_wxgtk1 USE (recommended) and link amule to wxgtk1
>This is due to wxwidget eclass. You must use gtk2 USE in amule too >USE="gtk2" ACCEPT_KEYWORDS="~x86" emerge amule I am using the gtk2 use flag to emerge amule... it is set in make.conf (look at the emerge info output above) >please note that gtk2 is unsupported with wxGTK 2.4 so you have to unmask >wxGTK-2.5.x Unsupported as in "it may crash" or unsupported as in "it doesn't build". If it's the former then I was aware of it.
I've figured out why I get that error... it's because of this line: need-wxwidgets gtk (near the beginning of pkg_setup()) Since I don't have wxGTK 1 installed this will always produce the !!! set-wxconfig: Error: Can't find normal or debug version: !!! set-wxconfig: /usr/bin/wxgtk-2.4-config not found !!! set-wxconfig: /usr/bin/wxgtkd-2.4-config not found !!! You need to emerge wxGTK with -no_wxgtk1 in your USE error before it even gets a chance to evaluate the following if: if ${WX_CONFIG} --version | grep 2.4 >& /dev/null ; then if use gtk2 >& /dev/null || use unicode >& /dev/null ; then einfo "Compiling ${PN} against wxGTK2 2.4.x is not suppo rted." einfo "You can upgrade wxGTK to development snapshot 2.5 .*" einfo "but this will break other applications, or emerge amule" einfo "with USE=\"-gtk2 -unicode\"." die "Emerge amule with USE=\"-gtk2 -unicode\"." which would have produced a different error message. Also, if I comment the need-wxwidgets gtk line out then I get this: ACCEPT_KEYWORDS=~x86 emerge amule Calculating dependencies ...done! >>> emerge (1 of 1) net-p2p/amule-2.0.0_rc7 to / >>> md5 src_uri ;-) aMule-2.0.0rc7.tar.bz2 /usr/sbin/ebuild.sh: line 36: --version: command not found wxgtk2-2.4-config * Using /usr/bin/wxgtk2-2.4-config >>> Unpacking source... >>> Unpacking aMule-2.0.0rc7.tar.bz2 to /var/tmp/portage/amule-2.0.0_rc7/work >>> Source unpacked. configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking build system type... i686-pc-linux checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /bin/install -c ............. The programs starts to compile witout throwing the "Compiling ${PN} against wxGTK2 2.4.x is not supported." error. Notice the "/usr/sbin/ebuild.sh: line 36: --version: command not found" error... this is because of this line: if ${WX_CONFIG} --version | grep 2.4 >& /dev/null ; then The amule ebuild need fixing... at the moment it is broken
Forget the second part of my last post. The one starting with "Also, if I comment the need-wxwidgets gtk line out then I get this:". That happened because I commented the need-wxwidgets gtk line out. Still, that line is put in the wrong place. If you have only wxGTK2 installed (like me) then the following checks will never be performed because of that line.
maybe there's an error in the ebuild. Could you check if there is a link named /usr/bin/wx-config pointing to /usr/bin/wxgtk2-2.4-config ? If you can find that link, remove need-wxwidgets gtk from the ebuild and change the line if ${WX_CONFIG} --version | grep 2.4 >& /dev/null ; then in if /usr/bin/wxconfig --version | grep 2.4 >& /dev/null ; then then re-emerge
I'm sorry, wrong file name, it's wx-config, not wxconfig if /usr/bin/wx-config --version | grep 2.4 >& /dev/null ; then
griever@cloud griever $ file /usr/bin/wx-config /usr/bin/wx-config: symbolic link to `wxgtk2-2.4-config' Changed the lines and now the correct error is shown: cloud amule # ACCEPT_KEYWORDS=~x86 emerge amule Calculating dependencies ...done! >>> emerge (1 of 1) net-p2p/amule-2.0.0_rc7 to / >>> md5 src_uri ;-) aMule-2.0.0rc7.tar.bz2 * Compiling amule against wxGTK2 2.4.x is not supported. * You can upgrade wxGTK to development snapshot 2.5.* * but this will break other applications, or emerge amule * with USE="-gtk2 -unicode". !!! ERROR: net-p2p/amule-2.0.0_rc7 failed. !!! Function pkg_setup, Line 42, Exitcode 0 !!! Emerge amule with USE="-gtk2 -unicode".
I got success by doing: ln -s /usr/bin/wx-config /usr/bin/wxgtk-2.4-config I thing that there is bug in aMule's ebuild.
no, the ebuild is horribly old and not in sync with a lot of wxWidgets changes occurred in these last months http://bugs.gentoo.org/show_bug.cgi?id=71108
Fixed in 2.0.1 release.