aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Error while compiling  (Read 2878 times)

scorpio2002

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 32
Error while compiling
« on: October 02, 2005, 08:52:33 PM »

Hi there! I downloaded the latest cvs-tarball because I wanted to try kad, but when I compile it I get the following:

Code: [Select]
ow::FindItem(long int, long int)':
extern/listctrl.242.cpp:4487: warning: comparison between signed and unsigned integer expressions
extern/listctrl.242.cpp: In member function `virtual wxListItemAttr* MuleExtern::wxGenericListCtrl::OnGetItemAttr(long int) const':
extern/listctrl.242.cpp:5465: warning: unused parameter `long int item'
make[4]: *** [amule-listctrl.o] Error 1
make[4]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/skorpio/Desktop/amule-cvs'
make: *** [all] Error 2

I'm using Ubuntu Hoary 5.04.
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Error while compiling
« Reply #1 on: October 02, 2005, 09:29:38 PM »

The output that you quoted in your post doesn't contain the actual error.  It shows a few warnings that seem to have occurred after the error, but they would not have stopped it from compiling.
Logged

scorpio2002

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 32
Re: Error while compiling
« Reply #2 on: October 02, 2005, 09:46:40 PM »

Well, the thing is that it seems very difficult to find where the actual error is. Where can I find a pre-compiled binary with kad support for ubuntu?
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Error while compiling
« Reply #3 on: October 02, 2005, 10:28:24 PM »

