aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: compiling aMule for server  (Read 8487 times)

L00PeR

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
compiling aMule for server
« on: February 05, 2005, 06:26:04 PM »

Hi,

I have a small problem to compile the aMule in a special way. In a small server (without keyboard, mouse and screen) VIA Epia mini-ITX I have a Debian Sarge.
Its function is to be a  file server for a Windows (with SAMBA) and web server (Apache2) for mi house LAN.

I want to compile aMule without wxWindows and GUI. Only aMule running in command line (in daemon mode). Then form one of my desktop computer, using web browser, I'll connect to aMule using aMuleWeb...

I installed in my system with apt-get:

Code: [Select]
- gettext
- libcurl3 and libcurl3-dev
- libgd2
- libgd2-noxpm and libgd2-noxpm-dev
- libcrypto++-dev

Using aMule 2.0.0.rc8 source I put in command line:

Code: [Select]
# ./configure --enable-amulecmd --enable-amuledaemon --enable webserver --enable-webservergui --disable-amulecmdgui

Outpout says:
[...]
Code: [Select]
Configure script has finished system check.

  Configured aMule 2.0.0rc8 for 'i686-pc-linux'.

  aMule enabled options:

  **** aMule Core ****
  Should aMule be compiled in debug mode?                  yes
  Should aMule be compiled with verbose console output?    no
  Should aMule be compiled with upload speed sense?        no
  Should aMule be compiled with profiling?                 no
  Should aMule be compiled with optimizations?             no
  Should aMule be compiled with systray?                   yes
  Should aMule be compiled with UTF-8 systray?             no
  Should aMule be compiled with pure GTK code?             yes
  Should aMule be linked against patched gsocket?          no
  Should aMule monolithic application be built?            yes
  Should aMule daemon version be built? (EXPERIMENTAL)     yes
  Should aMule remote gui be built? (EXPERIMENTAL)         no
  Crypto++ library/headers style?                          embeded

  **** aMule TextClient ****
  Should amulecmd (TextClient) be linked against wxbase?   no
  Should aMule Command Line Client be built?               yes
  Should aMule GUI Client be built?                        no

  **** aMule WebServer ****
  Should aMule WebServer be built?                         no
  Should aMule WebServer GUI be built?                     no

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?      yes
  Should aMuleLinkCreator for console (alcc) be built?     no

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                yes
  Should aMule GUI Statistics (wxCas) be built?            yes

  **** General Libraries and Tools ****
  Should ccache support be enabled?                        no
  Libraries aMule will use to build:
                                       wxWidgets          Not detected
                                       GTK                Not detected

  NOTICE: With wxWidgets versions prior 2.5, you need wxBase library to compile:
          amuleweb amulecmd and alcc

Configure says me that:

Code: [Select]
**** aMule WebServer ****
  Should aMule WebServer be built?                         no
  Should aMule WebServer GUI be built?                     no

Why? What am I making wrong?

Anybody knows how to do it?

Best regards
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: compiling aMule for server
« Reply #1 on: February 05, 2005, 08:27:53 PM »

heho
first of all you need wxBase-2.5.3 to work on a server without X.
2.5.3 is the first version which supports amule-daemon, so you cannot use apt-get for install, you have to compile yourself.

and for your "configure detect" problems which you seam to have is due to missing, wxGTK-devel. and also some of your configure statements are nor right, it shoudl eb

--enable-amule-daemon not --enable-amuledaemon, but a closer look at --help will help ya ;)

but like i said you NEED wx2.5.3 of daemon will not get enabled!!

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

L00PeR

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: compiling aMule for server
« Reply #2 on: February 06, 2005, 02:55:01 PM »

Quote
Originally posted by stefanero
first of all you need wxBase-2.5.3 to work on a server without X.

Ok. I think that I don't need wx-* to compile for 'aMule_command_line_with_ webserver'. I see that I was wrong. Sorry...

Quote
it shoudl eb

--enable-amule-daemon not --enable-amuledaemon, but a closer look at --help will help ya ;)

Yes. Its an errata. In command line its was correctly...

Quote
and for your "configure detect" problems which you seam to have is due to missing, wxGTK-devel.

Ok. wxGTK-devel will be installed...

