aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 2 3 [4] 5 6 7

Author Topic: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)  (Read 68666 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...
« Reply #45 on: September 16, 2009, 02:23:18 PM »

Now - how did you solve the libiconv problem? Did it just vanish with the new wx SVN? (Or with the way you built it...)

I think it depends on the way I built wxWidgets:
./configure --enable-unicode --disable-shared --disable-debug --disable-debug_gdb --with-osx_cocoa --with-macosx-version-min=10.6 --with-libiconv-prefix=/opt/local

I suppose libiconv prefix is needed on Snow Leopard since there is a libiconv included into the core system now.
« Last Edit: September 16, 2009, 02:29:56 PM by mirko.g »
Logged

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...
« Reply #46 on: September 16, 2009, 02:29:05 PM »

Either solve that, or recompile aMule without uPnP.

Uhm... I don't understand that error:
Code: [Select]
$ ls -la /opt/local/lib/libupnp*
-rwxr-xr-x  2 root  admin  153596  2 Set 16:53 /opt/local/lib/libupnp.3.0.5.dylib
lrwxr-xr-x  1 root  admin      19  2 Set 16:53 /opt/local/lib/libupnp.3.dylib -> libupnp.3.0.5.dylib
-rw-r--r--  2 root  admin  234136  2 Set 16:53 /opt/local/lib/libupnp.a
lrwxr-xr-x  1 root  admin      19  2 Set 16:53 /opt/local/lib/libupnp.dylib -> libupnp.3.0.5.dylib
-rwxr-xr-x  2 root  admin     879  2 Set 16:53 /opt/local/lib/libupnp.la

$ file /opt/local/lib/libupnp.3.0.5.dylib
/opt/local/lib/libupnp.3.0.5.dylib: Mach-O 64-bit dynamically linked shared library x86_64
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule, wxWidgets 2.9+ and Snow Leopard...
« Reply #47 on: September 16, 2009, 02:34:51 PM »

Well, it's trying to load
Code: [Select]
/Users/mirko/Desktop/TEMP/aMule-SVN-r9803/aMule.app/Contents/MacOS/../Frameworks/libupnp.3.dyliband not the file you examined. And don't ask me how to set up search paths for dynamic libraries on Mac. You are the Mac guy.  ;)
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...
« Reply #48 on: September 16, 2009, 03:54:30 PM »

I tried to add --with-libupnp-prefix=/opt/local/ but that issue is still there. So I disabled UPnP support (--disable-upnp).
I got the first aMule warning box ("It seems this is the first time you launch aMule..." or something similar), but it suddenly crashes ofter this alert...

The log is attached....
« Last Edit: September 16, 2009, 03:57:04 PM by mirko.g »
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...
« Reply #49 on: September 16, 2009, 03:57:13 PM »

The log is attached....
Best would be a gdb backtrace.
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...
« Reply #50 on: September 16, 2009, 03:59:57 PM »

Best would be a gdb backtrace.

Ok, let me build aMule with debug enabled...
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...
« Reply #51 on: September 16, 2009, 04:02:22 PM »

I tried to add --with-libupnp-prefix=/opt/local/ but that issue is still there. So I disabled UPnP support (--disable-upnp).

Either remove libupnp.3.dylib, libixml.2.dylib and libthreadutil.2.dylib from aMule.app/Contents/Frameworks or copy there the ones from your system.
« Last Edit: September 16, 2009, 04:50:51 PM by GonoszTopi »
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...
« Reply #52 on: September 16, 2009, 04:08:18 PM »

but it suddenly crashes ofter this alert...
Comment out line 219 of amuleDlg.cpp
Code: [Select]
// SetIcon(wxICON(aMule));and retry. (And yeah, building with debug options is always a good idea for highly unstable software.  ;) )

All this is a very normal development process in case you wonder, just dragged out a little due to the communication overhead.  :)
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...
« Reply #53 on: September 16, 2009, 06:17:30 PM »

This is my awesome backtrace!!!  :P
Hope this is useful... tomorrow I'll try again... :-)

@Stu I'm learning... so I'm just interested in everything you can teach!!! :-)
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: aMule, wxWidgets 2.9+ and Snow Leopard...
« Reply #54 on: September 16, 2009, 07:09:53 PM »

Great!

However - just
Comment out line 219 of amuleDlg.cpp
Code: [Select]
// SetIcon(wxICON(aMule));and retry.
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...
« Reply #55 on: September 16, 2009, 11:55:26 PM »

I started from scratch. I successfully built wxWidget r61946 and tried to build the brand new amule r9807 with the following modifications:
  • listctrl.cpp provided by Stu
  • amule.cpp provided by Stu
  • configure file with "osx_cocoa" instead of "cocoa"
  • modified amuleDlg.cpp

