aMule Forum
English => aMule Help => Topic started by: errico2 on December 02, 2004, 11:25:29 AM
-
I need to use amuled, so I downloaded aMule 2.0.0rc7 and compiled. But it didn't work because i had wxwidgets 2.4.2-1.
I had: rpm -qa | grep wx
wxGTK-devel-2.4.2-1
wxGTK-2.4.2-1
wxBase-2.4.2-1
In order to compile amuled, i had to uninstall 2.4.2 and install 2.5.2-1 version (2.5.3 doesn't have rpm files.... :-( ).
Now, I have: rpm -qa | grep wx
wx-gtk-devel-2.5.2-1
wx-base-2.5.2-1
wx-base-devel-2.5.2-1
wx-gtk-2.5.2-1
But now, aMule doesn't compile (sorry for spanish words):
make[6]: Cambiando a directorio `/home/mydir/aMule-2.0.0rc7/src/utils/aLinkCreator/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I/usr/lib/wx/include/base-2.5 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DUSE_EMBEDDED_CRYPTO -O2 -MT alc-alc.o -MD -MP -MF ".deps/alc-alc.Tpo" \
-c -o alc-alc.o `test -f 'alc.cpp' || echo './'`alc.cpp; \
then mv -f ".deps/alc-alc.Tpo" ".deps/alc-alc.Po"; \
else rm -f ".deps/alc-alc.Tpo"; exit 1; \
fi
En el fichero incluÃdo de alc.h:47,
de alc.cpp:48:
alcframe.h:59: la clase base `wxFrame' tiene tipo de dato incompleto
alcframe.h:61: error sintáctico antes del elemento `*'
alcframe.h:62: error de decodificación antes del elemento `['
alcframe.h:64: error sintáctico antes del elemento `*'
alcframe.h:66: error sintáctico antes del elemento `*'
alcframe.h:67: error sintáctico antes del elemento `*'
alcframe.h:69: error sintáctico antes del elemento `*'
alcframe.h:71: error sintáctico antes del elemento `*'
alcframe.h:72: error sintáctico antes del elemento `*'
alcframe.h:73: error sintáctico antes del elemento `*'
alcframe.h:74: error sintáctico antes del elemento `*'
alcframe.h:75: error sintáctico antes del elemento `*'
alcframe.h:76: error sintáctico antes del elemento `*'
alcframe.h:77: error sintáctico antes del elemento `*'
alcframe.h:78: error sintáctico antes del elemento `*'
alcframe.h:79: error sintáctico antes del elemento `*'
alcframe.h:80: error sintáctico antes del elemento `*'
alcframe.h:81: error sintáctico antes del elemento `*'
alcframe.h:82: error sintáctico antes del elemento `*'
alcframe.h:83: error sintáctico antes del elemento `*'
alcframe.h:84: error sintáctico antes del elemento `*'
alcframe.h:86: error sintáctico antes del elemento `*'
alcframe.h:97: error sintáctico antes del elemento `*'
alcframe.h:98: error sintáctico antes del elemento `*'
alcframe.h:99: error sintáctico antes del elemento `*'
alcframe.h:101: error sintáctico antes del elemento `*'
alcframe.h:102: error sintáctico antes del elemento `*'
alcframe.h:103: error sintáctico antes del elemento `*'
alcframe.h:105: error sintáctico antes del elemento `*'
alcframe.h:106: error sintáctico antes del elemento `*'
alcframe.h:107: error sintáctico antes del elemento `*'
alcframe.h:108: error sintáctico antes del elemento `*'
alcframe.h:109: error sintáctico antes del elemento `*'
alcframe.h:140: `wxCommandEvent' no fue declarado en este ámbito
alcframe.h:140: `event' no fue declarado en este ámbito
alcframe.h:140: iniciación del dato miembro inválida
alcframe.h:140: (use `=' para iniciar datos miembros static)
alcframe.h:140: variable o campo `OnBarOpen' declarado void
alcframe.h:143: `wxCommandEvent' no fue declarado en este ámbito
alcframe.h:143: `event' no fue declarado en este ámbito
alcframe.h:143: iniciación del dato miembro inválida
alcframe.h:143: variable o campo `OnBarSaveAs' declarado void
alcframe.h:146: `wxCommandEvent' no fue declarado en este ámbito
alcframe.h:146: `event' no fue declarado en este ámbito
alcframe.h:146: iniciación del dato miembro inválida
alcframe.h:146: variable o campo `OnBarCopy' declarado void
alcframe.h:149: `wxCommandEvent' no fue declarado en este ámbito
alcframe.h:149: `event' no fue declarado en este ámbito
alcframe.h:149: iniciación del dato miembro inválida
alcframe.h:149: variable o campo `OnBarAbout' declarado void
alcframe.h:152: `wxCommandEvent' no fue declarado en este ámbito
alcframe.h:152: `event' no fue declarado en este ámbito
alcframe.h:152: iniciación del dato miembro inválida
alcframe.h:152: variable o campo `OnCloseButton' declarado void
alcframe.h:155: `wxCommandEvent' no fue declarado en este ámbito
alcframe.h:155: `event' no fue declarado en este ámbito
alcframe.h:155: iniciación del dato miembro inválida
alcframe.h:155: variable o campo `OnSaveAsButton' declarado void
alcframe.h:158: `wxCommandEvent' no fue declarado en este ámbito
alcframe.h:158: `event' no fue declarado en este ámbito
alcframe.h:158: iniciación del dato miembro inválida
alcframe.h:158: variable o campo `OnCopyButton' declarado void
alcframe.h:161: `wxCommandEvent' no fue declarado en este ámbito
alcframe.h:161: `event' no fue declarado en este ámbito
alcframe.h:161: iniciación del dato miembro inválida
alcframe.h:161: variable o campo `OnStartButton' declarado void
alcframe.h:164: `wxCommandEvent' no fue declarado en este ámbito
alcframe.h:164: `event' no fue declarado en este ámbito
alcframe.h:164: iniciación del dato miembro inválida
alcframe.h:164: variable o campo `OnBrowseButton' declarado void
alcframe.h:167: `wxCommandEvent' no fue declarado en este ámbito
alcframe.h:167: `event' no fue declarado en este ámbito
alcframe.h:167: iniciación del dato miembro inválida
alcframe.h:167: variable o campo `OnAddUrlButton' declarado void
alcframe.h:170: `wxCommandEvent' no fue declarado en este ámbito
alcframe.h:170: `event' no fue declarado en este ámbito
alcframe.h:170: iniciación del dato miembro inválida
alcframe.h:170: variable o campo `OnRemoveUrlButton' declarado void
alcframe.h:173: `wxCommandEvent' no fue declarado en este ámbito
alcframe.h:173: `event' no fue declarado en este ámbito
alcframe.h:173: iniciación del dato miembro inválida
alcframe.h:173: variable o campo `OnClearUrlButton' declarado void
alc.cpp: En function `wxAppConsole* wxCreateApp()':
alc.cpp:51: no se puede asignar un objeto de tipo `alc'
alc.cpp:51: porque las siguientes funciones virtual son abstractas:
/usr/include/wx/app.h:100: virtual int wxAppConsole::OnRun()
alc.cpp: En member function `virtual bool alc::OnInit()':
alc.cpp:60: no se encuentra una función coincidente para la llamada a `
AlcFrame::Show(bool)'
alc.cpp:61: `SetTopWindow' sin declarar (primero use esta función)
alc.cpp:61: (Cada identificador sin declarar es reportado sólo una vez para
cada función en el que aparece.)
make[6]: *** [alc-alc.o] Error 1
make[6]: Saliendo directorio `/home/mydir/aMule-2.0.0rc7/src/utils/aLinkCreator/src'
make[5]: *** [all-recursive] Error 1
make[5]: Saliendo directorio `/home/mydir/aMule-2.0.0rc7/src/utils/aLinkCreator'
make[4]: *** [all-recursive] Error 1
make[4]: Saliendo directorio `/home/mydir/aMule-2.0.0rc7/src/utils'
make[3]: *** [all-recursive] Error 1
make[3]: Saliendo directorio `/home/mydir/aMule-2.0.0rc7/src'
make[2]: *** [all] Error 2
make[2]: Saliendo directorio `/home/mydir/aMule-2.0.0rc7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Saliendo directorio `/home/mydir/aMule-2.0.0rc7'
make: *** [all] Error 2
What is wrong ?
Thanks, errico2
-
Starting from wx-2.5, you don't need separate wxBase installation because wxGTK contains it. So: remove wx again, and only install wxGTK + wxGTK-devel.
-
First, I compiled with:
./configure --disable-debug --enable-optimize --enable-amulecmd --enable-amulecmdgui --enable-amule-gui --enable-amule-daemon --enable-webserver --enable-webservergui --disable-wxcas
But i have seen that --enable-amule-gui is not supported yet, so I compiled without any gui:
./configure --disable-debug --enable-optimize --enable-amulecmd --enable-amule-daemon --enable-webserver --disable-wxcas
But it fails....
-
I can't......
[root@MyBox rpm]# rpm -Uvh wx-gtk-2.5.2-1.i386.rpm
error: Failed dependencies:
wx-base = 2.5.2 is needed by wx-gtk-2.5.2-1
libwx_base-2.5.so.2 is needed by wx-gtk-2.5.2-1
libwx_base_odbc-2.5.so.2 is needed by wx-gtk-2.5.2-1
-
As long as the monolithic amule binary cannot be disabled, you must have wxGTK installed. When it'll be possible, you will be able to compile without any gui, using only wxBase.
-
try to remove first ALL wx installation, then reinstall wxGTK.
-
Thanks GonoszTopi for help.
I have removed ALL wx installation before install wx-gtk:
[root@ rpm]# rpm -qa | grep wx
[root@ rpm]# rpm -Uvh wx-gtk-2.5.2-1.i386.rpm
error: Failed dependencies:
wx-base = 2.5.2 is needed by wx-gtk-2.5.2-1
libwx_base-2.5.so.2 is needed by wx-gtk-2.5.2-1
libwx_base_odbc-2.5.so.2 is needed by wx-gtk-2.5.2-1
My box is a RedHat 9.
-
About gui, I don't care compiled or not. I need amuled, amuleCMD and amuleweb. But if it is needed to compile the gui....
Regards, errico2.
-
errico2, you have to INSTALL instead of UPDATE.
# rpm -ivh wx-gtk-2.5.2-1.i386.rpm
and also the devel rpm.
-
About GUI: I meant right now you cannot disable building amule itself, which will need the gui.
-
It's the same. When you don't have previous packets, update is install. But i have tried....:
[root@ rpm]# rpm -ivh wx-gtk-2.5.2-1.i386.rpm
error: Failed dependencies:
wx-base = 2.5.2 is needed by wx-gtk-2.5.2-1
libwx_base-2.5.so.2 is needed by wx-gtk-2.5.2-1
libwx_base_odbc-2.5.so.2 is needed by wx-gtk-2.5.2-1
-
Damn, maybe the rpms are split up and need each other?
Then I can only suggest to compile yourself wx.
*@%!!! I just remember, that on my RH9 box first I tried the rpms, but couldn't compile amule, just like you. Then I downloaded the source tarball, compiled and installed, and from that time on I have no problem with amule at all. Maybe the RPMs are missing something? Probably wx-config? Or is it broken in the rpm? I don't know. So it seems like that on RH9 the ONLY way is to compile from sources. :rolleyes:
-
Thanks a lot GonoszTopi.
It seems to be the problem, because i'm having problems to compile wx-2-5.3.....
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
Please check that gtk-config is in path, the directory
where GTK+ libraries are installed (returned by
'gtk-config --libs' command) is in LD_LIBRARY_PATH or
equivalent variable and GTK+ is version 1.2.3 or above.
I'm going to install again wx-2.4.2-1, compile wx-2.5.3, uninstall wx-2.4.2 and install wx-2.5.3. I hope it works.....
Thanks a lot, errico2
-
Wait, you seem to not have GTK itself!
If this is the case, you have to install GTK or GTK+ or GTK2 or wahtever its name is.
-
in fact, you might have gtk, but what you surely lack is the -devel (or -dev in debian) package of gtk. install it.
Greetings!
-
It's working.......
The problem seems to be the wxGTK-2.5.2 rpm packgaes, installed in a RedHat 9.
I have downloaded the wxGTK-2.5.3 source package, compiled (many many problems to compile it....) and install. After that, I could compile amule and run it.
Thanks a lot, errico2
-
no problem ;)
yes, many distributions distribute wxWidgets packages which are modified and broken. RH amongst other (SuSE, Fedora, Mandrake, ...)
Sad, but true.
Greetings and have a nice aMule experience!
-
My english is not good enough, and sometimes i say anythings that is not my intention.....
No, RedHat 9 came with wxWidgets 2.4.2-1, that runs fine. But I needed 2.5.x version.
Then, I downloaded a 2.5.2 rpm package (not from Redhat) and installed in my RH9. I want to say that install this packages in a RedHat9 doesn't work.
Regards, errico2.
-
oh, well, ok. he point is the same ;)
Have fun!