aMule Forum
English => Compilation problems => Topic started by: someuser77 on January 21, 2006, 06:50:11 PM
-
I use Fedora Core 4 and i want to use amuled and amuleweb instead of the GUI.
I downloaded aMule 2.1.0 source but it says i have to recompile wxWidgets, how do i do that?
$ ./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --enable-amuleweb
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... bison -y
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for ar... ar
checking for ld... ld
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for zlib >= 1.1.4... yes (version 1.2.2.2)
checking for gdlib-config... /usr/bin/gdlib-config
checking for gdlib version >= 2.0.0... yes (version 2.0.33)
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for libpng-config... /usr/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.8)
checking for gd.h... (cached) yes
checking whether we need the GUI... no
checking for wx-config... no
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.
ls -l /usr/bin/wx* and ls -l /usr/local/bin/wx* returns "No such file or directory".
$ rpm -qa | grep wx
wxGTK-2.4.2-12
wxGTK-common-2.4.2-12
-
You need wx 2.6 at least
-
so i simply need to compile wxgtk 2.6?
do i need to secify something to ./configure?
simply ./configure, make and make install?
-
http://wiki.amule.org ....
-
HowTo Compile aMuled (http://www.amule.org/wiki/index.php/HowTo_Compile_aMuled) says i must have wxGTK >=2.5.4
$ rpm -qa | grep wx
wxBase-2.4.2-1
wxGTK-2.6.2-0.2.2.fc4
./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --enable-amuleweb
returns the error above. how do i recompile exWidgets with the correct setup?
i installed everything from rpms.
-
If you've disabled monolithic you'll need wxBASE 2.6.x .
The information in Wiki is probably outdated, someone has to upgrade it.
I'll take a look, in the hope not to mess everything up.
-
is there a fedora 4 rpm i can use for wxbase so i will be able to remove it if i must?
-
no the thing is, you can use wxBase 2.6.2 or wxGTK 2.6.2 since in wxGTK wxBase is included...
your problem is that you have wxBase 2.4.2!!!!!!!!! and wxGTK 2.6.2 installed, thats why it does not work
-
okay. i removed wxbase and ran ldconfig. still i get this error.
-
make clean && ./configure again, you cannot simple run make because it picked up the old stuff
-
make clean failed with "make: *** No rule to make target `clean'. Stop.", configure returned the same error.
if i have wxGTK-2.6.2, are you sure it counts as "wxWidgets with support for large files enabled"?
if i install aMule from yum/rpm, can i still enable the server and the web interface?
-
well you dont have a wx-config in /usr/bin/
otherwise it would show with
ls -la /usr/bin/wx*
maybe your installed rpm is brocken..since you also had a 2.4.2 rpm installed maybe remove all wx and only install teh 2.6.2 at teh 2nd try
then check if you get something for
ls -la /usr/bin/wx*
-
okay. i removed any wx* from rpm and i ran make clean in the wxgtk source dir.
now, when i try to install wxGTK-2.6.2-0.2.2.fc4.i386.rpm i get "file /usr/share/locale/tr/LC_MESSAGES/wxstd.mo conflicts between attempted installs of wxBase-2.4.2-1 and wxGTK-2.6.2-0.2.2.fc4" where "tr" changes to other languages aswell.
i dont see any wxstd.mo in the dir above.
-
ahhh REMOVE wxBASE!!!!!!!!!!!!!!!!
-
"rpm -qa | grep wx" returns nothing.
is there a way i can see what else is installed?
-
rpm -Uvh --force wxGTK....
or
http://www.amule.org/wiki/index.php/How_to_uninstall_wxWidgets
and then
rpm -Uvh ....
-
okay.
first of all thanks to everyone for the help! :D
now, "rpm -qa | grep wx" returns only "wxGTK-2.6.2-0.2.2.fc4"
is it safe to go to the source dir and run ./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --enable-amuleweb
to compile amuled (server?) and the web interface?
-
i think so yes...lets so if it works till the end ;)
-
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.
back to square one? ;(
is there a way to check if wxWidgets is compiled with what it needs?
edit: config.log:
configure:6368: checking for wx-config
configure:6400: result: no
configure:6562: checking that wxWidgets has support for large files
configure:6576: g++ -E conftest.cc
conftest.cc:2:21: error: wx/wx.h: No such file or directory
conftest.cc:6:5: error: #error No LargeFile support!;
$ ls -la /usr/bin/wx*
ls: /usr/bin/wx*: No such file or directory
-
I think you'll need the devel-package for wx (libwxGTK-2.6-dev or similar)
-
okay. i installed wxGTK-gl-2.6 and wxGTK-devel-2.6 and i did:
./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --enable-amuleweb
make
make install
no errors! 8) thanks wuischke! thanks stefanero! :baby:
a... whats next? do i test it somehow?
-
I guess you test it while running ;)
http://www.amule.org/wiki/index.php/AMuleWeb
-
okay, i edited AcceptExternalConnections, ECUseTCPPort and ECPassword in amule.conf.
what must i edit in rempte.conf?
i get:
This is amuleweb 2.1.0
Creating client...
CECSocket error: The timeout for this operation expired
CECSocket error: The timeout for this operation expired
Connection Failed. Unable to connect to the specified host
-
did you restart amuled ?
check on console that it starts teh EC-port, there should be a msg
-
okay. i restarted all amule* processes and added passwords for GuestPassword and AdminPassword but now the status says "Not connected", do i need to open other ports or can it use the ports i opened for aMule in my previous try?
edit: okay, i opened the tcp and udp ports listed under [ec]/Port and i think it worked. thanks! :D
-
ec-ports? but but
well ec port is the port amuleweb uses to connect to amuled,
usually you start amuleweb on the same host as amuled, so no need to open port actually.
the only port you need to open is when you want to connect from the internet to your mashine, but then you need to open the webinterface port for firefox f.e.