aMule Forum
English => aMule Help => Topic started by: Belegdol on June 30, 2004, 12:44:02 PM
-
I've installed wx-gtk2 rpms from wxwidgets website. Not unicode, version 2.5.1. If i try to compile amule-cvs 20040630, it crashes. Have a look at this:
[jsikorski@DOMOWY amule-cvs]$ rpm -qa wx*
wx-gtk2-static-2.5.1-1
wx-gtk2-2.5.1-1
wx-base-2.5.1-1
wx-gtk2-devel-2.5.1-1
wx-gtk2-contrib-devel-2.5.1-1
wx-base-devel-2.5.1-1
wx-gtk2-gl-2.5.1-1
wx-base-static-2.5.1-1
wx-gtk2-contrib-2.5.1-1
after typing make:
Making all in src
make[6]: Entering directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas/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 -I/usr/include/ -D__CRYPTO_MDK_SUSE_FC__ -Wall -g -ggdb -fno-inline -D__DEBUG__ -MT wxcas-wxcas.o -MD -MP -MF ".deps/wxcas-wxcas.Tpo" \
-c -o wxcas-wxcas.o `test -f 'wxcas.cpp' || echo './'`wxcas.cpp; \
then mv -f ".deps/wxcas-wxcas.Tpo" ".deps/wxcas-wxcas.Po"; \
else rm -f ".deps/wxcas-wxcas.Tpo"; exit 1; \
fi
wxcas.cpp:42:2: #error You must set wxUSE_PRINTING_ARCHITECTURE to 1 in setup.h to compile wxCas.
In file included from wxcas.h:42,
from wxcas.cpp:48:
wxcasframe.h:56: error: base class `wxFrame' has incomplete type
wxcasframe.h:58: error: syntax error before `*' token
wxcasframe.h:59: error: field `m_toolBarBitmaps' has incomplete type
wxcasframe.h:61: error: syntax error before `*' token
wxcasframe.h:62: error: syntax error before `*' token
wxcasframe.h:63: error: syntax error before `*' token
wxcasframe.h:65: error: syntax error before `*' token
wxcasframe.h:67: error: syntax error before `*' token
wxcasframe.h:69: error: syntax error before `*' token
wxcasframe.h:70: error: syntax error before `*' token
wxcasframe.h:72: error: syntax error before `*' token
wxcasframe.h:73: error: syntax error before `*' token
wxcasframe.h:74: error: syntax error before `*' token
wxcasframe.h:75: error: syntax error before `*' token
wxcasframe.h:76: error: syntax error before `*' token
wxcasframe.h:77: error: syntax error before `*' token
wxcasframe.h:78: error: syntax error before `*' token
wxcasframe.h:80: error: syntax error before `*' token
wxcasframe.h:81: error: syntax error before `*' token
wxcasframe.h:83: error: syntax error before `*' token
wxcasframe.h:90: error: syntax error before `*' token
wxcasframe.h:91: error: syntax error before `*' token
wxcasframe.h:110: error: `wxCommandEvent' was not declared in this scope
wxcasframe.h:110: error: `event' was not declared in this scope
wxcasframe.h:110: error: invalid data member initialization
wxcasframe.h:110: error: (use `=' to initialize static data members)
wxcasframe.h:110: error: variable or field `OnBarRefresh' declared void
wxcasframe.h:111: error: `wxCommandEvent' was not declared in this scope
wxcasframe.h:111: error: `event' was not declared in this scope
wxcasframe.h:111: error: invalid data member initialization
wxcasframe.h:111: error: variable or field `OnBarAbout' declared void
wxcasframe.h:112: error: `wxCommandEvent' was not declared in this scope
wxcasframe.h:112: error: `event' was not declared in this scope
wxcasframe.h:112: error: invalid data member initialization
wxcasframe.h:112: error: variable or field `OnBarSave' declared void
wxcasframe.h:113: error: `wxCommandEvent' was not declared in this scope
wxcasframe.h:113: error: `event' was not declared in this scope
wxcasframe.h:113: error: invalid data member initialization
wxcasframe.h:113: error: variable or field `OnBarPrint' declared void
wxcasframe.h:114: error: `wxCommandEvent' was not declared in this scope
wxcasframe.h:114: error: `event' was not declared in this scope
wxcasframe.h:114: error: invalid data member initialization
wxcasframe.h:114: error: variable or field `OnBarPrefs' declared void
wxcasframe.h:115: error: `wxTimerEvent' was not declared in this scope
wxcasframe.h:115: error: `event' was not declared in this scope
wxcasframe.h:115: error: invalid data member initialization
wxcasframe.h:115: error: variable or field `OnRefreshTimer' declared void
wxcasframe.h:116: error: `wxTimerEvent' was not declared in this scope
wxcasframe.h:116: error: `event' was not declared in this scope
wxcasframe.h:116: error: invalid data member initialization
wxcasframe.h:116: error: variable or field `OnFtpUpdateTimer' declared void
wxcasframe.h:128: error: syntax error before `*' token
wxcasframe.h:56: warning: `class WxCasFrame' has virtual functions but non-virtual destructor
wxcas.cpp: In function `wxAppConsole* wxCreateApp()':
wxcas.cpp:51: error: cannot allocate an object of type `WxCas'
wxcas.cpp:51: error: because the following virtual functions are abstract:
/usr/include/wx/app.h:100: error: virtual int wxAppConsole::OnRun()
wxcas.cpp: In member function `virtual bool WxCas::OnInit()':
wxcas.cpp:57: error: `wxImage' undeclared (first use this function)
wxcas.cpp:57: error: (Each undeclared identifier is reported only once for each function it appears in.)
wxcas.cpp:57: error: syntax error before `::' token
wxcas.cpp:70: error: `SetPrintMode' undeclared (first use this function)
wxcas.cpp:80: error: `Show' undeclared (first use this function)
wxcas.cpp:81: error: `SetTopWindow' undeclared (first use this function)
make[6]: *** [wxcas-wxcas.o] Error 1
make[6]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jsikorski/downloads/amule-cvs'
make: *** [all] Error 2
Do I have to use wx-gtk2-unicode packages? My distro is Mandrake 10.0 Official.
-
Belegdol,
We still do not officially support 2.5.1, but amule does compile with it. The problem is that the rpms that you used were probably created with the wrong configure options. Soon we will release information on how to do with 2.5.1, stay tuned.
Cheers!
-
Hi. To make it more clear: rpms were downloaded from wxwidgets website and amule does not vompile with them. However, amule cvs does compile with wx-gtk2-unicode 2.5.2 packages, but crashes right after startup. I would try wx-gtk2-unicode 2.5.1 package, but it depends on wxbase-unicode package, which does not exist. As long as I'm not sure with which options I should compile wxgtk and wxbase, I will wait for directions as compiling requires quite a large amount of time on my machine. Keep on the good work.
-
btw: if you compile your wxGTK 2.5.1 then you don't need no wxBase 2.5.1....
since in wxGTK the wxBase libs are included...
stefanero
-
get wxgtk 2.5.1 src, and compile it with ./configure --prefix=/usr --enable-gtk2 --disable-gtk --disable-debug --disable-unicode ..
but remove all the wx rpms before
greets
-
Still no success:
Making all in src
make[6]: Entering directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas/src'
g++ -I/usr/include/ -D__CRYPTO_MDK_SUSE_FC__ -Wall -g -ggdb -fno-inline -D__DEBUG__ -o wxcas wxcas-onlinesig.o wxcas-linuxmon.o wxcas-wxcas.o wxcas-wxcasprint.o wxcas-wxcasframe.o wxcas-wxcasprefs.o wxcas-wxcascte.o wxcas-wxcaspix.o -pthread -lwx_gtk2_html-2.5 -lwx_gtk2_adv-2.5 -lwx_gtk2_core-2.5 -lwx_base_xml-2.5 -lwx_base_net-2.5 -lwx_base-2.5
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../libwx_gtk2_core-2.5.so: undefined reference to `_gtk_accel_group_detach'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../libwx_gtk2_core-2.5.so: undefined reference to `_gtk_accel_group_attach'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../libwx_gtk2_core-2.5.so: undefined reference to `_gtk_rc_context_get_default_font_name'
collect2: ld returned 1 exit status
make[6]: *** [wxcas] Error 1
make[6]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jsikorski/downloads/amule-cvs'
make: *** [all] Error 2
-
ls -l /usr/bin/wx*
ls -l /usr/local/bin/wx*
-
[root@DOMOWY jsikorski]# ls -l /usr/bin/wx*
lrwxrwxrwx 1 root root 17 lip 1 09:47 /usr/bin/wx-config -> wxgtk2-2.5-config*
-rwxr-xr-x 1 root root 10661 lip 1 09:47 /usr/bin/wxgtk2-2.5-config*
[root@DOMOWY jsikorski]# ls -l /usr/local/bin/wx*
lrwxrwxrwx 1 root root 17 lip 1 08:56 /usr/local/bin/wx-config -> wxgtk2-2.5-config*
-rwxr-xr-x 1 root root 10667 lip 1 08:56 /usr/local/bin/wxgtk2-2.5-config*
-
there is your problem.. wx in 2 different dirs ..
rm -f /usr/local/bin/wx*
rm -f /usr/local/lib/libwx*
ldconfig
and recompile amule
-
I made a mistake, I've installed wx in /usr/local and tried to compile amule. It failed. I must have forgotten to uninstall wx from /usr/local before installing it in /usr. Shame on me...
-
It still fails in the same place. Maybe I will better wait for rc4 mdk rpm and till then book port forwarding in my ISP ;)
-
hey
if you still want to try it, install it just simple in /usr/local
and then use in amule the configure option --with-wx-config and point it to the rigth place....
so
./configure --with-wx-config=/usr/local/bin/wxgtk-2.5-config
and make sure you also have /usr/local/lib in your ld.so.conf...
its working here fine ;)
stefanero
-
Originally posted by Belegdol
Still no success:
Making all in src
make[6]: Entering directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas/src'
g++ -I/usr/include/ -D__CRYPTO_MDK_SUSE_FC__ -Wall -g -ggdb -fno-inline -D__DEBUG__ -o wxcas wxcas-onlinesig.o wxcas-linuxmon.o wxcas-wxcas.o wxcas-wxcasprint.o wxcas-wxcasframe.o wxcas-wxcasprefs.o wxcas-wxcascte.o wxcas-wxcaspix.o -pthread -lwx_gtk2_html-2.5 -lwx_gtk2_adv-2.5 -lwx_gtk2_core-2.5 -lwx_base_xml-2.5 -lwx_base_net-2.5 -lwx_base-2.5
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../libwx_gtk2_core-2.5.so: undefined reference to `_gtk_accel_group_detach'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../libwx_gtk2_core-2.5.so: undefined reference to `_gtk_accel_group_attach'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../libwx_gtk2_core-2.5.so: undefined reference to `_gtk_rc_context_get_default_font_name'
collect2: ld returned 1 exit status
make[6]: *** [wxcas] Error 1
make[6]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jsikorski/downloads/amule-cvs'
make: *** [all] Error 2
Same exact problem here with Slack 10.0 with both GCC 3.3.4 and 3.2.3
I have only one version of wxGTK installed in /usr, so the problem must be somewhere else...
It compiled (but didn't work) with wxGTK 2.5.2
-
hmm why don't you guys try to disable wxcas....
and check if its a wxcas problem or if also amule fails to compile....
--disable-wxcas
stefanero
-
I don't have my linux box under my hands now, but I tryed also --disable-wxcas cos someone (deltaHF?) told me to try it, but had the same problem.
Anyhow I will do another full wx cleanup and reinstall it and try new cvs. I tryed with cvs-20040627.
-
hey
thing is I compile it everyday with 2.5.1 so there should not be a problem in compilation with it....
otherwise it would not work here...
so yes check your system :)
stefanero
-
WHat are the merist of wx 2.5.1 apart form gtk2 support? Maybe they are not worth the effort to compile amule.
-
cpu usage drpped here about 30-40% ;)
stefanero
-
So not good I'm unable to compiole it. What is more, I tried to do the same with wx-2.4.2 rpms and 20040704 nightly. And I encountered a failure... Born to run linux...
-
just check step by step again the how to....
maybe you are missing a link or something like that...
stefanero
-
Well, I'm out of ideas...
I cleaned wx from my system, then recompiled wxGTK 2.5.1 and libcrypto 5.1:
$ ls -l /usr/bin/wx*
lrwxrwxrwx 1 root root 3 2004-05-09 19:32 /usr/bin/wxvlc -> vlc*
$ ls -l /usr/local/bin/wx*
/usr/bin/ls: /usr/local/bin/wx*: No such file or directory
no wx present, ok.
-- I installed wxGTK 2.5.1:
tar jxf wxGTK-2.5.1.tar.bz2
cd wxGTK-2.5.1
./configure --prefix=/usr --enable-gtk2 --disable-gtk --disable-debug --disable-unicode
make
as root:
make install && ldconfig
-- now libcrypto 5.1
tar jxf crypto-5.1.tar.bz2
cd crypto-5.1
make
as root:
make install && ldconfig
$ ls -l /usr/bin/wx*
lrwxrwxrwx 1 root root 17 2004-07-06 23:14 /usr/bin/wx-config -> wxgtk2-2.5-config*
-rwxr-xr-x 1 root root 10664 2004-07-06 23:14 /usr/bin/wxgtk2-2.5-config*
lrwxrwxrwx 1 root root 3 2004-05-09 19:32 /usr/bin/wxvlc -> vlc*
seems ok...
-- then for aMule:
tar jxf aMule-cvs-20040706.tar.bz2
cd amule-cvs
./configure --prefix=/usr --enable-debug --enable-debug-syms --disable-optimise --enable-webserver --enable-amulecmd --disable-wxcas --disable-cas
make
And I always get this, I tryed various configure flags and I always get this error...
g++ -I/usr/include/ -D__CRYPTO_MDK_SUSE_FC__ -Wall -g -ggdb -fno-inline -D__DEBUG__ -o alc alc-alc.o alc-alcframe.o alc-alchash.o alc-alcpix.o alc-md4.o -pthread -lwx_gtk2_html-2.5 -lwx_gtk2_adv-2.5 -lwx_gtk2_core-2.5 -lwx_base_xml-2.5 -lwx_base_net-2.5 -lwx_base-2.5
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libwx_gtk2_core-2.5.so: undefined reference to `_gtk_accel_group_detach'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libwx_gtk2_core-2.5.so: undefined reference to `_gtk_accel_group_attach'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libwx_gtk2_core-2.5.so: undefined reference to `_gtk_rc_context_get_default_font_name'
collect2: ld returned 1 exit status
make[6]: *** [alc] Error 1
make[6]: Leaving directory `/home/frankk/amule-cvs/src/utils/aLinkCreator/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/frankk/amule-cvs/src/utils/aLinkCreator'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/frankk/amule-cvs/src/utils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/frankk/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/frankk/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/frankk/amule-cvs'
make: *** [all] Error 2
Any ideas?
-
i'm trying it now.. linkcreator compiles fine with wx2.4.2 but maybe not under wx2.5.1+gtk2
-
nope.. everything ok here.
i really need to install slack10 .. seems theres smth not ok
-
deltaHF tryed to solve this problem on my box (thank you deltaHF), but it only works with gtk1, it seems that it is a problem with gtk 2.4.x since on other distro amule-cvs+wxgtk2.5.1+gtk2.2.x works well.
If someone can confim this please post a reply here.
Thanks.
Frankk.
-
I'm running slack 10.0 too, I get the same error with wxGTK 2.5.1 and I can compile it with 2.5.2 but whenever amule tries to connect to a server it just crashes
last cvs tried: aMule-cvs-20040706
error output:
wxSOCKET_CONNECTION
Connection Event from 2.53.241.62 : 4242
OOPS! - Seems like aMule crashed
--== BACKTRACE FOLLOWS: ==--
[0] amule(_ZN9CamuleApp16OnFatalExceptionEv+0x5a) [0x82bee2c]
[1] /usr/lib/libwx_base-2.5.so.2(wxFatalSignalHandler+0x26) [0x40558716]
[2] /lib/libpthread.so.0 [0x40c4cbe5]
[3] /lib/libc.so.6 [0x40cbb078]
[4] amule(_ZN13CServerSocket9OnConnectE13wxSocketError+0x1bf) [0x828cadd]
[5] amule(_ZN20CServerSocketHandler19ServerSocketHandlerER13wxSocketEvent+0x8b) [0x82901dd]
[6] /usr/lib/libwx_base-2.5.so.2(_ZNK12wxAppConsole11HandleEventEP12wxEvtHandlerMS0_FvR7wxEventES3_+0x31) [0x404be371]
[7] /usr/lib/libwx_base-2.5.so.2(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0x6f) [0x40552fbf]
[8] /usr/lib/libwx_base-2.5.so.2(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0x88) [0x40552358]
[9] /usr/lib/libwx_base-2.5.so.2(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0xc4) [0x40553164]
[10] /usr/lib/libwx_base-2.5.so.2(_ZN12wxEvtHandler20ProcessPendingEventsEv+0x70) [0x40552f00]
[11] /usr/lib/libwx_base-2.5.so.2(_ZN12wxAppConsole20ProcessPendingEventsEv+0x63) [0x404be2d3]
[12] /usr/lib/libwx_gtk2_core-2.5.so.2 [0x40236d40]
[13] /usr/lib/libglib-2.0.so.0 [0x4099b313]
[14] /usr/lib/libglib-2.0.so.0 [0x40997f72]
[15] /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x98) [0x40999048]
[16] /usr/lib/libglib-2.0.so.0 [0x40999380]
[17] /usr/lib/libglib-2.0.so.0(g_main_loop_run+0x183) [0x409999c3]
[18] /usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb3) [0x40698e13]
[19] /usr/lib/libwx_gtk2_core-2.5.so.2(_ZN11wxEventLoop3RunEv+0x55) [0x4024e9d5]
[20] /usr/lib/libwx_gtk2_core-2.5.so.2(_ZN9wxAppBase8MainLoopEv+0x49) [0x402d4a39]
[21] /usr/lib/libwx_gtk2_core-2.5.so.2(_ZN9wxAppBase5OnRunEv+0x1b) [0x402d4b9b]
[22] /usr/lib/libwx_base-2.5.so.2(_Z7wxEntryRiPPc+0x51) [0x404fea61]
[23] amule(main+0x1f) [0x82b9bad]
[24] /lib/libc.so.6(__libc_start_main+0xc6) [0x40ca7936]
[25] amule(_ZNK10wxTextCtrl12GetSelectionEPlS0_+0x8d) [0x8155631]
Aborted
donno if this helps
[]
-
I tryed wxgtk 2.5.2 too some time ago and amule crashed immediately after I started it (probably connecting to server).
We have to wait wxgtk 2.5.3 for gtk2 or continue using gtk1...
-
yeah
wxGTK 2.5.2 sux bad so that wont work with amule... wx2.5.3 is hopefully better
with 2.5.1 you guys can install it also in a seperate place...
and tehn use the configure option --with-wx-config.... to point amule to the "other" config file...
it works here without problems...
stefanero
-
@ stefanero:
thanks for the hint, but the problem is that amule seems not to compile on wxgtk-2.5.1+gtk-2.4.x
So that will not solve.
I'm using wxgtk-2.5.1+gtk1 now.
-
ohh ok :)
stefanero