aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 ... 4 5 [6] 7

Author Topic: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)  (Read 68630 times)

mirko.g

  • Global Moderator
  • Full Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 188
  • Grattatio pallorum omnia mala repellent!
    • Personal WebSite
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #75 on: September 20, 2009, 11:53:36 AM »

For that you still use your patched configure script, don't you?

Yes I do. wx r61977 is the first revision which can be built on Mac since r61942... so I wanted to try it! ^_^
It seems to be all right with wx:
Code: [Select]
./wx-config --list

    Default config is osx_cocoa-unicode-static-2.9

  Default config in /Users/mirko/Desktop/aMule-dev/wxWidgets_r61977 will be used for output
and
Code: [Select]
./wx-config --selected-config
osx_cocoa-unicode-static-2.9
ending with
Code: [Select]
WX_DEBUG_CONFIGURE=1 ./configure --disable-debug --enable-optimize --enable-amulecmd --enable-webserver --enable-cas --enable-alc --enable-alcc --enable-amule-daemon --enable-amule-gui --enable-wxcas --enable-geoip --with-geoip-headers=/opt/local/include --with-geoip-lib=/opt/local/lib --with-wx-config=../wxWidgets_r61977 --with-crypto-prefix=/usr/local/cryptopp --with-gdlib-config=/opt/local/bin/gdlib-config --with-libiconv-prefix=/opt/local
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-apple-darwin10.0.0
checking host system type... i686-apple-darwin10.0.0
checking if this is a FreeBSD 4 or earlier system... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for gawk... (cached) awk
checking for egrep... grep -E
checking whether make sets $(MAKE)... (cached) yes
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... bison -y
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for ar... ar
checking for ld... ld
checking for zlib >= 1.1.4... yes (version 1.2.3)
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for gdlib-config... /opt/local/bin/gdlib-config
checking for gdlib version >= 2.0.0... yes (version 2.0.35)
checking gd.h usability... yes
checking gd.h presence... no
configure: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: gd.h: proceeding with the compiler's result
checking for gd.h... yes
checking for libpng-config... /opt/local/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.38)
checking for File::Copy... ok
checking whether we need the GUI... yes
checking GeoIP.h usability... yes
checking GeoIP.h presence... yes
checking for GeoIP.h... yes
checking for GeoIP_open in -lGeoIP... yes
checking for the --with-toolkit option... will be automatically detected
checking for the --with-wxshared option... will be automatically detected
checking for the --with-wxdebug option... will be automatically detected
checking for the --with-wxversion option... will be automatically detected
[dbg] DEBUG: , WX_DEBUG: auto
[dbg] UNICODE: , WX_UNICODE:
[dbg] SHARED: , WX_SHARED: auto
[dbg] TOOLKIT: auto, WX_TOOLKIT:
[dbg] VERSION: SVN, WX_VERSION: auto
[dbg] WXCONFIG_FLAGS: --unicode=yes
checking for wx-config... ../wxWidgets_r61977
checking for wxWidgets version >= 2.8.8 (--unicode=yes)... no
configure: error:
    The requested wxWidgets build couldn't be found.
   
    The configuration you asked for aMule requires a wxWidgets
    build with the following settings:
        --unicode=yes
    but such build is not available.

    To see the wxWidgets builds available on this system, please use
    'wx-config --list' command. To use the default build, returned by
    'wx-config --selected-config', use the options with their 'auto'
    default values.

    If you still get this error, then check that 'wx-config' is
    in path, the directory where wxWidgets libraries are installed
    (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
    or equivalent variable and wxWidgets version is 2.8.8 or above.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #76 on: September 20, 2009, 01:13:09 PM »

--with-wx-config=../wxWidgets_r61977

Use --with-wx-config=../wxWidgets_r61977/wx-config
Logged
concordia cum veritate

mirko.g

  • Global Moderator
  • Full Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 188
  • Grattatio pallorum omnia mala repellent!
    • Personal WebSite
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #77 on: September 20, 2009, 02:01:58 PM »

Use --with-wx-config=../wxWidgets_r61977/wx-config

Thanks it worked.

I used:
Code: [Select]
./configure --disable-debug --enable-optimize --enable-amulecmd --enable-webserver --enable-cas --enable-alc --enable-alcc --enable-amule-daemon --enable-amule-gui --enable-wxcas --enable-geoip --with-geoip-headers=/opt/local/include --with-geoip-lib=/opt/local/lib --with-wx-config=../wxWidgets_r61977/wx-config --with-crypto-prefix=/opt/local --with-gdlib-config=/opt/local/bin/gdlib-config --with-libiconv-prefix=/opt/local
but make failed:
Code: [Select]
make  all-recursive
Making all in intl
make[2]: Nothing to be done for `all'.
Making all in po
make[2]: Nothing to be done for `all'.
Making all in docs
Making all in man
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in src
Making all in libs
Making all in ec
make  all-recursive
Making all in cpp
make  all-am
make[7]: Nothing to be done for `all-am'.
make[6]: Nothing to be done for `all-am'.
Making all in common
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
Making all in utils
Making all in cas
Making all in docs
make[5]: Nothing to be done for `all'.
make[5]: Nothing to be done for `all-am'.
Making all in wxCas
Making all in src
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..  -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -DUSE_WX_EXTENSIONS -I/Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/include -D_FILE_OFFSET_BITS=64 -D__WXOSX_COCOA__ -I/opt/local/include -W -Wall -Wshadow -Wundef -O2  -I/Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/include -D_FILE_OFFSET_BITS=64 -D__WXOSX_COCOA__  -MT wxcascte.o -MD -MP -MF ".deps/wxcascte.Tpo" -c -o wxcascte.o wxcascte.cpp; \
then mv -f ".deps/wxcascte.Tpo" ".deps/wxcascte.Po"; else rm -f ".deps/wxcascte.Tpo"; exit 1; fi
wxcascte.cpp:40:67: error: wx/mac/corefoundation/cfstring.h: No such file or directory
wxcascte.cpp: In function ‘wxString GetDefaultAmulesigPath()’:
wxcascte.cpp:136: error: ‘wxMacCFStringHolder’ was not declared in this scope
make[5]: *** [wxcascte.o] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #78 on: September 20, 2009, 02:24:00 PM »

In the meanwhile, learning something more about compiling...  :P
Mirko, we need to teach you some dev skills or this will take forever. We are short of a Mac dev at the moment as you might have noticed.

wxcascte.cpp fails to compile with a very similar error as amule.cpp before. Now look at the patch it took to fix amule.cpp:
Code: [Select]
Index: amule.cpp
===================================================================
--- amule.cpp (revision 9812)
+++ amule.cpp (revision 9813)
@@ -95,7 +95,11 @@
 #ifndef AMULE_DAEMON
  #ifdef __WXMAC__
  #include <CoreFoundation/CFBundle.h>  // Do_not_auto_remove
- #include <wx/mac/corefoundation/cfstring.h>  // Do_not_auto_remove
+ #if wxCHECK_VERSION(2, 9, 0)
+ #include <wx/osx/core/cfstring.h>  // Do_not_auto_remove
+ #else
+ #include <wx/mac/corefoundation/cfstring.h>  // Do_not_auto_remove
+ #endif
  #endif
  #include <wx/msgdlg.h>
 
@@ -847,7 +851,11 @@
  if (absoluteUrl) {
  CFStringRef amulewebCfstr = CFURLCopyFileSystemPath(absoluteUrl, kCFURLPOSIXPathStyle);
  CFRelease(absoluteUrl);
+ #if wxCHECK_VERSION(2, 9, 0)
+ amulewebPath = wxCFStringRef(amulewebCfstr).AsString(wxLocale::GetSystemEncoding());
+ #else
  amulewebPath = wxMacCFStringHolder(amulewebCfstr).AsString(wxLocale::GetSystemEncoding());
+ #endif
  }
  }
 #endif
