aMule Forum

English => Compilation problems => Topic started by: blabla on December 19, 2010, 09:34:45 AM

Title: Compilation problem: listctrl.cpp
Post by: blabla 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





Title: Re: Compilation problem: listctrl.cpp
Post by: Gerd78 on December 19, 2010, 04:47:41 PM
Is wxX11 supported at all? See http://forum.amule.org/index.php?topic=15463.0 etc.
Title: Re: Compilation problem: listctrl.cpp
Post by: Stu Redman on December 19, 2010, 05:39:17 PM
No. You need wxGTK.
Title: Re: Compilation problem: listctrl.cpp
Post by: blabla 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