aMule Forum

English => Compilation problems => Topic started by: gtoso on May 15, 2009, 01:07:15 PM

Title: aMule-dev requires wxWidgets 2.6 compatibility?
Post by: gtoso on May 15, 2009, 01:07:15 PM
Hi,
I tried to compile r9602 on OSX using wxMac 2.8.10 without 2.6 compatibility (2.2.4 compiles fine) and I got:

Code: [Select]
g++ -DHAVE_CONFIG_H -I. -I. -I..  -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/Users/sadmin/mulo/wxMac-2.8.10/osx-build/lib/wx/include/mac-unicode-release-static-2.8 -I/Users/sadmin/mulo/wxMac-2.8.10/include -I/Users/sadmin/mulo/wxMac-2.8.10/contrib/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ -DwxUSE_GUI=0 -I./libs -I./include -I/opt/local/include -D__WEAK_CRYPTO__ -I/opt/local/include/upnp   -DENABLE_UPNP=1 -I/opt/local/include -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -O2 -mmacosx-version-min=10.4 -c -o libmuleappcommon_a-DataToText.o `test -f 'DataToText.cpp' || echo './'`DataToText.cpp
muuli_wdr.cpp: In function ‘wxSizer* downloadDlg(wxWindow*, bool, bool)’:
muuli_wdr.cpp:980: error: ‘wxGA_PROGRESSBAR’ was not declared in this scope
muuli_wdr.cpp: In function ‘wxSizer* downloadDlg(wxWindow*, bool, bool)’:
muuli_wdr.cpp:980: error: ‘wxGA_PROGRESSBAR’ was not declared in this scope
g++ -DHAVE_CONFIG_H -I. -I. -I..  -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/Users/sadmin/mulo/wxMac-2.8.10/osx-build/lib/wx/include/mac-unicode-release-static-2.8 -I/Users/sadmin/mulo/wxMac-2.8.10/include -I/Users/sadmin/mulo/wxMac-2.8.10/contrib/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ -DwxUSE_GUI=0 -I./libs -I./include -I/opt/local/include -D__WEAK_CRYPTO__ -I/opt/local/include/upnp   -DENABLE_UPNP=1 -I/opt/local/include -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -O2 -mmacosx-version-min=10.4 -c -o libmuleappcommon_a-ED2KLink.o `test -f 'ED2KLink.cpp' || echo './'`ED2KLink.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I..  -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/Users/sadmin/mulo/wxMac-2.8.10/osx-build/lib/wx/include/mac-unicode-release-static-2.8 -I/Users/sadmin/mulo/wxMac-2.8.10/include -I/Users/sadmin/mulo/wxMac-2.8.10/contrib/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ -DwxUSE_GUI=0 -I./libs -I./include -I/opt/local/include -D__WEAK_CRYPTO__ -I/opt/local/include/upnp   -DENABLE_UPNP=1 -I/opt/local/include -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -O2 -mmacosx-version-min=10.4 -c -o libmuleappcommon_a-MagnetURI.o `test -f 'MagnetURI.cpp' || echo './'`MagnetURI.cpp
lipo: can't figure out the architecture type of: /var/folders/VK/VKSPKttnEJ8Qkf8h5ZmjaU+++TI/-Tmp-//ccsH4Vvb.out
make[3]: *** [libmuleappgui_a-muuli_wdr.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Then I see this (http://lists.wxwidgets.org/pipermail/wx-dev/2007-March/084118.html).
I'll retry with 2.6 compat.

Title: Re: aMule-dev requires wxWidgets 2.6 compatibility?
Post by: gtoso on May 15, 2009, 10:26:22 PM
I confirm: using wxMac 2.8.10 compiled without --disable-compat26, r9602 compiles fine.

Title: Re: aMule-dev requires wxWidgets 2.6 compatibility?
Post by: Stu Redman on May 15, 2009, 11:16:26 PM
Then I see this (http://lists.wxwidgets.org/pipermail/wx-dev/2007-March/084118.html).
Yeah, wxDesigner is a great software.  ::)
It's code was also totally broken with wx 2.9, and they didn't notice until I reported it.  :P

2.2.x has a little
Code: [Select]
#ifndef wxGA_PROGRESSBAR
#define wxGA_PROGRESSBAR 0
#endif
that works around the bug. I'll forward-port it to trunk as soon (or as late...) as the file gets available for committing again.

If that's a problem for you I can also add the #define to any of the headers muuli includes, though it doesn't really belong there.
Title: Re: aMule-dev requires wxWidgets 2.6 compatibility?
Post by: gtoso on May 17, 2009, 02:29:25 AM

2.2.x has a little
Code: [Select]
#ifndef wxGA_PROGRESSBAR
#define wxGA_PROGRESSBAR 0
#endif
that works around the bug. I'll forward-port it to trunk as soon (or as late...) as the file gets available for committing again.

Thanks, no problem.
In the meantime I'll manually add this to muuli_wdr.cpp so I haven't to keep 2 different builds of wxMac.
Or I'll use 2.6 compatibility to compile both SVN and 2.2.x.

Title: Re: aMule-dev requires wxWidgets 2.6 compatibility?
Post by: Kry on May 17, 2009, 03:26:40 AM
Fuck 2.6 compatibility. Just add the flag.