Try to find the corresponding parts in wxcascte.cpp and see if you can fix it yourself. Then post a patch. That will be way more satisfying for you.  :)
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

mirko.g

  • Global Moderator
  • Full Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 188
  • Grattatio pallorum omnia mala repellent!
    • Personal WebSite
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #79 on: September 20, 2009, 04:53:00 PM »

Mirko, we need to teach you some dev skills or this will take forever. We are short of a Mac dev at the moment as you might have noticed.

Yes Sir!  ;)

Quote
Try to find the corresponding parts in wxcascte.cpp and see if you can fix it yourself. Then post a patch. That will be way more satisfying for you.  :)

Ok I can do it...

(half an hour later)

Well, I came out of this. I attached my patchfile. Now, it seems this occurs with some other files (now I'm on alcframe.cpp). I'll continue patching until I get a new unknown (for me) error.  :)

UPDATE: added alcframe.patch...
UPDATE2: added WebInterface.patch
UPDATE3: I cannot go over here:
Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I../../..  -I../.. -I../../../src -I../../../src/libs -I../../../src/include -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -DUSE_WX_EXTENSIONS -DWITH_LIBPNG  -I/Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/include -D_FILE_OFFSET_BITS=64 -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -DEC_REMOTE -DWEBSERVERDIR="\"/usr/local/share/amule/webserver\"" -DECSOCKET_USE_EVENTS=0 -I../../../intl  -I/opt/local/include/upnp   -DENABLE_UPNP=1 -I/opt/local/include -W -Wall -Wshadow -Wundef -O2  -I/Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/include -D_FILE_OFFSET_BITS=64 -D__WXOSX_COCOA__ -I/opt/local/include/libpng12 -D_THREAD_SAFE    -MT amuleweb-ExternalConnector.o -MD -MP -MF ".deps/amuleweb-ExternalConnector.Tpo" -c -o amuleweb-ExternalConnector.o `test -f '../../../src/ExternalConnector.cpp' || echo './'`../../../src/ExternalConnector.cpp; \
then mv -f ".deps/amuleweb-ExternalConnector.Tpo" ".deps/amuleweb-ExternalConnector.Po"; else rm -f ".deps/amuleweb-ExternalConnector.Tpo"; exit 1; fi
../../../src/ExternalConnector.cpp:610: error: invalid covariant return type for ‘virtual wxStandardPathsBase& CaMuleExternalConnectorTraits::GetStandardPaths()’
/Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/include/wx/apptrait.h:78: error:   overriding ‘virtual wxStandardPaths& wxAppTraitsBase::GetStandardPaths()’
make[4]: *** [amuleweb-ExternalConnector.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
« Last Edit: September 20, 2009, 05:18:35 PM by mirko.g »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #80 on: September 20, 2009, 06:35:55 PM »

Good job! I knew you could do it.  :)
The last one should be easy too. I'm pretty sure that's just part of the legacy stuff obsolete with wx 2.9:
Code: [Select]
Index: ExternalConnector.cpp
===================================================================
--- ExternalConnector.cpp (revision 9816)
+++ ExternalConnector.cpp (working copy)
@@ -599,7 +599,7 @@
  return m_locale == NULL ? wxString() : m_locale->GetCanonicalName();
 }
 