Thanks a lot  :)
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: compiling aMule for server
« Reply #3 on: February 06, 2005, 03:18:36 PM »

no problem, but wxGTK-devel will not help ya,
at least not for amule-deamon in version 2.4.2 ;)
you need to download wx2.5.3 tarball and compile yourself, thats teh only way it works atm.

i believe debian also provides wxGTK-2.5.3 packages(unstable) but i dont know if they are any good.

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

L00PeR

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: compiling aMule for server
« Reply #4 on: February 06, 2005, 03:32:43 PM »

Quote
Originally posted by stefanero
i believe debian also provides wxGTK-2.5.3 packages(unstable) but i dont know if they are any good.

Yes :) Exists. I'll try to install the .deb packages (library and -devel) and try to compile with this.

If it works,  I say at this forum for future 'debian people' with same problem.

Regards
Logged

L00PeR

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Compilation results
« Reply #5 on: February 06, 2005, 06:02:30 PM »

Well, I compiled in my Debian Sarge with this .deb packages from Sid using dpkg -i :

Code: [Select]
- libgtk2.0
 - libgtk2.0-bin
 - libgtk2.0-common

 - libpango1.0
 - libpango1.0-common

 - libwxgtk2.5.3
 - libgtk2.5-dev
 - wx3.5-headers

Using the sequent command line:

Code: [Select]
./configure --build=i386-pc-linux --target=i386-pc-linux --enable-amulecmd --enable-amule-daemon --enable-webserver --enable-webservergui --disable-amulecmdgui

the output was:

Code: [Select]
Configured aMule 2.0.0rc8 for 'i386-pc-linux'.

  aMule enabled options:

  **** aMule Core ****
  Should aMule be compiled in debug mode?                  yes
  Should aMule be compiled with verbose console output?    no
  Should aMule be compiled with upload speed sense?        no
  Should aMule be compiled with profiling?                 no
  Should aMule be compiled with optimizations?             no
  Should aMule be compiled with systray?                   yes
  Should aMule be compiled with UTF-8 systray?             no
  Should aMule be compiled with pure GTK code?             yes
  Should aMule be linked against patched gsocket?          no
  Should aMule monolithic application be built?            yes
  Should aMule daemon version be built? (EXPERIMENTAL)     yes
  Should aMule remote gui be built? (EXPERIMENTAL)         no
  Crypto++ library/headers style?                          embeded

  **** aMule TextClient ****
  Should amulecmd (TextClient) be linked against wxbase?   yes
  Should aMule Command Line Client be built?               yes
  Should aMule GUI Client be built?                        no

  **** aMule WebServer ****
  Should aMule WebServer be built?                         yes
  Should aMule WebServer GUI be built?                     yes

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?      yes
  Should aMuleLinkCreator for console (alcc) be built?     yes

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                yes
  Should aMule GUI Statistics (wxCas) be built?            yes

  **** General Libraries and Tools ****
  Should ccache support be enabled?                        no
  Libraries aMule will use to build:
                                       wxWidgets          2.5.3
                                       GTK                Not detected

All goes well since this line:

Code: [Select]
In file included from listctrl.cpp:90:
/usr/include/wx-2.5/wx/gtk/win_gtk.h:18:21: gdk/gdk.h: No such file or directory
/usr/include/wx-2.5/wx/gtk/win_gtk.h:19:22: gdk/gdkx.h: No such file or directory
/usr/include/wx-2.5/wx/gtk/win_gtk.h:20:30: gtk/gtkcontainer.h: No such file or directory
/usr/include/wx-2.5/wx/gtk/win_gtk.h:21:31: gtk/gtkadjustment.h: No such file or directory
In file included from listctrl.cpp:90:
/usr/include/wx-2.5/wx/gtk/win_gtk.h:54: error: 'GtkContainer' is used as a type, but is not defined as a type.
/usr/include/wx-2.5/wx/gtk/win_gtk.h:55: error: syntax error before `*' token
/usr/include/wx-2.5/wx/gtk/win_gtk.h:66: error: 'GdkVisibilityState' is used as a type, but is not defined as a type.
/usr/include/wx-2.5/wx/gtk/win_gtk.h:71: error: 'gboolean' is used as a type, but is not defined as a type.
/usr/include/wx-2.5/wx/gtk/win_gtk.h:72: error: 'gboolean' is used as a type, but is not defined as a type.
/usr/include/wx-2.5/wx/gtk/win_gtk.h:73: error: 'gboolean' is used as a type, but is not defined as a type.
/usr/include/wx-2.5/wx/gtk/win_gtk.h:78: error: 'GtkContainerClass' is used as a type, but is not defined as a type.
/usr/include/wx-2.5/wx/gtk/win_gtk.h:85: error: parse error before `)' token
/usr/include/wx-2.5/wx/gtk/win_gtk.h:92: error: type specifier omitted for parameter `gboolean'
/usr/include/wx-2.5/wx/gtk/win_gtk.h:92: error: parse error before `)' token
/usr/include/wx-2.5/wx/gtk/win_gtk.h:95: error: type specifier omitted for parameter `gboolean'
/usr/include/wx-2.5/wx/gtk/win_gtk.h:95: error: parse error before `)' token
/usr/include/wx-2.5/wx/gtk/win_gtk.h:98: error: type specifier omitted for parameter `gboolean'
/usr/include/wx-2.5/wx/gtk/win_gtk.h:98: error: parse error before `)' token
listctrl.cpp: In member function `void wxODListHeaderWindow::DoDrawRect(wxDC*, int, int, int, int)':
listctrl.cpp:1953: error: `GtkStateType' undeclared (first use this function)
listctrl.cpp:1953: error: (Each undeclared identifier is reported only once for each function it appears in.)
listctrl.cpp:1953: error: parse error before `=' token
listctrl.cpp:1958: error: invalid use of undefined type `struct _GtkWidget'
/usr/include/wx-2.5/wx/defs.h:2535: error: forward declaration of `struct _GtkWidget'
listctrl.cpp:1958: error: `gtk_pizza_get_type' undeclared (first use this function)
listctrl.cpp:1958: error: parse error before `)' token
listctrl.cpp:1958: error: `GTK_CHECK_CAST' undeclared (first use this function)
listctrl.cpp:1959: error: `state' undeclared (first use this function)
listctrl.cpp:1959: error: `GTK_SHADOW_OUT' undeclared (first use this function)
listctrl.cpp:1960: error: `GdkRectangle' undeclared (first use this function)
listctrl.cpp:1960: error: parse error before `)' token
listctrl.cpp:1951: warning: unused parameter `int y'
listctrl.cpp:1951: warning: unused parameter `int w'
listctrl.cpp:1951: warning: unused parameter `int h'
listctrl.cpp: In member function `long int wxODListMainWindow::FindItem(long int, long int)':
listctrl.cpp:4653: warning: comparison between signed and unsigned integer expressions
listctrl.cpp: In member function `virtual wxListItemAttr* wxODGenericListCtrl::OnGetItemAttr(long int) const':
listctrl.cpp:5632: warning: unused parameter `long int item'
make[4]: *** [amule-listctrl.o] Error 1
make[4]: Leaving directory `/root/compilaciones/amule/aMule-2.0.0rc8/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/compilaciones/amule/aMule-2.0.0rc8/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/compilaciones/amule/aMule-2.0.0rc8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/compilaciones/amule/aMule-2.0.0rc8'
make: *** [all] Error 2

and compilation stops...

What's wrong?
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: compiling aMule for server
« Reply #6 on: February 06, 2005, 06:40:00 PM »

you lack some gtk2 packages,
try to build with
--enable-mono.... something ;) i forgot
check configure, this will disable the amule-app and only build amule-daemon
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: compiling aMule for server
« Reply #7 on: February 06, 2005, 07:48:42 PM »

Quote
Originally posted by stefanero
--enable-mono.... something ;) i forgot

Let's say '--disable-monolithic --enable-amule-daemon'   :P
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: compiling aMule for server
« Reply #8 on: February 06, 2005, 08:09:10 PM »

well i was sure he could read thedude0001 :-P
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

L00PeR

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: compiling aMule for server
« Reply #9 on: February 06, 2005, 09:19:38 PM »

Yesss!!!!

At last I [correction on]  we [correction off] :D have do it!

The compilation finished correctly...

Now I "play" with options to enable the webserver, select the directories 'Temp' and 'Incoming' in the desired place etc...

After my girlfriend will can use it to download divx and my bandwidth will return to fall again! :(  ;) :P

thanks a lot
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: compiling aMule for server
« Reply #10 on: February 06, 2005, 10:06:17 PM »

no problem
2hints ;)

1st. set max connections not higher then 1024
2nd disable udp-socket in prefs, because its still a bit buggy ;) makes sources exchange a little slower but who cares if it runs much more stable :)

other question check : http://wiki.amule.org
for example on howto setup webserver ;)

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

L00PeR

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
ummm... problems with compiled binaries
« Reply #11 on: February 07, 2005, 07:32:56 PM »

Well... I compiled the aMule. I installed the binaries (make install) and configure amuleweb using the wiki help...

...but It doesn´t work. Why? I don´t know...

The output form aMuled are:

Code: [Select]
# amuled
Initialising aMule
Userhash loaded: 09531369040E34467B9DF56A949E6F7B
*** UDP socket at 4665
*** reading servers
Loading temp files from /root/.aMule/Temp.
Empty dir /root/.aMule/Incoming/ shared
*** TCP socket at 4662
AICH Thread: Syncronization thread started.
AICH Thread: Masterhashes of known files have been loaded.
AICH Thread: No new files found.
AICH Thread: Thread terminated.
ListenSocket: Ok.
*** UDP socket at 4672

Ok. An ps -aux show:

Code: [Select]
root     22124  3.2  1.7 18648 4012 pts/1    S+   19:35   0:00 amuled
root     22125  0.0  1.7 18648 4012 pts/1    S+   19:35   0:00 amuled
root     22126  0.0  1.7 18648 4012 pts/1    S+   19:35   0:00 amuled
root     22128  0.0  1.7 18648 4012 pts/1    R+   19:35   0:00 amuled
root     22129  0.0  1.7 18648 4012 pts/1    S+   19:35   0:00 amuled
root     22130  0.0  1.7 18648 4012 pts/1    S+   19:35   0:00 amuled

I suppose that is like apache... Throw threads waiting a conexion...

But the most extrange is that the amulecmd, amulecmdDLG don´t do anything.

And emuleweb says that:

Code: [Select]
# amuleweb
Enter password for mule connection (return if no pass defined):

Creating client...
Now, doing connection....
Using host 'localhost.localdomain' port:4712
Trying to connect (timeout = 10 sec)...
Connection Failed. Unable to connect to the specified host

Posibbly any package are needed. but I don't know which...

Any idea?
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: compiling aMule for server
« Reply #12 on: February 07, 2005, 07:48:13 PM »

did ya enable tcp-socket?
did you setup password for both webserver and external connection?

have a lookt at 1.2.8-webserver howto, for help
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

L00PeR

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: compiling aMule for server
« Reply #13 on: February 07, 2005, 08:27:11 PM »

Quote
Originally posted by stefanero
did ya enable tcp-socket?

Yes

Quote
did you setup password for both webserver and external connection?

At first no, because I was in "probing modality" I don't setup a password, but more later I created a password.

Quote
have a lookt at 1.2.8-webserver howto, for help

Yes I read that howto... but amulecmd, amulecmdDLG don´t do anything.

"Fighting" with program I  started amuleweb but in a few minutes fall saying
' Segmentation fault'

I think that the packages from Sid do not take very well with Sarge distro :D
I a few days I reinstall the server with Sid and I'll prove again...

I'm sorry for the annoyances but it is the first time that I put to compile with sources of so deep way :)
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: compiling aMule for server
« Reply #14 on: February 07, 2005, 08:53:48 PM »

well the best way anyways would be to compile yourself ;)
there is a howto on http://wiki.amule.org for installing a seperate wxWidget, you could use that and try again to install
first wxBase2.5.3, then against those amule-daemon

about your amulecmdDLG, this is for gui server, so you should actually not have that.

this segmentation fault could be due to buggy wxGTK from debian, so i really suggest you have a look at the wiki and compile yourself in a seperate folder and retry :)
its not to hard
and maybe then the segementation fault is gone

have fun
stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."