aMule Forum
English => aMule Help => Topic started by: OldFrog on November 26, 2003, 11:28:53 PM
-
I just installed wxBase 2.4.2 and tried to compile the new aMule-1.2.0 using instructions from the stickies here
(No trouble at all until now with CVS without wxbase)
[code:1]
TextClient.cpp: In function `wxApp* wxCreateApp()':
TextClient.cpp:32: cannot allocate an object of type `CamulecmdApp'
TextClient.cpp:32: because the following virtual functions are abstract:
/usr/include/wx/app.h:131: virtual int wxAppBase::OnRun()
make[2]: *** [TextClient.o] Erreur 1
make[2]: Leaving directory `/home/Fourbi/aMule/aMule-1.2.0/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/home/Fourbi/aMule/aMule-1.2.0'
make: *** [all] Erreur 2
[/code:1]
Here are my infos
[code:1]
I. Development Environment
A. Compiler Info
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/specs Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib Thread model: posix gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)
B. wxWindows Info
Version: 2.4.2
-pthread -lwx_base-2.4
C. GTK Info
GTK 1: 1.2.10
GTK 2: 2.2.4
II. System Environment
Type: AuthenticAMD AuthenticAMD
Model: AMD Athlon(TM) MP 2100+ AMD Athlon(TM) MP 2100+
Speed: 1733.406 1733.406
BMips: 3460.30 3460.30
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
B. Memory Info
Total: 514980 kB
Unused: 191544 kB
C. Kernel Info
Version: 2.4.21-0.13mdksmp
D. Library Info
wxWindows library: libwx_gtk-2.4.so (libc6) => /usr/lib/libwx_gtk-2.4.so
[/code:1]
-
Yeah, there's something strange with it when you just install wxbase... let BigBob apear and tell us how did he fix it.
That never happened on my box, but seems to be happening on all the other boxes... dunno why.
You can still use amule with configure --disable-amulecmd
-
Nov 26 14:59:53 -rwxr-xr-x 1 root root 4948 Wed Nov 26 10:54:22 2003 /usr/bin/wxbase-2.4-config*
Nov 26 14:59:53 -rwxr-xr-x 1 root root 5136 Wed Nov 26 14:26:43 2003 /usr/bin/wxgtk-2.4-config*
Nov 26 14:59:53 lrwxrwxrwx 1 root root 16 Wed Nov 26 14:26:43 2003 /usr/bin/wx-config -> wxgtk-2.4-config*
Nov 26 14:59:53 lrwxrwxrwx 1 root root 26 Wed Nov 26 14:27:55 2003 /usr/bin/wxbase-config -> /usr/bin/wxbase-2.4-config*
-
problem is, you build wxbase, then install it, wx-config get OVERWRITTEN
you need /usr/bin/wx-config -> wxgtk-2.4-config*
-
Yes, you're right, wihen installing wxbase, it created the following symlink :
/usr/bin/wx-config ---> /usr/bin/wxbase*****
(From memory as I removed the RPM I built with wxbase, easier to clean my Msk box, and needed to reinstall --force wxGTK.
So two solutions (Mandatory) :
1 - install first wxbase, THEN wxGTK
2 - Manually change the symlink
In Makefile of wxbase :
[code:1]
preinstall
<......>
$(INSTALL_SCRIPT) $(top_builddir)/wxbase-2.4-config $(bindir)/wxbase-2.4-config
cd $(bindir) && rm -f wx-config && $(LN_S) wxbase-2.4-config wx-config
[/code:1]
and there is the exact same one in Makefile from wxGtk
So it creates the symlink, replacing any preexisting
-
do as root:
ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
then
ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config
ldconfig
and recompile amule ;)
greets
delta
-
Ok, it did the trick. if any trouble, just redoing the symlink should do it.
rm /usr/bin/wx-config
ln -s /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
Thanks !!!
-
Sorry, I think we had some cross-posts
Anyway, everything is ok now