-#if !wxUSE_GUI && defined(__WXMAC__)
+#if !wxUSE_GUI && defined(__WXMAC__) && !wxCHECK_VERSION(2, 9, 0)
 
 #include <wx/apptrait.h> // Do_not_auto_remove
 #include <wx/stdpaths.h> // Do_not_auto_remove
Please verify.
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

mirko.g

  • Global Moderator
  • Full Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 188
  • Grattatio pallorum omnia mala repellent!
    • Personal WebSite
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #81 on: September 20, 2009, 06:56:37 PM »

Ok I think it worked since now there is a new error:
Code: [Select]
g++     -o amuleweb -bind_at_load -lpthread -L../../libs/common -L../../libs/ec/cpp -L/opt/local/lib  -L/opt/local/lib   amuleweb-WebServer.o amuleweb-WebInterface.o amuleweb-WebSocket.o amuleweb-ExternalConnector.o amuleweb-OtherFunctions.o amuleweb-RLE.o amuleweb-NetworkFunctions.o amuleweb-php_parser.o amuleweb-php_lexer.o amuleweb-php_syntree.o amuleweb-php_amule_lib.o amuleweb-php_core_lib.o amuleweb-UPnPBase.o amuleweb-UPnPCompatibility.o  -lec -lmulecommon -L/Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/lib   -L/opt/local/lib -framework QuickTime -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL  /Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/lib/libwx_baseu_net-2.9.a /Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/lib/libwx_baseu-2.9.a -lwxregexu-2.9 -lwxtiff-2.9 -lwxjpeg-2.9 -lwxpng-2.9 -lz -lpthread -liconv   -lz -lreadline -lpng12  ../../../intl/libintl.a /opt/local/lib/libiconv.dylib -lupnp -lthreadutil -lixml   
ld: warning: in /System/Library/Frameworks//QuickTime.framework/QuickTime, missing required architecture x86_64 in file
Undefined symbols:
  "CaMuleExternalConnector::CreateTraits()", referenced from:
      vtable for CamulewebAppin amuleweb-WebInterface.o
      vtable for CaMuleExternalConnectorin amuleweb-ExternalConnector.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [amuleweb] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