Try upgrading to breezy (even it's a preview, there are no problems) there it compiles without problems and with kad.
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Error while compiling
« Reply #4 on: October 02, 2005, 10:57:50 PM »

scorpio2002,

Try pasting a few more lines backwards. Search for "error:" in the compiler's output.

Cheers!
Logged

scorpio2002

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 32
Re: Error while compiling
« Reply #5 on: October 03, 2005, 07:04:45 AM »

I tried compiling it again, here's the output:

Code: [Select]
skorpio@skorpio:~/Desktop/amule-cvs$ make
make  all-recursive
make[1]: Entering directory `/home/skorpio/Desktop/amule-cvs'
Making all in m4
make[2]: Entering directory `/home/skorpio/Desktop/amule-cvs/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/skorpio/Desktop/amule-cvs/m4'
Making all in docs
make[2]: Entering directory `/home/skorpio/Desktop/amule-cvs/docs'
Making all in man
make[3]: Entering directory `/home/skorpio/Desktop/amule-cvs/docs/man'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/skorpio/Desktop/amule-cvs/docs/man'
make[3]: Entering directory `/home/skorpio/Desktop/amule-cvs/docs'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/skorpio/Desktop/amule-cvs/docs'
make[2]: Leaving directory `/home/skorpio/Desktop/amule-cvs/docs'
Making all in src
make[2]: Entering directory `/home/skorpio/Desktop/amule-cvs/src'
make  all-recursive
make[3]: Entering directory `/home/skorpio/Desktop/amule-cvs/src'
Making all in utils
make[4]: Entering directory `/home/skorpio/Desktop/amule-cvs/src/utils'
Making all in xas
make[5]: Entering directory `/home/skorpio/Desktop/amule-cvs/src/utils/xas'
Making all in docs
make[6]: Entering directory `/home/skorpio/Desktop/amule-cvs/src/utils/xas/docs'make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src/utils/xas/docs'
make[6]: Entering directory `/home/skorpio/Desktop/amule-cvs/src/utils/xas'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src/utils/xas'
make[5]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src/utils/xas'
make[5]: Entering directory `/home/skorpio/Desktop/amule-cvs/src/utils'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src/utils'
make[4]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src/utils'
Making all in pixmaps
make[4]: Entering directory `/home/skorpio/Desktop/amule-cvs/src/pixmaps'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src/pixmaps'
Making all in kademlia
make[4]: Entering directory `/home/skorpio/Desktop/amule-cvs/src/kademlia'
Making all in io
make[5]: Entering directory `/home/skorpio/Desktop/amule-cvs/src/kademlia/io'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src/kademlia/io'
Making all in kademlia
make[5]: Entering directory `/home/skorpio/Desktop/amule-cvs/src/kademlia/kademlia'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src/kademlia/kademlia'
Making all in net
make[5]: Entering directory `/home/skorpio/Desktop/amule-cvs/src/kademlia/net'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src/kademlia/net'
Making all in routing
make[5]: Entering directory `/home/skorpio/Desktop/amule-cvs/src/kademlia/routing'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src/kademlia/routing'
Making all in utils
make[5]: Entering directory `/home/skorpio/Desktop/amule-cvs/src/kademlia/utils'make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src/kademlia/utils'
make[5]: Entering directory `/home/skorpio/Desktop/amule-cvs/src/kademlia'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src/kademlia'
make[4]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src/kademlia'
make[4]: Entering directory `/home/skorpio/Desktop/amule-cvs/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..    -DUSE_WX_TRAY -I/usr/lib/wx/include/gtk2-unicode-release-2.5 -I/usr/include/wx-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES    -D__GTK2__   -D__COMPILE_KAD__ -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC   -MT amule-listctrl.o -MD -MP -MF ".deps/amule-listctrl.Tpo" -c -o amule-listctrl.o `test -f 'listctrl.cpp' || echo './'`listctrl.cpp; \
then mv -f ".deps/amule-listctrl.Tpo" ".deps/amule-listctrl.Po"; else rm -f ".deps/amule-listctrl.Tpo"; exit 1; fi
In file included from listctrl.cpp:6:
extern/listctrl.242.cpp:65:25: gtk/gtk.h: No such file or directory
In file included from extern/listctrl.242.cpp:66,
                 from listctrl.cpp:6:
/usr/include/wx-2.5/wx/gtk/win_gtk.h:18:21: gdk/gdk.h: No such file or directory/usr/include/wx-2.5/wx/gtk/win_gtk.h:19:22: gdk/gdkx.h: No such file or directory
/usr/include/wx-2.5/wx/gtk/win_gtk.h:20:30: gtk/gtkcontainer.h: No such file or directory
/usr/include/wx-2.5/wx/gtk/win_gtk.h:21:31: gtk/gtkadjustment.h: No such file or directory
In file included from extern/listctrl.242.cpp:66,
                 from listctrl.cpp:6:
/usr/include/wx-2.5/wx/gtk/win_gtk.h:54: error: 'GtkContainer' is used as a type, but is not defined as a type.
/usr/include/wx-2.5/wx/gtk/win_gtk.h:55: error: syntax error before `*' token
/usr/include/wx-2.5/wx/gtk/win_gtk.h:66: error: 'GdkVisibilityState' is used as a type, but is not defined as a type.
/usr/include/wx-2.5/wx/gtk/win_gtk.h:71: error: 'gboolean' is used as a type, but is not defined as a type.
/usr/include/wx-2.5/wx/gtk/win_gtk.h:72: error: 'gboolean' is used as a type, but is not defined as a type.
/usr/include/wx-2.5/wx/gtk/win_gtk.h:73: error: 'gboolean' is used as a type, but is not defined as a type.
/usr/include/wx-2.5/wx/gtk/win_gtk.h:78: error: 'GtkContainerClass' is used as a type, but is not defined as a type.
/usr/include/wx-2.5/wx/gtk/win_gtk.h:85: error: parse error before `)' token
/usr/include/wx-2.5/wx/gtk/win_gtk.h:92: error: type specifier omitted for parameter `gboolean'
/usr/include/wx-2.5/wx/gtk/win_gtk.h:92: error: parse error before `)' token
/usr/include/wx-2.5/wx/gtk/win_gtk.h:95: error: type specifier omitted for parameter `gboolean'
/usr/include/wx-2.5/wx/gtk/win_gtk.h:95: error: parse error before `)' token
/usr/include/wx-2.5/wx/gtk/win_gtk.h:98: error: type specifier omitted for parameter `gboolean'
/usr/include/wx-2.5/wx/gtk/win_gtk.h:98: error: parse error before `)' token
In file included from listctrl.cpp:6:
extern/listctrl.242.cpp: In member function `void MuleExtern::wxListLineData::SetPosition(int, int, int, int)':
extern/listctrl.242.cpp:1470: warning: unused parameter `int window_width'
extern/listctrl.242.cpp: In member function `void MuleExtern::wxListHeaderWindow::DoDrawRect(wxDC*, int, int, int, int)':
extern/listctrl.242.cpp:1891: error: `GtkStateType' undeclared (first use this function)
extern/listctrl.242.cpp:1891: error: (Each undeclared identifier is reported only once for each function it appears in.)
extern/listctrl.242.cpp:1891: error: parse error before `=' token
extern/listctrl.242.cpp:1896: error: invalid use of undefined type `struct _GtkWidget'
/usr/include/wx-2.5/wx/defs.h:2535: error: forward declaration of `struct _GtkWidget'
extern/listctrl.242.cpp:1896: error: `gtk_pizza_get_type' undeclared (first use this function)
extern/listctrl.242.cpp:1896: error: parse error before `)' token
extern/listctrl.242.cpp:1896: error: `GTK_CHECK_CAST' undeclared (first use this function)
extern/listctrl.242.cpp:1897: error: `state' undeclared (first use this function)
extern/listctrl.242.cpp:1897: error: `GTK_SHADOW_OUT' undeclared (first use this function)
extern/listctrl.242.cpp:1898: error: `GdkRectangle' undeclared (first use this function)
extern/listctrl.242.cpp:1898: error: parse error before `)' token
extern/listctrl.242.cpp:1889: warning: unused parameter `int y'
extern/listctrl.242.cpp:1889: warning: unused parameter `int w'
extern/listctrl.242.cpp:1889: warning: unused parameter `int h'
extern/listctrl.242.cpp: In member function `void MuleExtern::wxListMainWindow::OnChar(wxKeyEvent&)':
extern/listctrl.242.cpp:3467: warning: `KeyCode' is deprecated (declared at /usr/include/wx-2.5/wx/event.h:945)
extern/listctrl.242.cpp:3484: warning: `KeyCode' is deprecated (declared at /usr/include/wx-2.5/wx/event.h:945)
extern/listctrl.242.cpp:3502: warning: `KeyCode' is deprecated (declared at /usr/include/wx-2.5/wx/event.h:945)
extern/listctrl.242.cpp: In member function `long int MuleExtern::wxListMainWindow::FindItem(long int, long int)':
extern/listctrl.242.cpp:4487: warning: comparison between signed and unsigned integer expressions
extern/listctrl.242.cpp: In member function `virtual wxListItemAttr* MuleExtern::wxGenericListCtrl::OnGetItemAttr(long int) const':
extern/listctrl.242.cpp:5465: warning: unused parameter `long int item'
make[4]: *** [amule-listctrl.o] Error 1
make[4]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/skorpio/Desktop/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/skorpio/Desktop/amule-cvs'
make: *** [all] Error 2

Hope youi can help me guys :D BTW: when will the next release of aMule be ready for business? We've been waiting for it for a while now  ?(
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Error while compiling
« Reply #6 on: October 03, 2005, 11:05:49 AM »

Quote
extern/listctrl.242.cpp:65:25: gtk/gtk.h: No such file or directory
/usr/include/wx-2.5/wx/gtk/win_gtk.h:18:21: gdk/gdk.h: No such file or directory
/usr/include/wx-2.5/wx/gtk/win_gtk.h:19:22: gdk/gdkx.h: No such file or directory
Looks like you'll need libgtk-dev
Logged