aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Bug compiling 1.2.0  (Read 4545 times)

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Bug compiling 1.2.0
« 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]
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Bug compiling 1.2.0
« Reply #1 on: November 26, 2003, 11:44:59 PM »

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
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Bug compiling 1.2.0
« Reply #2 on: November 26, 2003, 11:58:30 PM »

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*
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Bug compiling 1.2.0
« Reply #3 on: November 27, 2003, 12:04:56 AM »

problem is, you build wxbase, then install it, wx-config get OVERWRITTEN
you need /usr/bin/wx-config -> wxgtk-2.4-config*
Logged

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: Bug compiling 1.2.0
« Reply #4 on: November 27, 2003, 12:14:54 AM »

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
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Bug compiling 1.2.0
« Reply #5 on: November 27, 2003, 12:19:09 AM »

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

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: Bug compiling 1.2.0
« Reply #6 on: November 27, 2003, 12:25:40 AM »

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 !!!
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: Bug compiling 1.2.0
« Reply #7 on: November 27, 2003, 12:31:26 AM »

Sorry, I think we had some cross-posts

Anyway, everything is ok now
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)