A note about this warning:
Code: [Select]
ld: warning: in /System/Library/Frameworks//QuickTime.framework/QuickTime, missing required architecture x86_64 in fileI dunno if this is related either to aMule or wx... Apple introduced QuickTimeX with Snow Leopard which uses a rewritten (and 64 bit) Quick Time kit. Somewhere Snow Leopard bring Quick Time too but it's 32-bit.
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #82 on: September 20, 2009, 08:01:40 PM »

Ok I think it worked since now there is a new error:
Well, it didn't. Code still is used. I'll take another look.

A note about this warning:
Code: [Select]
ld: warning: in /System/Library/Frameworks//QuickTime.framework/QuickTime, missing required architecture x86_64 in fileI dunno if this is related either to aMule or wx... Apple introduced QuickTimeX with Snow Leopard which uses a rewritten (and 64 bit) Quick Time kit. Somewhere Snow Leopard bring Quick Time too but it's 32-bit.
Why is the -framework QuickTime added to linker options? We shouldn't need Quicktime (or OpenGL).
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

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #83 on: September 20, 2009, 08:11:42 PM »

Ok I think it worked since now there is a new error:

You also have to patch the header (help: ExternalConnector.h).
Logged
concordia cum veritate

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #84 on: September 20, 2009, 08:35:49 PM »

You're first.  :)

Mirko, please try it, then I'll commit your batch of patches.
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

mirko.g

  • Global Moderator
  • Full Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 188
  • Grattatio pallorum omnia mala repellent!
    • Personal WebSite
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #85 on: September 21, 2009, 01:57:58 AM »

You're first.  :)

Mirko, please try it, then I'll commit your batch of patches.

