aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Can't compile anymore  (Read 5324 times)

phileo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
Can't compile anymore
« on: December 27, 2003, 06:52:03 PM »

My aMule wasn't stable enough(hardly never runned more than 24 hours)

So i decided to compile wxbase, wxgtk by hand.
Wxbase was fine but wxGTK  failed in make install (error in lex.c) so i decided to use your RPM.

So i use your RPM for wxbase, wxGTK and zlib.

After this I tried compiling aMule 1.2.1 and it failed with this :
[philippe@x1-6-00-50-bf-32-e9-37 aMule-1.2.1]$ make
make  all-recursive
make[1]: Entering directory `/home/philippe/aMule-1.2.1'
Making all in m4
make[2]: Entering directory `/home/philippe/aMule-1.2.1/m4'
make[2]: Rien à faire pour « all ».
make[2]: Leaving directory `/home/philippe/aMule-1.2.1/m4'
Making all in src
make[2]: Entering directory `/home/philippe/aMule-1.2.1/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -O2   -I/usr/lib/wx/include/base-2.4 -D_F
ILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
 -I/usr/lib/glib/include -I/usr/X11R6/include   -O2  -MT amule-ListenSocket.o -M
D -MP -MF ".deps/amule-ListenSocket.Tpo" \
  -c -o amule-ListenSocket.o `test -f 'ListenSocket.cpp' || echo './'`ListenSock
et.cpp; \
then mv -f ".deps/amule-ListenSocket.Tpo" ".deps/amule-ListenSocket.Po"; \
else rm -f ".deps/amule-ListenSocket.Tpo"; exit 1; \
fi
In file included from sockets.h:25,
                 from amuleDlg.h:24,
                 from amule.h:30,
                 from ListenSocket.cpp:22:
server.h:52: error: `wxTreeCtrl' was not declared in this scope
server.h:52: error: `wnd' was not declared in this scope
server.h:52: error: `wxTreeItemId' was not declared in this scope
server.h:52: error: syntax error before `)' token
In file included from ServerListCtrl.h:4,
                 from sockets.h:27,
                 from amuleDlg.h:24,
                 from amule.h:30,
                 from ListenSocket.cpp:22:
ServerList.h:77: error: 'wxTimer' is used as a type, but is not defined as a typ
e.
In file included from ServerListCtrl.h:8,
                 from sockets.h:27,
                 from amuleDlg.h:24,
                 from amule.h:30,
                 from ListenSocket.cpp:22:
MuleListCtrl.h:13: error: syntax error before `{' token
MuleListCtrl.h:15: error: virtual outside class declaration
MuleListCtrl.h:15: error: non-member function `wxClassInfo* GetClassInfo()' cann
ot have `const' method qualifier
MuleListCtrl.h: In function `wxClassInfo* GetClassInfo()':
MuleListCtrl.h:15: error: incomplete type `CMuleListCtrl' does not have member `
sm_classCMuleListCtrl'
MuleListCtrl.h: At global scope:
.... troncated

My system info :
I.   Development Environment

     A. Compiler Info
        Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.1/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/li
b --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-thr
eads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-
languages=c,c++,ada,f77,objc,java,pascal --host=i586-mandrake-linux-gnu --with-s
ystem-zlib Thread model: posix gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)

     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

     A. CPU Info
        Type:  AuthenticAMD

        Model: AMD Athlon(tm) Processor
        Speed: 1000.068
        BMips: 1992.29
        Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
 pse36 mmx fxsr syscall mmxext 3dnowext 3dnow

     B. Memory Info
        Total:   385484 kB
        Unused:  154488 kB

     C. Kernel Info
        Version: 2.4.22-21mdk

     D. Library Info
        wxWindows library: libwx_base-2.4.so (libc6) => /usr/lib/libwx_base-2.4.
so

I hope this helps

Phileo

PS : amule 1.2.1 RPM seems to run fine :oops:
Logged

BigBob

  • aMule project creator.
  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 141
    • http://bigbob.fun.free.fr
Re: Can't compile anymore
« Reply #1 on: December 27, 2003, 07:53:04 PM »

Hi,
Quote
So i decided to compile wxbase, wxgtk by hand.
Wxbase was fine but wxGTK failed in make install (error in lex.c) so i decided to use your RPM.

Are you using debian ?

A++
Logged
Creator of aMule & aStats projects

phileo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
Re: Can't compile anymore
« Reply #2 on: December 28, 2003, 10:05:03 AM »

No I'm using Mandrake 9.2
Logged

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: Can't compile anymore
« Reply #3 on: December 28, 2003, 12:01:35 PM »

I had that too on Mdk-9.1, you don't need them for wxGTK-2.4.1, but you MUST install flex-xxxx.rpm and byacc-xxx.rpm to compile wxGTK-2.4.2 .

I guess there has been added a new formula-based component.
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

phileo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
Re: Can't compile anymore
« Reply #4 on: December 28, 2003, 02:57:47 PM »

Thank you Oldfrog,

I installed the tow RPM's you mentionned above and managed to compile and install sucessfully wxGTK-2.4.2.

But I still can't compile aMule. And aMule-1.2.1 RPM doesn't work anymore.

So I switched back to amule teams RPM for Wxbase ,wxGTK and amule. It seems to work fine.

By the way, is there a real advantage in compiling instead of using amule team's RPM.

For aMule itself I think it's better (don't have to wait for Rpms) bot for support programs like wx ?

So thank you for your answer and i still wonder what's preventing amule to compile ?

A+
Logged

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: Can't compile anymore
« Reply #5 on: December 28, 2003, 03:05:29 PM »

That's weird, I had no trouble at all compiling aMule finals as CVS with these settings. Which errors do you get when compiling aMule ?
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: Can't compile anymore
« Reply #6 on: December 28, 2003, 03:11:00 PM »

if u compile aMule by yourself with amulecmd u need wxBase (and link it like in our howto)
if u want to compile aMule without amulecmd (--disable-amulecmd) u don't need wxBase anymore.. just your (or our) wxGTK ..
rpm's r a bit sux and u need (90%) the same pkgs like the sys where they r build on

greets
delta

phileo

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 16
Re: Can't compile anymore
« Reply #7 on: December 28, 2003, 08:09:21 PM »

Well, it seems I Messed something in my aMule directory. I just download a fresh one and it compiled oK. So everything seems fine. I apologize for this  "false " error.

 I'm now running with aMule team's RPM for :
 wxbase-2.4.2
wxGTK-2.4.2 and wxGTK-devel
aMule-1.2.1

I also self compiled zlib-1.2.10 (this RPM has so much dependencies that I didn' install the RPM).

I will try this config for a while and see if it improves stability (compared to using Mandrake's wx*-2.4.1 RPMs).

If not I may consider recompiling everything but it's time consuming.....

By the way,what is a good average running time ?

Well thank you for your great work and good user support.
I'm looking forward for the next release.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Can't compile anymore
« Reply #8 on: December 28, 2003, 08:50:22 PM »

A good average runnig time = forever ;)

My amule has been running for 7 days now.
Logged