aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Is it possible to compile amuled without wxGTK ?  (Read 3467 times)

Bourdieu

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 55
Is it possible to compile amuled without wxGTK ?
« on: May 10, 2008, 10:39:59 PM »

My question is quite simple and is basically in the thread title.

I have a small box which I use as a server for several protocols and I would like to run an aMule daemon on it. This box has no monitor nor keyboard connected to it. So I didn't install X or any graphical library like gtk or wxGTK.

I tried to compile aMule with the options:
--disable-monolithic \
--enable-amule-daemon \
--enable-amulecmd \
--enable-webserver

but it fails because it didnt find wxGTK.

Is there a way to compile aMule without requiring to compile fat GTK + fat wxGTK ? And if not, why since amuled, amulecmd and webserver don't use it ?
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Is it possible to compile amuled without wxGTK ?
« Reply #1 on: May 10, 2008, 11:50:29 PM »

All aMule apps use wxWidgets for network, files, string operations, whatever.
For the non-gui apps you can configure wxGTK with
--enable-unicode --without-subdirs --disable-gui --disable-expat
which removes all the GUI stuff from the libraries.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Bourdieu

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 55
Re: Is it possible to compile amuled without wxGTK ?
« Reply #2 on: May 11, 2008, 04:32:29 AM »

Thanks for your reply.

I saw indeed that even amuled, amulecmd and amulewebserver were linked against libwx_baseu_net and libwx_baseu.

Another solution is to compile on another machine which has wxGTK, to link statically against it and then to install the resulting binaries on the target machine.

To build sttic versions of amuled, amuleweb and amulecmd you need to have the static versions of wxGTK too. In order to have both static and dynamic versions of wxGTK you need to execute the sequence ./configure && make && make install twice. Once with --enable-shared and once with --disable-shared.

Dont forget to strip these static binaries or else they will be huge (53M for amuled for example).
Logged

Nodsu

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 62
Re: Is it possible to compile amuled without wxGTK ?
« Reply #3 on: May 11, 2008, 03:10:50 PM »

If you use several amule apps (d+web+cmd), then you would save RAM and gain some speed by not doing static linking.
You can use distcc to do the compile on a remote (fast) box and link against shared wx on the target.
Logged