aMule Forum

English => aMule Help => Topic started by: thepolish on December 30, 2003, 06:12:02 PM

Title: Compiling 1.2.1 on debian woody and EPIA M10000: works FINE
Post by: thepolish on December 30, 2003, 06:12:02 PM
Hello,

i ve compiled aMule on the stable debian version Woody and all seems to work fine. Here are the options i ve use:

- because woody packages are quite old, i ve build from scratch:

* curl-7.10.8.tar.bz2 (http://curl.haxx.se/download/curl-7.10.8.tar.bz2)
* wxBase-2.4.2.tar.bz2
* wxGTK-2.4.2.tar.bz2

in order to compile aMule-1.2.1.tar.bz2

- for wxBase, i ve used:

 CXXFLAGS=-march=pentium -malign-double -fomit-frame-pointer -pipe  ../configure --prefix=/opt/wx --enable-shared --disable-gui --enable-soname --with-zlib=sys --enable-std_iostreams

- for wxGtk i ve used:

 CXXFLAGS=-march=pentium -malign-double -fomit-frame-pointer -pipe  ../configure --prefix=/opt/wx --disable-gtk2 --enable-timedate --enable-gui --enable-protocol --enable-http --enable-ftp --enable-resources --enable-prologio --disable-debug --enable-final --enable-timer --with-gtk --disable-profile --enable-soname --enable-dynamic-loader --enable-std_iostreams

- for curl, i ve used:

 CXXFLAGS=-O2 -march=pentium -malign-double -fomit-frame-pointer -pipe CFLAGS=-O2 -march=pentium -malign-double -fomit-frame-pointer -pipe ./configure --prefix=/opt/curl --disable-ipv6

and for aMule:

CXXFLAGS=-I/opt/curl/include -O2 -march=pentium -malign-double -fomit-frame-pointer -pipe CFLAGS=-I/opt/curl/include -O2 -march=pentium -malign-double -fomit-frame-pointer -pipe  ./configure --prefix=/opt/amule --with-wx-prefix=/opt/wx --with-wxbase-prefix=/opt/wx --with-wxbase-config=/opt/wx/bin/wxbase-2.4-config --with-wx-config=/opt/wx/bin/wx-config --with-curl-config=/opt/curl/bin/curl-config --enable-optimise --disable-gtk --disable-systray

Notes:

* because of the Epia embeds a C3, i ve just used -march=pentium cause of cmov bug on gcc.
* -funroll-loops cause erros in compilation of wxwindows,  so i havent use it
* wx add-O2, so i didnt put it in CXXFLAGS
* i dont know if aMule use CFLAGS, but it doesnt eat bread (as we say in french)
* --disable-gtk do nothing but it doesnt eat bread too
* --disable-systray because icewm dont support it, but it compiles well too if enabled

Wish: add --with-curl-prefix to be able to compile aMule without putting -I/opt/curl/include manually (--with-curl-prefix is not enough)


Conclusion: it runs for 12 hours now and it is a fantastic prog, as on windows, all mods i ve tried were crashing once a day (min)

And Epia have a very little µP (top output):

 3625 fox       19   0 16672  16M  8724 S     1.1  7.4   1:32 amule

Hurra for devs !!!

the polish
Title: Re: Compiling 1.2.1 on debian woody and EPIA M10000: works FINE
Post by: thepolish on December 30, 2003, 06:44:20 PM
Addon: not really a amule addon, just for those who ask how to make quickly xfree run with woody on an EPIA M10000:

- configure X with debconf with vesa card, just to have a good Xfree-config4 for monitor and keybord

- take the cdroom shipped with the motherboard and mount it as root:

cp /cdrom/drivers/vga/linux/clexf40016.tgz .
tar -xzf clexf40016.tgz
cp CLEXF40016/RedHat/7.1/c3/via_drv.o /usr/X11R6/lib/modules/drivers/
cp CLEXF40016/RedHat/7.1/c3/libddmpeg.* /usr/X11R6/lib/
cp CLEXF40016/RedHat/7.1/c3/libddmpeg.a /usr/X11R6/lib/modules/
ldconfig

edit /etc/X11/XF86Config-4 to have:

Section "Device"
        Identifier      "via VT8623 Apollo CLE266"
        Driver          "via"
EndSection

and:

Section "Screen"
        Identifier      "Default Screen"
        Device          "via VT8623 Apollo CLE266"
        Monitor         "Generic Monitor"
        DefaultDepth    24

some others options are available in the doc in CLE266 archive, but it works with those minimum ones. So, just startx now

hope it will be usefull

the polish
Title: Re: Compiling 1.2.1 on debian woody and EPIA M10000: works FINE
Post by: Kry on December 30, 2003, 09:20:19 PM
--with-curl-prefix functional on CVS
Title: Re: Compiling 1.2.1 on debian woody and EPIA M10000: works FINE
Post by: Kry on December 30, 2003, 09:52:38 PM
Sorry, I faild to notice curl-config doesn't allow "--prefix=PFX "

So, option is enabled, but do nothing.
Title: Re: Compiling 1.2.1 on debian woody and EPIA M10000: works FINE
Post by: thepolish on December 30, 2003, 10:34:51 PM
hello Kry,

configure should work with something like that in configure.in:

 
     if test "$CURLFOUND" == 1 ; then
        LIBS="$LIBS `$CURL_CONFIG_NAME --libs`"
        CXXFLAGS="$CXXFLAGS `$CURL_CONFIG_NAME --cflags`"
     fi

which will be add -I/opt/curl/include to CXXFLAGS

the polish
Title: Re: Compiling 1.2.1 on debian woody and EPIA M10000: works FINE
Post by: thepolish on December 31, 2003, 11:59:23 AM
Hello,

First crash of amule today, but i think quite normal because it occurs during running dejagnu gcc 3.3.2 compile tests on my tiny C3 ... Never though amule will keep alive so long during all gcc compile time ! great program !

Here is the trace:

OOPS! - Seems like aMule crashed
--== BACKTRACE FOLLOWS: ==--

[0x408bf6b8]
[2] /usr/lib/libstdc++-libc6.2-2.so.3(__builtin_vec_delete+0x24) [0x4084ba44]
[3] /opt/amule/bin/amule(CreateNextBlockPackage__13CUpDownClient+0xbbb) [0x81bae33]


the polish