aMule Forum

English => Compilation problems => Topic started by: baron-robert on January 17, 2006, 04:04:06 PM

Title: No GUI compilation
Post by: baron-robert on January 17, 2006, 04:04:06 PM
Hi all!

I want to compile a new version of amule on a Fedora C4. But, I dont want to have the GUI of aMule because i dont have X on my system (and doesnt want to have).

I try to configure aMule with this options but it's dont work.
>>./configure --enable-amule-daemon --enable-optimize --enable-amulecmd
[...]
checking whether we need the GUI... yes
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.6.0... no (version 2.4.2 is not new enough)
checking that wxWidgets has support for large files... no
configure: error:
                Support for large files in wxWidgets is required by aMule.
                To continue you must recompile wxWidgets with support for
                large files enabled.

I think there is a method to deactivate the GUI test. And in the same time, deactivate the wxWidgets presence...

Does someone can help me?
Baron-Robert
Title: Re: No GUI compilation
Post by: Gerd78 on January 17, 2006, 04:12:18 PM
You have two independent problems:

- your wxWidgets is too old
- you want wxBase instead of wxGTK

You can solve both of them at once.

Download this archive:

http://ftp://biolpc22.york.ac.uk/pub/2.6.2/wxBase-2.6.2.tar.bz2

Extract and install it as usual:
Code: [Select]
./configure
make
make install
And then try to compile aMule again, it should work without problems.
Title: Re: No GUI compilation
Post by: baron-robert on January 17, 2006, 04:17:34 PM
it should work with GUI or without GUI?
Title: Re: No GUI compilation
Post by: Gerd78 on January 17, 2006, 04:28:22 PM
wxBase is the non-GUI port wxWidgets, if you have that only, it's not even possible to compile any GUI stuff. So the answer is Yes.
Title: Re: No GUI compilation
Post by: deltaHF on January 17, 2006, 04:36:43 PM
http://www.amule.org/wiki/index.php/HowTo_Compile_aMuled
Title: Re: No GUI compilation
Post by: stefanero on January 17, 2006, 05:08:44 PM
/me wonders why someone (me) writes a wiki
Title: Re: No GUI compilation
Post by: vdb on January 18, 2006, 10:52:29 AM
As Stefanero pointed out in his Wiki entry, you do have to include the "--disable-monolithic" argument. If you don't, it will always try to compile a GUI.
Title: Re: No GUI compilation
Post by: stefanero on January 18, 2006, 12:38:51 PM
great you spoiled the fun of reading :P
Title: Re: No GUI compilation
Post by: MaTz! on January 18, 2006, 09:01:41 PM
I'm tring to install amule (without X server).
I have installed wxBase then i do ldconfig.
then i tried to install amule.
Code: [Select]
./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon
but when i do "make" i have an error:
Code: [Select]
GuiEvents.h:168: error: ISO C++ forbids declaration of `ptr_value' with no type
GuiEvents.h:168: warning: converting to non-pointer type `int' from NULL
GuiEvents.h:169: error: ISO C++ forbids declaration of `ptr_aux_value' with no type
GuiEvents.h:169: warning: converting to non-pointer type `int' from NULL
GuiEvents.h:170: error: syntax error before `}' token
GuiEvents.h:172: error: ISO C++ forbids declaration of `GUIEvent' with no type
GuiEvents.h: In function `int GUIEvent(GUI_Event_ID, unsigned char, long long unsigned int, wxString)':
GuiEvents.h:172: error: only constructors take base initializers
GuiEvents.h:172: error: `wxEVT_MULE_NOTIFY_EVENT' undeclared (first use this function)
GuiEvents.h:172: error: (Each undeclared identifier is reported only once for each function it appears in.)
GuiEvents.h:172: confused by earlier errors, bailing out
make[3]: *** [amuled-RemoteSettings.o] Error 1
make[3]: Leaving directory `/home/matz/aMule-2.1.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/matz/aMule-2.1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/matz/aMule-2.1.0'
make: *** [all] Error 2

what can i do?
Title: Re: No GUI compilation
Post by: stefanero on January 18, 2006, 09:38:55 PM
did you emerge wxBase?

gcc -version?

amule -version?
Title: Re: No GUI compilation
Post by: MaTz! on January 18, 2006, 09:59:15 PM
i haven't used emerge for wxBASE. i have installed it (slack style) http://www.wxwidgets.org/dl_base.htm. [2.6.2]

i tried to  install amule 2.1.0

EpiaLinux aMule-2.1.0 # gcc --version
gcc (GCC) 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8).

If you have a good ebuild can you post it?
Thanks!
Title: Re: No GUI compilation
Post by: stefanero on January 18, 2006, 10:22:39 PM
there is a ebuild in portage for amule.... ( ACCEPT_KEYWORDS="~x86")

also for wxBase, you ahve to emerge wxGTK with "-X"

and aMule with "-gtk amuled remote"
Title: Re: No GUI compilation
Post by: MaTz! on January 18, 2006, 10:27:49 PM
if i try to install wxGTK-2.6.2 with USE="-X" it also try to compile X.

Code: [Select]
EpiaLinux aMule-2.1.0 # ACCEPT_KEYWORDS="~x86" USE="-X -unicode"  emerge -pv wxG
TK

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  NS   ] app-text/docbook-xml-dtd-4.1.2-r6  73 kB
[ebuild  N    ] dev-util/gtk-doc-1.4-r1  -emacs 145 kB
[ebuild  N    ] dev-libs/glib-2.8.5  -debug +doc -hardened 2,532 kB
[ebuild  N    ] media-libs/freetype-2.1.10  -bindist +doc +zlib 1,172 kB
[ebuild  N    ] media-libs/fontconfig-2.3.2  941 kB
[ebuild  N    ] x11-libs/cairo-1.0.2  -X +doc -glitz +png 1,424 kB
[ebuild  N    ] x11-apps/ttmkfdir-3.0.9-r3  19 kB
[ebuild  N    ] x11-base/xorg-x11-6.8.2-r6  -3dfx -3dnow +bitmap-fonts -cjk -deb
ug -dlloader -dmx +doc -font-server -insecure-drivers -ipv6 -minimal -mmx +nls -
nocxx -opengl +pam -sdk -sse -static +truetype-fonts +type1-fonts (-uclibc) -xpr
int +xv 45,134 kB
[ebuild  N    ] virtual/x11-6.8  0 kB
[ebuild  N    ] app-arch/rpm2targz-9.0-r4  2 kB
[ebuild  N    ] sys-apps/utempter-0.5.5.6  20 kB
[ebuild  N    ] x11-terms/xterm-208  -Xaw3d +doc -toolbar -truetype -unicode 732
 kB
[ebuild  N    ] dev-libs/atk-1.10.3  -debug +doc -static 529 kB
[ebuild  N    ] x11-libs/pango-1.10.2  -debug +doc 1,141 kB
[ebuild  N    ] dev-perl/XML-Parser-2.34  224 kB
[ebuild  N    ] dev-util/intltool-0.34.1  127 kB
[ebuild  N    ] x11-misc/shared-mime-info-0.16  735 kB
[ebuild  N    ] x11-libs/gtk+-2.8.10  -debug +doc +jpeg -tiff -xinerama 11,687 k
B
[ebuild  N    ] media-libs/tiff-3.7.4  +jpeg -nocxx +zlib 1,252 kB
[ebuild     U ] x11-libs/wxGTK-2.6.2-r1 [2.6.1] -X -debug +doc* -gnome -joystick
 -odbc -opengl -sdl -unicode 14,160 kB

Total size of downloads: 82,059 kB

instead if i try to install amule with wxGTK-2.6.1 i have an error.
The problem is that i don't need X (the pc is a server)
Title: Re: No GUI compilation
Post by: stefanero on January 18, 2006, 11:47:30 PM
well thats surely a bug in the ebuild....since it says in teh ebuild itslef to emerge with -X to build wxBase only from wxGTK

amule(d) compiles fine with wxBase-2.6.1 and wxBase-2.6.2, its strange that you get an error

could you mabye post some more lines above the once you posted?