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: listctrl.cpp  (Read 3258 times)

blabla

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Compilation problem: listctrl.cpp
« on: December 19, 2010, 09:34:45 AM »

Hi all!
i m trying to compile amule 2.2.6 but it fails with listctrl.cpp file. I have an old fedora 6 but i have
wxX11 2.8.11 and crypto++  selfcompiled. g++ version is 4.1.2

I use configure without any options and it runs fine except says that i have no UPnP support... but i dont care.

I give you just the beginning of the error message otherwise this post gets unreadable:

...
Compiling DirectoryTreeCtrl.cpp
Compiling EditServerListDlg.cpp
Compiling listctrl.cpp
/usr/local/include/wx-2.8/wx/univ/renderer.h: In member function ‘virtual int MuleExtern::wxDelegateRenderer::DrawHeaderButton(MuleExtern::wxWindow*, MuleExtern::wxDC&, const wxRect&, int, wxHeaderSortIconType, wxHeaderButtonParams*)’:
/usr/local/include/wx-2.8/wx/univ/renderer.h:856: error: no matching function for call to ‘MuleExtern::wxRenderer::DrawHeaderButton(MuleExtern::wxWindow*&, MuleExtern::wxDC&, const wxRect&, int&, wxHeaderSortIconType&, wxHeaderButtonParams*&)’
/usr/local/include/wx-2.8/wx/renderer.h:317: note: candidates are: virtual int wxDelegateRendererNative::DrawHeaderButton(wxWindow*, wxDC&, const wxRect&, int, wxHeaderSortIconType, wxHeaderButtonParams*)
/usr/local/include/wx-2.8/wx/univ/renderer.h: In member function ‘virtual void MuleExtern::wxDelegateRenderer::DrawTreeItemButton(MuleExtern::wxWindow*, MuleExtern::wxDC&, const wxRect&, int)’:
/usr/local/include/wx-2.8/wx/univ/renderer.h:861: error: no matching function for call to ‘MuleExtern::wxRenderer::DrawTreeItemButton(MuleExtern::wxWindow*&, MuleExtern::wxDC&, const wxRect&, int&)’
/usr/local/include/wx-2.8/wx/renderer.h:334: note: candidates are: virtual void wxDelegateRendererNative::DrawTreeItemButton(wxWindow*, wxDC&, const wxRect&, int)
extern/wxWidgets/listctrl.cpp: At global scope:
extern/wxWidgets/listctrl.cpp:1764: error: prototype for ‘void MuleExtern::wxListHeaderWindow::AdjustDC(MuleExtern::wxDC&)’ does not match any in class ‘MuleExtern::wxListHeaderWindow’
extern/wxWidgets/listctrl.cpp:412: error: candidate is: void MuleExtern::wxListHeaderWindow::AdjustDC(wxDC&)
extern/wxWidgets/listctrl.cpp: In member function ‘void MuleExtern::wxListHeaderWindow::AdjustDC(MuleExtern::wxDC&)’:
extern/wxWidgets/listctrl.cpp:1775: error: invalid use of undefined type ‘struct MuleExtern::wxDC’
/usr/local/include/wx-2.8/wx/univ/renderer.h:34: error: forward declaration of ‘struct MuleExtern::wxDC’
extern/wxWidgets/listctrl.cpp:1788: error: invalid use of undefined type ‘struct MuleExtern::wxDC’
/usr/local/include/wx-2.8/wx/univ/renderer.h:34: error: forward declaration of ‘struct MuleExtern::wxDC’
...

anybody has an idea what i am doing wrong?
Cheers
blabla





Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: Compilation problem: listctrl.cpp
« Reply #1 on: December 19, 2010, 04:47:41 PM »

Is wxX11 supported at all? See http://forum.amule.org/index.php?topic=15463.0 etc.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Compilation problem: listctrl.cpp
« Reply #2 on: December 19, 2010, 05:39:17 PM »

No. You need wxGTK.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

blabla

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: Compilation problem: listctrl.cpp
« Reply #3 on: December 19, 2010, 11:08:27 PM »

guess i should have searched the forum first.

maybe would be nice if the configure script would complain if someone has wxX11. It does complain
if you lack unicode wx... already, so it pretty much seems to check this wx... installation already.

anyways thanks for the help. i'll try wxGTK then. If that ever compiles on my stone age fedora.
blabla
Logged