So browsing around I read a bit about amuled, as I used mldonkey a lot, I thought it would be nice to give it a try as aMule takes some performance away form my computer and I don't fear starting something form the terminal or controling amule via web.
But I can't get it to compile...
Here is what I tried:
./configure --disable-systray --disable-gtk --with-wx-config=/usr/local/bin/wx-config --enable-debug --disable-optimise --enable-amule-daemon --enable-amulecmd --enable-webserver --enable-amulecmdgui --enable-webservergui
where the first part is form another thread in the crash forum:
http://forum.amule.org/thread.php?threadid=4644&sid=I have wxWidgets from CVS and that one line commented out.
The second part starting from --enable-amule-daemon is from another thread I found around here, but is also pretty clear from ./configure --help
The configure script exits without any error or warning:
Configure script has finished system check.
Configured aMule 2.0.0rc8 for 'powerpc-apple-darwin7.7.0'.
aMule enabled options:
**** aMule Core ****
Should aMule be compiled in debug mode? yes
Should aMule be compiled with verbose console output? no
Should aMule be compiled with upload speed sense? no
Should aMule be compiled with profiling? no
Should aMule be compiled with optimizations? no
Should aMule be compiled with systray? no
Should aMule be compiled with UTF-8 systray? no
Should aMule be compiled with pure GTK code? no
Should aMule be linked against patched gsocket? no
Should aMule monolithic application be built? yes
Should aMule daemon version be built? (EXPERIMENTAL) yes
Should aMule remote gui be built? (EXPERIMENTAL) no
Crypto++ library/headers style? embeded
**** aMule TextClient ****
Should amulecmd (TextClient) be linked against wxbase? yes
Should aMule Command Line Client be built? yes
Should aMule GUI Client be built? yes
**** aMule WebServer ****
Should aMule WebServer be built? yes
Should aMule WebServer GUI be built? yes
**** aMule ED2K Links Handler ****
Should aMule ED2K Links Handler be built? yes
**** aMuleLinkCreator ****
Should aMuleLinkCreator GUI version (alc) be built? yes
Should aMuleLinkCreator for console (alcc) be built? yes
**** aMule Statistics ****
Should C aMule Statistics (CAS) be built? yes
Should aMule GUI Statistics (wxCas) be built? yes
**** General Libraries and Tools ****
Should ccache support be enabled? no
Libraries aMule will use to build:
wxWidgets 2.5.3
GTK Not detected (Not used)
But then make exits with the following warning/error:
In file included from WebInterface.cpp:36:
WebInterface.h:47: error: base class `wxFrame' has incomplete type
WebInterface.h:50: error: `wxDEFAULT_FRAME_STYLE' was not declared in this scope
/usr/local/include/wx-2.5/wx/mac/carbon/frame.h:115: error: `const wxEventTable wxFrame::sm_eventTable' is protected
WebInterface.cpp:103: error: within this context
WebInterface.cpp:104: error: invalid static_cast from type `void (CamulewebFrame::*)(wxCommandEvent&)' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
WebInterface.cpp:105: error: invalid static_cast from type `void (CamulewebFrame::*)(wxCommandEvent&)' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
WebInterface.cpp:106: error: invalid static_cast from type `void (CamulewebFrame::*)(wxCommandEvent&)' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
WebInterface.cpp:107: error: invalid static_cast from type `void (CamulewebFrame::*)(wxIdleEvent&)' to type `void (wxEvtHandler::*)(wxIdleEvent&)'
WebInterface.cpp:108: error: invalid static_cast from type `void (CamulewebFrame::*)(wxTimerEvent&)' to type `void (wxEvtHandler::*)(wxTimerEvent&)'
WebInterface.cpp: In constructor `CamulewebFrame::CamulewebFrame(const wxString&, const wxPoint&, const wxSize&, long int)':
WebInterface.cpp:113: error: type `class wxFrame' is not a direct base of `CamulewebFrame'
WebInterface.cpp:127: error: `SetMenuBar' undeclared (first use this function)
WebInterface.cpp:127: error: (Each undeclared identifier is reported only once for each function it appears in.)
WebInterface.cpp:133: error: no matching function for call to `wxTextCtrl::wxTextCtrl(CamulewebFrame* const, int, const wxChar*&, const wxPoint&, wxSize, unsigned int)'
/usr/local/include/wx-2.5/wx/mac/carbon/textctrl.h:27: error: candidates are: wxTextCtrl::wxTextCtrl(const wxTextCtrl&)
/usr/local/include/wx-2.5/wx/mac/carbon/textctrl.h:41: error: wxTextCtrl::wxTextCtrl(wxWindow*, int, const wxString& = wxEmptyString, const wxPoint& = wxDefaultPosition, const wxSize& = wxDefaultSize, long int = 0, const wxValidator& = wxDefaultValidator, const wxString& = wxTextCtrlNameStr)
/usr/local/include/wx-2.5/wx/mac/carbon/textctrl.h:33: error: wxTextCtrl::wxTextCtrl()
WebInterface.cpp:144: error: no matching function for call to `wxStaticLine::wxStaticLine(CamulewebFrame* const, int, const wxPoint&, const wxSize&, wxOrientation)'
/usr/local/include/wx-2.5/wx/mac/carbon/statline.h:25: error: candidates are: wxStaticLine::wxStaticLine(const wxStaticLine&)
/usr/local/include/wx-2.5/wx/mac/carbon/statline.h:38: error: wxStaticLine::wxStaticLine(wxWindow*, int, const wxPoint& = wxDefaultPosition, const wxSize& = wxDefaultSize, long int = wxHORIZONTAL, const wxString& = wxStaticTextNameStr)
/usr/local/include/wx-2.5/wx/mac/carbon/statline.h:30: error: wxStaticLine::wxStaticLine()
WebInterface.cpp:147: error: no matching function for call to `wxTextCtrl::wxTextCtrl(CamulewebFrame* const, , const wxChar*&, const wxPoint&, wxSize, int)'
/usr/local/include/wx-2.5/wx/mac/carbon/textctrl.h:27: error: candidates are: wxTextCtrl::wxTextCtrl(const wxTextCtrl&)
/usr/local/include/wx-2.5/wx/mac/carbon/textctrl.h:41: error: wxTextCtrl::wxTextCtrl(wxWindow*, int, const wxString& = wxEmptyString, const wxPoint& = wxDefaultPosition, const wxSize& = wxDefaultSize, long int = 0, const wxValidator& = wxDefaultValidator, const wxString& = wxTextCtrlNameStr)
/usr/local/include/wx-2.5/wx/mac/carbon/textctrl.h:33: error: wxTextCtrl::wxTextCtrl()
WebInterface.cpp:151: error: `SetSizer' undeclared (first use this function)
WebInterface.cpp:152: error: no matching function for call to `wxBoxSizer::SetSizeHints(CamulewebFrame* const)'
/usr/local/include/wx-2.5/wx/sizer.h:407: error: candidates are: void wxSizer::SetSizeHints(wxWindow*)
WebInterface.cpp:154: error: no matching function for call to `wxTimer::wxTimer(CamulewebFrame* const, )'
/usr/local/include/wx-2.5/wx/mac/carbon/timer.h:27: error: candidates are: wxTimer::wxTimer(const wxTimer&)
/usr/local/include/wx-2.5/wx/mac/carbon/timer.h:30: error: wxTimer::wxTimer(wxEvtHandler*, int = -1)
/usr/local/include/wx-2.5/wx/mac/carbon/timer.h:29: error: wxTimer::wxTimer()
WebInterface.cpp: In member function `void CamulewebFrame::OnQuit(wxCommandEvent&)':
WebInterface.cpp:161: error: `Show' undeclared (first use this function)
WebInterface.cpp:162: error: `Close' undeclared (first use this function)
WebInterface.cpp: In member function `void CamulewebFrame::OnAbout(wxCommandEvent&)':
WebInterface.cpp:172: error: cannot convert `CamulewebFrame* const' to `wxWindow*' for argument `4' to `int wxMessageBox(const wxString&, const wxString&, long int, wxWindow*, int, int)'
WebInterface.cpp: In member function `virtual bool CamulewebApp::OnInit()':
WebInterface.cpp:215: error: `Show' undeclared (first use this function)
make[2]: *** [amulewebDLG-WebInterface.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Any suggestions?
It may be that there were old things in my aMule Directory even before the ./configure from an old compilation. I don't know.
If this may producee some error, please tell me how to get rid of the leftovers of previous compilations.
(I tried this with aMule-2.0.0rc8,
Most recent Mac OS X 10.3.7
Latest XCode)