aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: compiling error  (Read 2360 times)

feralertx

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 101
compiling error
« on: April 21, 2004, 02:14:44 AM »

Hi there,

I'm trying to install RC2 on a newly installed MDK 10 OE system and im getting an error.
I followed the steps of this howto.
I installed wxBase, wxGTK and wxGTK devel with the RPMS (on that page). I donwloaded crypto-5.1.tar.bz2 and did make and make install, and then downloaded aMule-2.0.0rc2.tar.gz and ./configure && make, and thats where the error comes:

Quote
then mv -f ".deps/amule-listctrl.Tpo" ".deps/amule-listctrl.Po"; \
else rm -f ".deps/amule-listctrl.Tpo"; exit 1; \
fi
listctrl.cpp:89:25: gtk/gtk.h: No such file or directory
In file included from listctrl.cpp:90:
/usr/include/wx/gtk/win_gtk.h:18:21: gdk/gdk.h: No such file or directory
/usr/include/wx/gtk/win_gtk.h:19:22: gdk/gdkx.h: No such file or directory
/usr/include/wx/gtk/win_gtk.h:20:30: gtk/gtkcontainer.h: No such file or directo
ry
/usr/include/wx/gtk/win_gtk.h:21:31: gtk/gtkadjustment.h: No such file or direct
ory
/usr/include/wx/gtk/win_gtk.h:23:29: gtk/gtkfeatures.h: No such file or director
y
In file included from listctrl.cpp:90:
/usr/include/wx/gtk/win_gtk.h:54: error: 'GtkContainer' is used as a type, but i
s not defined as a type.
/usr/include/wx/gtk/win_gtk.h:55: error: syntax error before `*' token
/usr/include/wx/gtk/win_gtk.h:66: error: 'GdkVisibilityState' is used as a type,
 but is not defined as a type.
/usr/include/wx/gtk/win_gtk.h:71: error: 'gboolean' is used as a type, but is no
t defined as a type.
/usr/include/wx/gtk/win_gtk.h:72: error: 'gboolean' is used as a type, but is no
t defined as a type.
/usr/include/wx/gtk/win_gtk.h:73: error: 'gboolean' is used as a type, but is no
t defined as a type.
/usr/include/wx/gtk/win_gtk.h:78: error: 'GtkContainerClass' is used as a type,
but is not defined as a type.
/usr/include/wx/gtk/win_gtk.h:92: error: type specifier omitted for parameter `g
boolean'
/usr/include/wx/gtk/win_gtk.h:92: error: syntax error before `)' token
/usr/include/wx/gtk/win_gtk.h:95: error: type specifier omitted for parameter `g
boolean'
/usr/include/wx/gtk/win_gtk.h:95: error: syntax error before `)' token
/usr/include/wx/gtk/win_gtk.h:98: error: type specifier omitted for parameter `g               boolean'
/usr/include/wx/gtk/win_gtk.h:98: error: syntax error before `)' token
listctrl.cpp: In member function `void wxODListHeaderWindow::DoDrawRect(wxDC*, i               nt, int, int, int)':
listctrl.cpp:1944: error: `GtkStateType' undeclared (first use this function)
listctrl.cpp:1944: error: (Each undeclared identifier is reported only once for                each function it appears in.)
listctrl.cpp:1944: error: syntax error before `=' token
listctrl.cpp:1949: error: invalid use of undefined type `struct _GtkWidget'
/usr/include/wx/defs.h:2079: error: forward declaration of `struct _GtkWidget'
listctrl.cpp:1949: error: syntax error before `)' token
listctrl.cpp:1949: error: `GTK_CHECK_CAST' undeclared (first use this function)
listctrl.cpp:1950: error: `state' undeclared (first use this function)
listctrl.cpp:1950: error: `GTK_SHADOW_OUT' undeclared (first use this function)
listctrl.cpp:1951: error: `GdkRectangle' undeclared (first use this function)
listctrl.cpp:1951: error: syntax error before `)' token
make[2]: *** [amule-listctrl.o] Error 1
make[2]: Leaving directory `/home/emuleuser/install_files/aMule-2.0.0rc2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/emuleuser/install_files/aMule-2.0.0rc2'
make: *** [all] Error 2


Info from the get-info.sh script:

Quote
I.   Development Environment

     A. Compiler Info
        Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.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-clocale=gnu --enable-languages=c,c++,ada,f77,objc,java,pascal --host=i586-mandrake-linux-gnu --with-system-zlib Thread model: posix gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)

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

     C. GTK Info
/xmule/amule/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:  GenuineIntel
        Model: Pentium II (Deschutes)
        Speed: 400.900
        BMips: 790.52
        Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr

     B. Memory Info
        Total:   321012 kB
        Unused:  76280 kB

     C. Kernel Info
        Version: 2.6.3-7mdk

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

What i am doing wrong? Am i missing s/t??

thanks.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: compiling error
« Reply #1 on: April 21, 2004, 02:21:05 AM »

C. GTK Info
/xmule/amule/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:



you need gtk-dev
Logged

feralertx

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 101
Re: compiling error
« Reply #2 on: April 21, 2004, 02:41:45 AM »

Hi Kry and thnx for the quick reply.
« Last Edit: April 21, 2004, 03:52:32 AM by feralertx »
Logged

feralertx

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 101
Re: compiling error
« Reply #3 on: April 21, 2004, 03:40:50 AM »

ok, I installed the packages 'libgtk+1.2-devel' and 'libGTK+2.0_0-devel', I believe thats what you meant, now the output of get-info.sh is:

Quote
I.   Development Environment

     A. Compiler Info
        Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.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-clocale=gnu --enable-languages=c,c++,ada,f77,objc,java,pascal --host=i586-mandrake-linux-gnu --with-system-zlib Thread model: posix gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)

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

     C. GTK Info
        GTK 1: 1.2.10
        GTK 2: 2.2.4

II.  System Environment

     A. CPU Info
        Type:  GenuineIntel
        Model: Pentium II (Deschutes)
        Speed: 400.900
        BMips: 790.52
        Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr

     B. Memory Info
        Total:   321012 kB
        Unused:  67812 kB

     C. Kernel Info
        Version: 2.6.3-7mdk

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

I guess this looks better :-D
Im doing "./configure && make" again... hope it works

Thanks for helping me out.
Logged