Now I found a different error:
Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -DUSE_WX_EXTENSIONS -I/Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/include -D_FILE_OFFSET_BITS=64 -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -I/opt/local/include/upnp   -DENABLE_UPNP=1 -D_THREAD_SAFE   -I./libs -Ilibs -I./include -I/opt/local/include -D__WEAK_CRYPTO__ -DAMULE_DAEMON  -I/opt/local/include -W -Wall -Wshadow -Wundef -O2  -I/Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/mirko/Desktop/aMule-dev/wxWidgets_r61977/include -D_FILE_OFFSET_BITS=64 -D__WXOSX_COCOA__  -MT amuled-amuled.o -MD -MP -MF ".deps/amuled-amuled.Tpo" -c -o amuled-amuled.o `test -f 'amuled.cpp' || echo './'`amuled.cpp; \
then mv -f ".deps/amuled-amuled.Tpo" ".deps/amuled-amuled.Po"; else rm -f ".deps/amuled-amuled.Tpo"; exit 1; fi
In file included from amuled.cpp:26:
amule.h:461: error: ISO C++ forbids declaration of ‘wxStandardPathsBase’ with no type
amule.h:461: error: ‘wxStandardPathsBase’ declared as a ‘virtual’ field
amule.h:461: error: expected ‘;’ before ‘&’ token
amuled.cpp:455: error: no ‘wxStandardPathsBase& CDaemonAppTraits::GetStandardPaths()’ member function declared in class ‘CDaemonAppTraits’
make[3]: *** [amuled-amuled.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I understand it's still related to #ifdef __WXMAC__ but I don't know how to fix it...

P.S.: Attached two patch for ExternalConnector.cpp and ExternalConnector.h!
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #86 on: September 21, 2009, 06:54:21 AM »

You have to do the same, i.e. add && !wxCHECK_VERSION(2, 9, 0) to both amule.h and amuled.cpp at around the lines where the error is reported.
Logged
concordia cum veritate

mirko.g

  • Global Moderator
  • Full Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 188
  • Grattatio pallorum omnia mala repellent!
    • Personal WebSite
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #87 on: September 21, 2009, 10:48:51 AM »

You have to do the same, i.e. add && !wxCHECK_VERSION(2, 9, 0) to both amule.h and amuled.cpp at around the lines where the error is reported.

Done... but it's seems not to be enough...  :-\
Code: [Select]
rm -f libmuleappcore.a
ar cru libmuleappcore.a libmuleappcore_a-AsyncDNS.o libmuleappcore_a-DeadSourceList.o libmuleappcore_a-FileArea.o libmuleappcore_a-FileAutoClose.o libmuleappcore_a-Scanner.o libmuleappcore_a-Parser.o libmuleappcore_a-PlatformSpecific.o libmuleappcore_a-Entry.o libmuleappcore_a-SearchManager.o libmuleappcore_a-RoutingBin.o libmuleappcore_a-RandomFunctions.o libmuleappcore_a-StateMachine.o libmuleappcore_a-ThreadScheduler.o libmuleappcore_a-UInt128.o
ranlib libmuleappcore.a
rm -f libmuleappgui.a
ar cru libmuleappgui.a libmuleappgui_a-BarShader.o libmuleappgui_a-ChatWnd.o libmuleappgui_a-ColorFrameCtrl.o libmuleappgui_a-CommentDialog.o libmuleappgui_a-CommentDialogLst.o libmuleappgui_a-EditServerListDlg.o libmuleappgui_a-listctrl.o libmuleappgui_a-FileDetailListCtrl.o libmuleappgui_a-MuleGifCtrl.o libmuleappgui_a-MuleListCtrl.o libmuleappgui_a-MuleNotebook.o libmuleappgui_a-MuleTextCtrl.o libmuleappgui_a-MuleCollection.o libmuleappgui_a-muuli_wdr.o
ranlib libmuleappgui.a
rm -f libmuleappcommon.a
ar cru libmuleappcommon.a libmuleappcommon_a-CFile.o libmuleappcommon_a-DataToText.o libmuleappcommon_a-ED2KLink.o libmuleappcommon_a-MagnetURI.o libmuleappcommon_a-MemFile.o libmuleappcommon_a-NetworkFunctions.o libmuleappcommon_a-Packet.o libmuleappcommon_a-RLE.o libmuleappcommon_a-SafeFile.o libmuleappcommon_a-SHA.o libmuleappcommon_a-Tag.o libmuleappcommon_a-Timer.o
ranlib libmuleappcommon.a
g++ -W -Wall -Wshadow -Wundef -O2  -bind_at_load -lpthread  -o amule  amule-CaptchaDialog.o amule-CaptchaGenerator.o amule-RC4Encrypt.o amule-amule.o amule-BaseClient.o amule-ClientList.o amule-ClientCreditsList.o amule-ClientTCPSocket.o amule-ClientUDPSocket.o amule-CorruptionBlackBox.o amule-DownloadClient.o amule-DownloadQueue.o amule-ECSpecialCoreTags.o amule-EMSocket.o amule-EncryptedStreamSocket.o amule-EncryptedDatagramSocket.o amule-ExternalConn.o amule-Friend.o amule-FriendList.o amule-HTTPDownload.o amule-IPFilter.o amule-KnownFileList.o amule-ListenSocket.o amule-MuleUDPSocket.o amule-SearchFile.o amule-SearchList.o amule-ServerConnect.o amule-ServerList.o amule-ServerSocket.o amule-ServerUDPSocket.o amule-SharedFileList.o amule-ThreadTasks.o amule-UploadBandwidthThrottler.o amule-UploadClient.o amule-UploadQueue.o amule-Indexed.o amule-Kademlia.o amule-Prefs.o amule-Search.o amule-UDPFirewallTester.o amule-KademliaUDPListener.o amule-PacketTracking.o amule-Contact.o amule-RoutingZone.o amule-UPnPBase.o amule-amule-gui.o amule-amuleDlg.o amule-AddFriend.o amule-CatDialog.o amule-ChatSelector.o amule-ClientDetailDialog.o amule-DirectoryTreeCtrl.o amule-FileDetailDialog.o amule-KadDlg.o amule-OScopeCtrl.o amule-PartFileConvert.o amule-PrefsUnifiedDlg.o amule-SearchDlg.o amule-ServerWnd.o amule-SharedFilesWnd.o amule-StatisticsDlg.o amule-SearchListCtrl.o amule-DownloadListCtrl.o amule-ClientListCtrl.o amule-FriendListCtrl.o amule-ServerListCtrl.o amule-SharedFilesCtrl.o amule-MuleTrayIcon.o amule-MuleColour.o amule-TransferWnd.o amule-IP2Country.o amule-ClientCredits.o amule-ECSpecialMuleTags.o amule-KnownFile.o amule-GapList.o amule-GetTickCount.o amule-GuiEvents.o amule-Logger.o amule-PartFile.o amule-Preferences.o amule-Proxy.o amule-Server.o amule-Statistics.o amule-StatTree.o amule-SHAHashSet.o amule-TerminationProcess.o amule-TerminationProcessAmuleweb.o amule-UserEvents.o amule-OtherFunctions.o amule-NetworkFunctions.o -L. -lmuleappcommon -Llibs/common -Llibs/ec/cpp -lmulecommon -lec   -lz  -L/opt/local/lib -lcryptopp -L. -lmuleappcore -L/opt/local/lib   -lupnp -lthreadutil -lixml    -L. -lmuleappgui  -L/Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib   -L/opt/local/lib -framework QuickTime -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL  /Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib/libwx_osx_cocoau_adv-2.9.a /Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib/libwx_osx_cocoau_core-2.9.a /Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib/libwx_baseu_net-2.9.a /Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib/libwx_baseu-2.9.a -framework WebKit -lwxregexu-2.9 -lwxtiff-2.9 -lwxjpeg-2.9 -lwxpng-2.9 -lz -lpthread -liconv  -L/opt/local/lib -lGeoIP 
ld: warning: in /System/Library/Frameworks//QuickTime.framework/QuickTime, missing required architecture x86_64 in file
g++ -W -Wall -Wshadow -Wundef -O2  -bind_at_load -lpthread  -o amulecmd  amulecmd-TextClient.o amulecmd-ExternalConnector.o amulecmd-OtherFunctions.o amulecmd-NetworkFunctions.o  -Llibs/common -Llibs/ec/cpp -lmulecommon -lec -L/Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib   -L/opt/local/lib -framework QuickTime -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL  /Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib/libwx_baseu_net-2.9.a /Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib/libwx_baseu-2.9.a -lwxregexu-2.9 -lwxtiff-2.9 -lwxjpeg-2.9 -lwxpng-2.9 -lz -lpthread -liconv  -lreadline   -lz 
ld: warning: in /System/Library/Frameworks//QuickTime.framework/QuickTime, missing required architecture x86_64 in file
g++ -W -Wall -Wshadow -Wundef -O2  -bind_at_load -lpthread  -o ed2k -bind_at_load -lpthread -framework CoreServices ed2k-ED2KLinkParser.o ed2k-MagnetURI.o ed2k-MuleCollection.o   
g++ -W -Wall -Wshadow -Wundef -O2  -bind_at_load -lpthread  -o amulegui  amulegui-amule-remote-gui.o amulegui-amule-gui.o amulegui-amuleDlg.o amulegui-AddFriend.o amulegui-CatDialog.o amulegui-ChatSelector.o amulegui-ClientDetailDialog.o amulegui-DirectoryTreeCtrl.o amulegui-FileDetailDialog.o amulegui-KadDlg.o amulegui-OScopeCtrl.o amulegui-PartFileConvert.o amulegui-PrefsUnifiedDlg.o amulegui-SearchDlg.o amulegui-ServerWnd.o amulegui-SharedFilesWnd.o amulegui-StatisticsDlg.o amulegui-SearchListCtrl.o amulegui-DownloadListCtrl.o amulegui-ClientListCtrl.o amulegui-FriendListCtrl.o amulegui-ServerListCtrl.o amulegui-SharedFilesCtrl.o amulegui-MuleTrayIcon.o amulegui-MuleColour.o amulegui-TransferWnd.o amulegui-IP2Country.o amulegui-ClientCredits.o amulegui-ECSpecialMuleTags.o amulegui-KnownFile.o amulegui-GapList.o amulegui-GetTickCount.o amulegui-GuiEvents.o amulegui-Logger.o amulegui-PartFile.o amulegui-Preferences.o amulegui-Proxy.o amulegui-Server.o amulegui-Statistics.o amulegui-StatTree.o amulegui-SHAHashSet.o amulegui-TerminationProcess.o amulegui-TerminationProcessAmuleweb.o amulegui-UserEvents.o amulegui-OtherFunctions.o amulegui-NetworkFunctions.o amulegui-HTTPDownload.o -L. -lmuleappgui  -L/Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib   -L/opt/local/lib -framework QuickTime -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL  /Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib/libwx_osx_cocoau_adv-2.9.a /Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib/libwx_osx_cocoau_core-2.9.a /Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib/libwx_baseu_net-2.9.a /Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib/libwx_baseu-2.9.a -framework WebKit -lwxregexu-2.9 -lwxtiff-2.9 -lwxjpeg-2.9 -lwxpng-2.9 -lz -lpthread -liconv  -L/opt/local/lib -lGeoIP -L. -lmuleappcommon -Llibs/common -Llibs/ec/cpp -lmulecommon -lec   -lz  -L/opt/local/lib -lcryptopp -L/Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib   -L/opt/local/lib -framework QuickTime -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL  /Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib/libwx_baseu_net-2.9.a /Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib/libwx_baseu-2.9.a -lwxregexu-2.9 -lwxtiff-2.9 -lwxjpeg-2.9 -lwxpng-2.9 -lz -lpthread -liconv   
ld: warning: in /System/Library/Frameworks//QuickTime.framework/QuickTime, missing required architecture x86_64 in file
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -DUSE_WX_EXTENSIONS -I/Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/mirko/Desktop/TEMP/wxWidgets_r61983/include -D_FILE_OFFSET_BITS=64 -D__WXOSX_COCOA__ -DwxUSE_GUI=0 -I/opt/local/include/upnp   -DENABLE_UPNP=1 -D_THREAD_SAFE   -I./libs -Ilibs -I./include -I/opt/local/include -D__WEAK_CRYPTO__ -DAMULE_DAEMON  -I/opt/local/include -W -Wall -Wshadow -Wundef -O2  -I/Users/mirko/Desktop/TEMP/wxWidgets_r61983/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/mirko/Desktop/TEMP/wxWidgets_r61983/include -D_FILE_OFFSET_BITS=64 -D__WXOSX_COCOA__  -MT amuled-amuled.o -MD -MP -MF ".deps/amuled-amuled.Tpo" -c -o amuled-amuled.o `test -f 'amuled.cpp' || echo './'`amuled.cpp; \
then mv -f ".deps/amuled-amuled.Tpo" ".deps/amuled-amuled.Po"; else rm -f ".deps/amuled-amuled.Tpo"; exit 1; fi
In file included from amuled.cpp:26:
amule.h:461: error: ISO C++ forbids declaration of ‘wxStandardPathsBase’ with no type
amule.h:461: error: ‘wxStandardPathsBase’ declared as a ‘virtual’ field
amule.h:461: error: expected ‘;’ before ‘&’ token
amuled.cpp:455: error: no ‘wxStandardPathsBase& CDaemonAppTraits::GetStandardPaths()’ member function declared in class ‘CDaemonAppTraits’
make[3]: *** [amuled-amuled.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #88 on: September 21, 2009, 02:16:19 PM »

Just to be sure: you have made a change like this:
Code: [Select]
-#ifdef __WXMAC__
+#if defined(__WXMAC__) && !wxCHECK_VERSION(2, 9, 0)
(most importantly, you have changed "#ifdef" to "#if defined", right?)

If yes, then I'm lost.  :-\
Logged
concordia cum veritate

mirko.g

  • Global Moderator
  • Full Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 188
  • Grattatio pallorum omnia mala repellent!
    • Personal WebSite
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #89 on: September 21, 2009, 02:36:27 PM »

Just to be sure: you have made a change like this:
Code: [Select]
-#ifdef __WXMAC__
+#if defined(__WXMAC__) && !wxCHECK_VERSION(2, 9, 0)
(most importantly, you have changed "#ifdef" to "#if defined", right?)
If yes, then I'm lost.  :-\

This is exactly what I did... :-(
Logged
Pages: 1 ... 4 5 [6] 7