At his point I'm not able to compile aMule (even SVN release)...
wxWidgets 2.9.0 (with patches)I patched sources to solve a problem with
texctrl under cocoa (read
this) and applied
this patch for undefined large file support.
Then, this is the only way I found to compile wxWidgets with no errors:
$ ./configure --enable-unicode --disable-shared --disable-debug --disable-debug_gdb --with-osx_cocoa --with-macosx-version-min=10.6
Only some warnings like:
... "wxEVENTS_COMPATIBILITY_2_8" is not defined
aMule SVN Release 2.2.XI applied only the patch to add "osx_cocoa" toolkit option to
configure file. Then I tried a "no frills" configuration:
$ ./configure --disable-debug --enable-optimize --with-wxdir=../wxWidgets-2.9.0/ --with-crypto-prefix=/opt/local/ --with-gdlib-config=/opt/local/bin/gdlib-config --with-libiconv-prefix=/opt/local --with-toolkit=osx_cocoa
But
make fails after a few lines:
ECMuleSocket.cpp: In member function ‘virtual int CECMuleSocket::InternalGetLastError()’:
ECMuleSocket.cpp:136: error: ‘wxSOCKET_DUMMY’ was not declared in this scope
ECMuleSocket.cpp:115: warning: enumeration value ‘wxSOCKET_OPTERR’ not handled in switch
make[7]: *** [ECMuleSocket.o] Error 1
make[7]: *** Waiting for unfinished jobs....
In file included from /Users/mirko/Desktop/TEMP/wxWidgets-2.9.0/include/wx/memory.h:16,
from /Users/mirko/Desktop/TEMP/wxWidgets-2.9.0/include/wx/object.h:20,
from /Users/mirko/Desktop/TEMP/wxWidgets-2.9.0/include/wx/event.h:17,
from /Users/mirko/Desktop/TEMP/wxWidgets-2.9.0/include/wx/socket.h:23,
from ECMuleSocket.h:29,
from RemoteConnect.h:30,
from RemoteConnect.cpp:26:
/Users/mirko/Desktop/TEMP/wxWidgets-2.9.0/include/wx/string.h: In constructor ‘wxString::iterator::iterator(wxString*, wxStringImpl::iterator)’:
/Users/mirko/Desktop/TEMP/wxWidgets-2.9.0/include/wx/string.h:1008: warning: declaration of ‘str’ shadows a member of 'this'
/Users/mirko/Desktop/TEMP/wxWidgets-2.9.0/include/wx/string.h: In constructor ‘wxString::const_iterator::const_iterator(const wxString*, wxStringImpl::const_iterator)’:
/Users/mirko/Desktop/TEMP/wxWidgets-2.9.0/include/wx/string.h:1053: warning: declaration of ‘str’ shadows a member of 'this'
make[6]: *** [all] Error 2
make[5]: *** [all-recursive] Error 1
make[4]: *** [all] Error 2
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2