aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Compilation Problem  (Read 10081 times)

Guest

  • Guest
Compilation Problem
« on: October 12, 2003, 03:20:58 AM »

I'm getting the following errors when I run make:

In file included from wintypes.h:44,
                 from AddFriend.cpp:22:
mfc.h:28:18: glib.h: No such file or directory
In file included from amuleDlg.h:40,
                 from amule.h:30,
                 from AddFriend.cpp:23:
SysTray.h:21:21: gtk/gtk.h: No such file or directory
SysTray.h:22:21: gdk/gdk.h: No such file or directory
SysTray.h:23:22: gdk/gdkx.h: No such file or directory
In file included from eggtrayicon.h:24,
                 from SysTray.h:29,
                 from amuleDlg.h:40,
                 from amule.h:30,
                 from AddFriend.cpp:23:
gtkplugxembed.h:30:21: gdk/gdk.h: No such file or directory
gtkplugxembed.h:31:27: gtk/gtksocket.h: No such file or directory
gtkplugxembed.h:32:27: gtk/gtkwindow.h: No such file or directory
In file included from eggtrayicon.h:24,
                 from SysTray.h:29,
                 from amuleDlg.h:40,
                 from amule.h:30,
                 from AddFriend.cpp:23:
gtkplugxembed.h:51: error: syntax error before `;' token
gtkplugxembed.h:55: error: 'GtkWindow' is used as a type, but is not defined as
   a type.
gtkplugxembed.h:62: error: syntax error before `*' token
gtkplugxembed.h:69: error: 'GtkWindowClass' is used as a type, but is not
   defined as a type.
gtkplugxembed.h:81: error: syntax error before `)' token
gtkplugxembed.h:82: error: type specifier omitted for parameter `
   GtkPlugXEmbedNativeWindow'
gtkplugxembed.h:82: error: syntax error before `)' token
gtkplugxembed.h:84: error: `GtkPlugXEmbedNativeWindow' was not declared in this
   scope
gtkplugxembed.h:84: error: syntax error before `)' token
gtkplugxembed.h:85: error: syntax error before `*' token
gtkplugxembed.h:88: error: type specifier omitted for parameter `GtkSocket'
gtkplugxembed.h:88: error: syntax error before `*' token
gtkplugxembed.h:90: error: type specifier omitted for parameter `GtkSocket'
gtkplugxembed.h:90: error: syntax error before `*' token
In file included from SysTray.h:29,
                 from amuleDlg.h:40,
                 from amule.h:30,
                 from AddFriend.cpp:23:
eggtrayicon.h:25:22: gdk/gdkx.h: No such file or directory
In file included from SysTray.h:29,
                 from amuleDlg.h:40,
                 from amule.h:30,
                 from AddFriend.cpp:23:
eggtrayicon.h:47: error: 'Atom' is used as a type, but is not defined as a
   type.
eggtrayicon.h:48: error: 'Atom' is used as a type, but is not defined as a
   type.
eggtrayicon.h:49: error: 'Atom' is used as a type, but is not defined as a
   type.
eggtrayicon.h:50: error: 'Window' is used as a type, but is not defined as a
   type.
eggtrayicon.h:58: error: syntax error before `)' token
eggtrayicon.h:61: error: `Screen' was not declared in this scope
eggtrayicon.h:61: error: `xscreen' was not declared in this scope
eggtrayicon.h:61: error: syntax error before `char'
make[3]: *** [AddFriend.o] Error 1
make[3]: Leaving directory `/root/Desktop/aMule-1.0.8/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/Desktop/aMule-1.0.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/aMule-1.0.8'
make: *** [all] Error 2
Logged

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: Compilation Problem
« Reply #1 on: October 12, 2003, 11:08:18 AM »

download and run plz the get-info.sh script (our download section on the homepage) and post the output here..

for me it looks like u don't have glibc/gtk installed on your system.. or wxGTK is linked with gtk2 .. actually aMule won't work with glibc2 / gtk2..
 
greets
delta

Guest

  • Guest
Re: Compilation Problem
« Reply #2 on: October 13, 2003, 12:42:23 AM »

Ok, I fixed the above problem, but now I'm getting the following error:

eggtrayicon.h:58: error: syntax error before `)' token
eggtrayicon.h:61: error: `Screen' was not declared in this scope
eggtrayicon.h:61: error: `xscreen' was not declared in this scope
eggtrayicon.h:61: error: syntax error before `char'
make[3]: *** [AddFriend.o] Error 1
make[3]: Leaving directory `/root/Desktop/aMule-1.0.8/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/Desktop/aMule-1.0.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/aMule-1.0.8'
make: *** [all] Error 2


getinfo.sh returns the following:

I.   Development Environment

     A. Compiler Info
        Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.3/specs Configured with: ../src/configure -v --enable-languages=c,c++,f77,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-objc-gc i386-linux Thread model: posix gcc version 3.2.3 (Debian)

     B. wxWindows Info
        Version: 2.4.0
        -pthread -lwx_gtk-2.4

     C. GTK Info
get-info.sh: line 1: gtk-config: command not found
        GTK 1:
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
        GTK 2:

II.  System Environment

     A. CPU Info
        Type:  AuthenticAMD
        Model: AMD Athlon(tm) XP 2000+
        Speed: 1670.485
        BMips: 3335.78
        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

     B. Memory Info
        Total:   516156 kB
        Unused:  136072 kB

     C. Kernel Info
        Version: 2.4.20

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

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: Compilation Problem
« Reply #3 on: October 13, 2003, 07:39:50 AM »

Quote
C. GTK Info
get-info.sh: line 1: gtk-config: command not found


try "locate gtk-config" first

if theres a gtk-config file, do "export GTK_CONFIG="

and run ./configure again (but remove config.cache and config.log first)

if locate doesn't found anything, u have to install libgtk1.2-dev [development files for the GIMP toolkit]

greets
delta

Spaceboy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: Compilation Problem
« Reply #4 on: October 14, 2003, 01:58:37 AM »

Ok, I installed libgtk1.2-dev, but now I get the following error:

/usr/include/wx/list.h:195: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
make[3]: *** [MuleNotebook.o] Error 1
make[3]: Leaving directory `/root/Desktop/aMule-1.0.8/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/Desktop/aMule-1.0.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/aMule-1.0.8'
make: *** [all] Error 2
Logged

Spaceboy

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: Compilation Problem
« Reply #5 on: October 14, 2003, 02:18:41 AM »

Fixed the problem now.  Just recompiled with gcc 2.95 rather than 3.2 which I was using before.  Thanks for the help.
Logged