Maybe I missed something else, but even if I used the same configure flags, it failed...  ???
The last point is the only one which wasn't applied in the last successfully built aMule... Could it depend on this?
Code: [Select]
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
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH -DUSE_WX_EXTENSIONS -I/opt/local/include/upnp   -DENABLE_UPNP=1 -D_THREAD_SAFE   -I/Users/mirko/Desktop/aMule-dev/wxWidgets_r61946/lib/wx/include/osx_cocoa-unicode-static-2.9 -I/Users/mirko/Desktop/aMule-dev/wxWidgets_r61946/include -D_FILE_OFFSET_BITS=64 -D__WXOSX_COCOA__  -I./libs -Ilibs -I./include -I/opt/local//include -D__WEAK_CRYPTO__ -I/opt/local/include -W -Wall -Wshadow -Wundef    -MT amule-ECSpecialMuleTags.o -MD -MP -MF ".deps/amule-ECSpecialMuleTags.Tpo" -c -o amule-ECSpecialMuleTags.o `test -f 'ECSpecialMuleTags.cpp' || echo './'`ECSpecialMuleTags.cpp; \
then mv -f ".deps/amule-ECSpecialMuleTags.Tpo" ".deps/amule-ECSpecialMuleTags.Po"; else rm -f ".deps/amule-ECSpecialMuleTags.Tpo"; exit 1; fi
ECSpecialMuleTags.cpp: In constructor ‘CEC_Prefs_Packet::CEC_Prefs_Packet(uint32, EC_DETAIL_LEVEL, EC_DETAIL_LEVEL)’:
ECSpecialMuleTags.cpp:287: error: call of overloaded ‘CECTag(ECTagNames, size_t&)’ is ambiguous
./libs/ec/cpp/ECTag.h:114: note: candidates are: CECTag::CECTag(ec_tagname_t, const char*) <near match>
./libs/ec/cpp/ECTag.h:113: note:                 CECTag::CECTag(ec_tagname_t, const wxChar*) <near match>
./libs/ec/cpp/ECTag.h:112: note:                 CECTag::CECTag(ec_tagname_t, const wxString&)
./libs/ec/cpp/ECTag.h:108: note:                 CECTag::CECTag(ec_tagname_t, const std::string&) <near match>
./libs/ec/cpp/ECTag.h:107: note:                 CECTag::CECTag(ec_tagname_t, double)
./libs/ec/cpp/ECTag.h:106: note:                 CECTag::CECTag(ec_tagname_t, uint64_t)
./libs/ec/cpp/ECTag.h:105: note:                 CECTag::CECTag(ec_tagname_t, uint32_t)
./libs/ec/cpp/ECTag.h:104: note:                 CECTag::CECTag(ec_tagname_t, uint16_t)
./libs/ec/cpp/ECTag.h:103: note:                 CECTag::CECTag(ec_tagname_t, uint8_t)
./libs/ec/cpp/ECTag.h:102: note:                 CECTag::CECTag(ec_tagname_t, bool)
make[3]: *** [amule-ECSpecialMuleTags.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
« Last Edit: September 17, 2009, 06:27:29 AM by mirko.g »
Logged

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...
« Reply #56 on: September 17, 2009, 09:44:10 AM »

Ladies and Gentlemen - drumroll - we got it!

At 9:30 a.m. (GMT +2) aMule r9803 was born, about 26.6 MB sized, and it is 64 bit!



Parents (me and wxWidgets r61942) are proud to announce the glad tidings...

Following the details...

aMule configuration (conflog attached):
Code: [Select]
./configure --disable-debug --with-wxdir=../wxWidgets_r61942/ --with-crypto-prefix=/opt/local/ --with-gdlib-config=/opt/local/bin/gdlib-config --with-libiconv-prefix=/opt/local --with-toolkit=osx_cocoa --disable-upnp
Now it's time to understand how to get UPnP working again...
« Last Edit: September 17, 2009, 09:53:36 AM by mirko.g »
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: aMule, wxWidgets 2.9+ and Snow Leopard... (we got it!)
« Reply #57 on: September 17, 2009, 09:54:59 AM »

Wow, nice. :)

Are those all necessary changes to the code or did you change more?
Quote
  • listctrl.cpp provided by Stu
  • amule.cpp provided by Stu
  • configure file with "osx_cocoa" instead of "cocoa"
  • modified amuleDlg.cpp
Logged

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 #58 on: September 17, 2009, 10:19:17 AM »

Wow, nice. :)
Are those all necessary changes to the code or did you change more?

No I didn't change anything else... but we should check the modified files provided by Stu against wx 2.8... Unfortunately I haven't any Mac OS X 10.5 machine at now.
And I suppose we could use osx_cocoa together with and not instead of cocoa: the former depends on --with-osx_cocoa option, the latter on --with-cocoa.
Logged

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 #59 on: September 17, 2009, 12:33:38 PM »

I would like to check all the previously working feature and reach an optimized configuration. I will start from wxWidgets and I have some questions:
  • Do you think 2.8 compatibility is needed to have aMule working with 2.9+?
  • Does aMule use the wxWidgets embedded web browser? Starting from 2.9 you are allowed to use WebKit...
  • Since I saw it somewhere... Does aMule need OpenGL support?

thanks!  ;)
Logged
Pages: 1 2 3 [4] 5 6 7