aMule Forum

English => Multiplatform => Mac OSX => Topic started by: mirko.g on April 10, 2009, 08:48:55 AM

Title: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: mirko.g on April 10, 2009, 08:48:55 AM
I will update this first post to allow everyone to get the last build without reading all thread! ;)

LAST UPDATE: May, 4th 2009

Last stable build
-- Please use gtoso's build 2.5! --

FEATURE:

ISSUES:
...
Title: Re: aMule 2.2.4 released
Post by: xja on April 10, 2009, 12:27:08 PM
I've downloaded mirko's version, unfortunately it crashes upon start on my white MacBook (1,1) with 2 GHz core duo, 1GB of memory and Mac OS X 10.5.6.
Here's the crash log

Process:         amule [411]
Path:            /Applications/aMule.app/Contents/MacOS/amule
Identifier:      org.amule.aMule
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  launchd [84]

Date/Time:       2009-04-10 12:23:23.099 +0200
OS Version:      Mac OS X 10.5.6 (9G55)
Report Version:  6

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0

Dyld Error Message:
  Library not loaded: /opt/local/lib/libGeoIP.1.dylib
  Referenced from: /Applications/aMule.app/Contents/MacOS/amule
  Reason: image not found

It  seems not to find something.

Bye
Title: Re: aMule 2.2.4 released
Post by: mirko.g on April 10, 2009, 12:50:13 PM
  Library not loaded: /opt/local/lib/libGeoIP.1.dylib
  Referenced from: /Applications/aMule.app/Contents/MacOS/amule
  Reason: image not found

Yep... it seems to be the same error I got with previous SVNs.
I get an error while compiling libgeoip with "+universal" option using macports too.

And it seems that libgeoip is compiled as static: if you install libgeoip through macports the error should not appear anymore...

I'll take care of this issue...

Thanks for your input.
Title: Re: aMule 2.2.4 released
Post by: istreen on April 10, 2009, 04:25:39 PM
hi,

thx for job, but where can i download a compiled osx ?

I don't have a software xtools to commpile last version.

A somebody have comiled for mac intel ?

It's possible to share this job ?

Thx for all
Title: Re: aMule 2.2.4 released
Post by: mirko.g on April 10, 2009, 05:23:55 PM
Ok this is a new build of aMule 2.2.4... This is not Universal binary and doesn't use static GeoIP.
It should work without libgeoip.

aMule 2.2.4 - Intel - noGeoIP: ---

Please try it!
Title: Re: I've just compiled a Universal Binary version...
Post by: xja on April 10, 2009, 08:02:54 PM
Ok, Mirko, it works!
It lacks skins (wich were available in Toso's 2.2.3 build) which, tough, is no big deal.
I will reply if something goes wrong.

Thanks, bye!
Title: Re: aMule 2.2.4 released
Post by: mirko.g on April 10, 2009, 08:27:45 PM
thx for job, but where can i download a compiled osx ?

This is exactly what you get clicking on that link! :-)
Title: Re: I've just compiled a Universal Binary version...
Post by: mirko.g on April 10, 2009, 08:31:22 PM
Ok, Mirko, it works!
It lacks skins (wich were available in Toso's 2.2.3 build) which, tough, is no big deal.
I will reply if something goes wrong.

Ok, I'll take care of skins too. Unfortunately the documentation is poor and outdated...

P.S.: The libgeoip issue is related to Mac OS version of ld. Now I'd like to figure out how to solve without strange workaround...
Title: Re: I've just compiled a Universal Binary version...
Post by: Festor on April 10, 2009, 09:02:33 PM
Ok, I'll take care of skins too. Unfortunately the documentation is poor and outdated...

Then help us to improve it: http://www.amule.org/wiki/index.php/HowTo_compile_on_Mac
Title: Re: I've just compiled a Universal Binary version...
Post by: mirko.g on April 11, 2009, 01:05:44 AM
Then help us to improve it: http://www.amule.org/wiki/index.php/HowTo_compile_on_Mac

I updated the page...  ::)
What about skin? How does they work? Where should they be copied before compiling?

Thanks
Title: Re: I've just compiled a Universal Binary version...
Post by: wuischke on April 11, 2009, 09:22:44 AM
I documented this when I implemented the current skin support, I hope its not outdated:
Quote from: http://www.amule.org/wiki/index.php/Skins
Mac:
User: ~/Library/Application Support/aMule/skins
System: aMule.app/Contents/SharedSupport/skins/
Title: Re: I've just compiled a Universal Binary version...
Post by: mirko.g on April 11, 2009, 05:24:07 PM
Ok, I'm sorry.
I did not want to offend anyone... I know it's difficult to take care of all tasks this project needs.
I do really want to contribute and hope the upgrade at wiki page  (http://www.amule.org/wiki/index.php/HowTo_compile_on_Mac)will be appreciated.

I didn't read anything about a specific support to skin when compiling aMule, and I tried and put skin in zip format into that folders, of course.
But skins are not listed in the preference panel. So what?

Now I'll take a look at gtoso mac_packager... :-)

When I'll come out of this issue I'll update the skin wiki page (Mac-related section) too... Knowledge sharing is the base of contributive model.

Thank you for your support...  ;)
Title: Re: I've just compiled a Universal Binary version...
Post by: wuischke on April 11, 2009, 08:29:56 PM
Please imagine a winking smiley after my last message, no offense at all.
Title: Re: I've just compiled a Universal Binary version...
Post by: mirko.g on April 13, 2009, 11:49:30 PM
Ok, I managed to compile an Universal Binary aMule build with skin support. Now I'm looking for a workaround for the GeoIP issue...
Hope to release the build tomorrow.

Mirko
Title: Re: I've just compiled a Universal Binary version...
Post by: xja on April 14, 2009, 04:56:24 PM
Hi there,
aMule in the past used to take a while to shut down, but in 2.2.4 it always hangs on quit, there's the hang log:

Date/Time:      2009-04-14 00:00:18 +0200
OS Version:     10.5.6 (Build 9G55)
Architecture:   i386
Report Version: 4

Command:        amule
Path:           /Applications/aMule.app/Contents/MacOS/amule
Version:        2.2.4 (2.2.4)
Parent:         launchd [95]

PID:            260
Event:          hang
Time:           14.29s
Steps:          52


Process:        amule [260]
Path:           /Applications/aMule.app/Contents/MacOS/amule

  ADDRESS         BINARY
  00001000        /Applications/aMule.app/Contents/MacOS/amule
  014d1000        /Applications/aMule.app/Contents/MacOS/../Frameworks/libupnp.3.dylib
  014f1000        /Applications/aMule.app/Contents/MacOS/../Frameworks/libthreadutil.2.dylib
  014f7000        /Applications/aMule.app/Contents/MacOS/../Frameworks/libixml.2.dylib
  0151e000        /System/Library/TextEncodings/Unicode Encodings.bundle/Contents/MacOS/Unicode Encodings
  015a7000        /Library/InputManagers/Ecamm/Ecamm Plugin Loader.bundle/Contents/MacOS/Ecamm Plugin Loader
  14fa2000        /usr/lib/libmx.A.dylib
  14fc4000        /Library/QuickTime/LiveType.component/Contents/MacOS/LiveType
  14ff4000        /System/Library/CoreServices/CommonCocoaPanels.bundle/Contents/MacOS/CommonCocoaPanels
  15100000        /System/Library/PrivateFrameworks/LiveType.framework/Versions/A/LiveType
  151a7000        /Library/QuickTime/FCP Uncompressed 422.component/Contents/MacOS/FCP Uncompressed 422
  152d0000        /System/Library/CoreServices/Encodings/libTraditionalChineseConverter.dylib
  15368000        /System/Library/CoreServices/Encodings/libSimplifiedChineseConverter.dylib
  15422000        /Library/QuickTime/DivX Decoder.component/Contents/MacOS/DivX Decoder
  154a2000        /System/Library/QuickTime/QuickTimeFireWireDV.component/Contents/MacOS/QuickTimeFireWireDV
  154ea000        /Library/QuickTime/AppleMPEG2Codec.component/Contents/MacOS/AppleMPEG2Codec
  15ba8000        /Library/QuickTime/Perian.component/Contents/MacOS/Perian
  160d8000        /Library/QuickTime/Flip4Mac WMV Import.component/Contents/MacOS/Flip4Mac WMV Import
  16353000        /Library/QuickTime/Flip4Mac WMV Advanced.component/Contents/MacOS/Flip4Mac WMV Advanced
  1655a000        /System/Library/QuickTime/AppleProResDecoder.component/Contents/MacOS/AppleProResDecoder
  165af000        /System/Library/QuickTime/AppleVAH264HW.component/Contents/MacOS/AppleVAH264HW
  166cf000        /Library/QuickTime/AppleIntermediateCodec.component/Contents/MacOS/AppleIntermediateCodec
  166ee000        /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA
  16743000        /System/Library/QuickTime/ApplePixletVideo.component/Contents/MacOS/ApplePixletVideo
  168e7000        /System/Library/Components/DictionaryService.component/Contents/MacOS/DictionaryService
  16a00000        /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
  ba900000        /System/Library/CoreServices/Encodings/libJapaneseConverter.dylib

  Thread id:      31b4208
  User stack:
    52 start + 54 (in amule) [0x2746]
      52 _main + 24 (in amule) [0x1bf7b8]
        52 __Z7wxEntryRiPPw + 118 (in amule) [0x5858e6]
          52 __ZN9CamuleApp6OnExitEv + 479 (in amule) [0x33df]
            52 __ZN14CDownloadQueueD0Ev + 174 (in amule) [0x7658e]
              52 _close$UNIX2003 + 10 (in libSystem.B.dylib) [0x9374c792]
  Kernel stack:
    52 _unix_syscall + 572 [0x3df460]
      52 _close_nocancel + 115 [0x368f8a]
        52 _fdrelse + 336 [0x368ece]
          52 _closef_locked + 343 [0x368add]
            52 _vn_lock + 174 [0x1ec64d]
              52 _vnode_put + 31 [0x1db9af]
                52 _vnode_put_locked + 106 [0x1db93f]
                  52 _VNOP_INACTIVE + 98 [0x1f5e32]
                    52 _CompareExtendedCatalogKeys + 24877 [0x31fe85]
                      52 _cluster_write + 103 [0x1d348a]
                        52 _cluster_write_ext + 264 [0x1d264f]
                          41 _cluster_read + 3750 [0x1d2436]
                            41 _cluster_pageout + 6811 [0x1d03c6]
                              41 _cluster_copy_upl_data + 3784 [0x1cdb25]
                                41 _cluster_copy_upl_data + 2739 [0x1cd710]
                                  41 _vnode_waitforwrites + 167 [0x1db2b6]
                                    41 _msleep + 157 [0x381f85]
                                      41 _uiomove + 653 [0x381bd4]
                                        41 _lck_mtx_sleep + 87 [0x130da9]
                                          41 _thread_block + 33 [0x136e61]
                                            41 _thread_continue + 1181 [0x136bf4]
                          10 _cluster_read + 3540 [0x1d2364]
                            10 _cluster_pageout + 6811 [0x1d03c6]
                              10 _cluster_copy_upl_data + 3784 [0x1cdb25]
                                10 _cluster_copy_upl_data + 2739 [0x1cd710]
                                  10 _vnode_waitforwrites + 167 [0x1db2b6]
                                    10 _msleep + 157 [0x381f85]
                                      10 _uiomove + 653 [0x381bd4]
                                        10 _lck_mtx_sleep + 87 [0x130da9]
                                          10 _thread_block + 33 [0x136e61]
                                            10 _thread_continue + 1181 [0x136bf4]
                          1 _cluster_read + 2861 [0x1d20bd]
                            1 _ubc_upl_commit_range + 109 [0x39a386]
                              1 _upl_commit_range + 2113 [0x17e425]
                                1 _lck_rw_done_gen + 160 [0x19ef84]
                                  1 _lck_rw_free + 122 [0x19edb3]
                                    1 _ml_set_interrupts_enabled + 41 [0x1a3383]
                                      1 _lo_alltraps + 509 [0x1a038d]
                                        1 _kernel_trap + 263 [0x1a97c5]
                                          1 _ast_taken + 185 [0x12951e]
                                            1 _thread_continue + 1181 [0x136bf4]

  Thread id:      3c22b58
  User stack:
    52 _thread_start + 34 (in libSystem.B.dylib) [0x93771f52]
      52 ___select + 10 (in libSystem.B.dylib) [0x937906f2]

  Thread id:      36b3790
  User stack:
    52 _semaphore_wait_signal_trap + 10 (in libSystem.B.dylib) [0x9374120e]

  Thread id:      4a107d8
  User stack:
    52 _thread_start + 34 (in libSystem.B.dylib) [0x93771f52]
      52 __pthread_start + 321 (in libSystem.B.dylib) [0x93772095]
        52 _WorkerThread + 634 (in libthreadutil.2.dylib) [0x14f3148]
          52 _semaphore_timedwait_signal_trap + 10 (in libSystem.B.dylib) [0x93741226]

  Thread id:      3c24998
  User stack:
    52 _thread_start + 34 (in libSystem.B.dylib) [0x93771f52]
      52 __pthread_start + 321 (in libSystem.B.dylib) [0x93772095]
        52 _WorkerThread + 634 (in libthreadutil.2.dylib) [0x14f3148]
          52 _semaphore_timedwait_signal_trap + 10 (in libSystem.B.dylib) [0x93741226]

  Thread id:      4a10410
  User stack:
    52 _thread_start + 34 (in libSystem.B.dylib) [0x93771f52]
      52 __pthread_start + 321 (in libSystem.B.dylib) [0x93772095]
        52 _WorkerThread + 634 (in libthreadutil.2.dylib) [0x14f3148]
          52 _semaphore_timedwait_signal_trap + 10 (in libSystem.B.dylib) [0x93741226]

  Thread id:      4a10048
  User stack:
    52 _select$DARWIN_EXTSN$NOCANCEL + 10 (in libSystem.B.dylib) [0x9377830a]

  Thread id:      4a0fc80
  User stack:
    52 _thread_start + 34 (in libSystem.B.dylib) [0x93771f52]
      52 __pthread_start + 321 (in libSystem.B.dylib) [0x93772095]
        52 _WorkerThread + 634 (in libthreadutil.2.dylib) [0x14f3148]
          52 _semaphore_timedwait_signal_trap + 10 (in libSystem.B.dylib) [0x93741226]

  Thread id:      4a0f128
  User stack:
    52 _thread_start + 34 (in libSystem.B.dylib) [0x93771f52]
      52 __pthread_start + 321 (in libSystem.B.dylib) [0x93772095]
        52 __Z11CMMConvTaskPv + 54 (in ColorSync) [0x965c6d8e]
          52 __Z20pthreadSemaphoreWaitP18t_pthreadSemaphore + 42 (in ColorSync) [0x965b445c]
            52 ___semwait_signal + 10 (in libSystem.B.dylib) [0x937483ae]

it continues with similar descriptions of all the other processes, which didn't hanged, I'll provide it if you want.

Bye.
Title: Re: I've just compiled a Universal Binary version...
Post by: mirko.g on April 14, 2009, 07:53:28 PM
Ok, the libGeoIP issue is solved... and it was damn easy: binutils is needed!

Please test this new build: --> link was broken! It will be back soon!

FEATURE:
- Intel version
- GeoIP support
- UPnP support
- Skin support
- AmuleGUI included

Now I'm working on universal binary version. I also opened a ticket at MacPorts trac to solve the error when building universal version of libgeoip.
If you confirm it works with static libgeoip I'll update the wiki page...

Thank you all
Title: Re: I've just compiled a Universal Binary version...
Post by: l3v3l on April 14, 2009, 08:35:26 PM
Ok, the libGeoIP issue is solved... and it was damn easy: binutils is needed!

Please test this new build: --> link was broken! It will be back soon!

FEATURE:
- Intel version
- GeoIP support
- UPnP support
- Skin support
- AmuleGUI included

Now I'm working on universal binary version. I also opened a ticket at MacPorts trac to solve the error when building universal version of libgeoip.
If you confirm it works with static libgeoip I'll update the wiki page...

Thank you all

Great mirko.g!! Thank you very much for investigating in this thread! I'm looking forward to test the new build as soon as it's ready.. Greets l3v3l
Title: Re: I've just compiled a Universal Binary version...
Post by: mirko.g on April 14, 2009, 10:03:02 PM
This should work: please refer to the first post!

FEATURE:
- Intel version
- Crypto++ 5.5.2
- GeoIP 1.4.5
- libUPnP 1.6.6
- Skin included
- AmuleGUI included

NOTE: AmuleGUI lacks its own icon but it works! ;-)

I'll be waiting for reviews! :-)
When I'm sure it's working correctly I'll produce the final build with all documents.

P.S.: This build seems not to hang at all... ;-)
Title: Re: aMule-2.2.4-i686: testing
Post by: l3v3l on April 14, 2009, 11:41:20 PM
Thanks mirko.g! After a bit of testing... no concerns so far!  8)

Only geoip does not work, there is a question mark showing up ("?") instead of the countryflag. I don't need it, so... no problem.

(Leo 10.5.6, Intel)

Greets, l3v3l


Edit: No hangs / crashs ; ed2k / kad / skin- & ipfilter-support works like it should.
Title: Re: aMule-2.2.4-i686: testing
Post by: mirko.g on April 14, 2009, 11:53:51 PM
Could you try and install this to have GeoIP working?
---

thanks
Title: Re: aMule-2.2.4-i686: testing
Post by: l3v3l on April 15, 2009, 12:03:05 AM
Could you try and install this to have GeoIP working?
http://www.lemiefrequenze.org/blog/wp-content/uploads/2009/04/libgeoip-145.zip

thanks

Success!!  :)
Title: Re: aMule-2.2.4-i686: testing
Post by: scalimani on April 15, 2009, 02:40:28 AM
Thank you Mirko!!!
Title: Re: aMule-2.2.4-i686: testing
Post by: l3v3l on April 15, 2009, 09:02:14 AM
  • aMule always hangs on quit [by xja (http://www.amule.org/amule/index.php?action=profile;u=13791)]: waiting for response.

No hangs for me! Your build (2.2.4)  seems to quit much faster than gtoso's (2.2.3).
Nice job!!  8)
Title: Re: aMule-2.2.4-i686: testing
Post by: mirko.g on April 15, 2009, 09:38:28 AM
Quote from: l3v3l
No hangs for me! Your build (2.2.4)  seems to quit much faster than gtoso's (2.2.3).
Nice job!!  8)

Thanks, but I take the view it mainly depends on our team! This version is far superior the previous...
And my work partly comes from that of gtoso!  :P
Title: Re: aMule-2.2.4-i686: testing
Post by: mirko.g on April 15, 2009, 11:23:49 AM
Now the one million dollar question:should I let the user decide to install libgeoip, in a parfect Mac style... or write down an installer script which controls if libgeoip is present before installing (and authomagically install it if needed)?  ::)
Title: Re: aMule-2.2.4-i686: testing
Post by: GonoszTopi on April 16, 2009, 09:09:24 AM
Or include it in the bundle, just in case?
Title: Re: aMule-2.2.4-i686: testing
Post by: mirko.g on April 16, 2009, 09:37:31 AM
Yes, my last build includes aMule.app, libgeozip-1.4.5.pkg and the Docs folder.
This should be enough...

I'm cooking the last build...  :D
Title: Re: aMule-2.2.4+libGeoIP-1.4.5-i686 (stable release)
Post by: kwin on April 16, 2009, 04:33:24 PM
Thank you very much for your efforts. Just a little remark on your last version. Although the amule.app contains the libGeopIP.1.dylib in the Frameworks Subfolder, the database with the location information seems to be missing.
If you would also add this database to the application folder, there would be no need to install geoIP separately.
This was also the way,  geoIP was deployed in 2.2.3. Then you could also remove libgeoip-1.4.5.pkg from the installation image and installing would just require to copy amule.app to the Applications folder.
Title: Re: aMule-2.2.4+libGeoIP-1.4.5-i686 (stable release)
Post by: kwin on April 16, 2009, 04:55:20 PM
Maybe you could even strip some more files from amule.app/Contents/Frameworks. 8 Files seem not to be loaded by the linker at start time: libfontconfig, libfreetype, libgd, libintl, libjpeg, libpng, libX11, and libXpm. I don't know what these libraries are for. Maybe the are loaded dynamically, but I noticed no error message or malfunction in amule after deleting those libraries.
Title: Re: aMule-2.2.4+libGeoIP-1.4.5-i686 (stable release)
Post by: mirko.g on April 16, 2009, 05:20:48 PM
Thank you very much for your efforts. Just a little remark on your last version. Although the amule.app contains the libGeopIP.1.dylib in the Frameworks Subfolder, the database with the location information seems to be missing.
If you would also add this database to the application folder, there would be no need to install geoIP separately.
This was also the way,  geoIP was deployed in 2.2.3. Then you could also remove libgeoip-1.4.5.pkg from the installation image and installing would just require to copy amule.app to the Applications folder.

Thank you! I've just updated the DMG... :-)
Title: Re: aMule-2.2.4+libGeoIP-1.4.5-i686 (stable release)
Post by: mirko.g on April 16, 2009, 06:11:57 PM
Maybe you could even strip some more files from amule.app/Contents/Frameworks. 8 Files seem not to be loaded by the linker at start time: libfontconfig, libfreetype, libgd, libintl, libjpeg, libpng, libX11, and libXpm. I don't know what these libraries are for. Maybe the are loaded dynamically, but I noticed no error message or malfunction in amule after deleting those libraries.

Yep it should dinamically load libgd, libpng and libjpeg at least... now I'm taking a look to the config options... the other libraries came as dependancies but were not invoked in ./config...
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (stable release, GeoIP included)
Post by: cplleet on April 17, 2009, 03:59:18 AM
nce work, really appreciate it
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (stable release, GeoIP included)
Post by: dannyboodmann on April 18, 2009, 11:15:33 AM
what about a universal binary version? even without GeoIP it would be great..
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (stable release, GeoIP included)
Post by: scalimani on April 18, 2009, 11:56:06 AM
Thank you again for your wonderful work! And I'll give you more work to do  ;) : aMuleGUI crashes when it's launched and console reports:

dyld: Library not loaded: /opt/local/lib/libGeoIP.1.dylib
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (stable release, GeoIP included)
Post by: jfreyba on April 20, 2009, 11:29:49 PM
It doesn't work for me. I get this messagge:
ClientCreditsList.cpp(378): Credits: Error while creating signature: OS_Rng: open /dev/urandom operation failed with error 24
Then Amule quits.

Thanks.
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (stable release, GeoIP included)
Post by: mirko.g on April 21, 2009, 11:03:58 AM
It doesn't work for me. I get this messagge:
ClientCreditsList.cpp(378): Credits: Error while creating signature: OS_Rng: open /dev/urandom operation failed with error 24

This error should be related to a setting of the OS which doesn't allow to open too many files in the same time.
How many files were you downloading?
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (stable release)
Post by: jfreyba on April 21, 2009, 12:19:10 PM
Just the very same number of files I was downloading with Amule 2.2.3 without a problem... I think this should be fixed.

Thanks. :)
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (stable release)
Post by: mirko.g on April 21, 2009, 12:34:29 PM
Just the very same number of files I was downloading with Amule 2.2.3 without a problem... I think this should be fixed.

Thanks. :)

Which OS are you using?
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (stable release)
Post by: jfreyba on April 21, 2009, 01:00:13 PM
I'm using MacOs X 10.5.6
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (stable release)
Post by: mirko.g on April 21, 2009, 02:39:40 PM
I'm using MacOs X 10.5.6

Could you try the following procedure?
Open a Terminal and type:
Code: [Select]
$ sudo sysctl -a | grep kern.max > /Users/$(whoami)/Desktop/sysctl.bak
$ sudo sysctl -w kern.maxfilesperproc=32768
$ sudo sysctl -w kern.maxfiles=131392
$ sudo sysctl -w kern.maxprocperuid=16384
$ sudo sysctl -w kern.maxproc=2048
Now restart aMule...

P.S.: Those code will change some system parameters, but the first line backup the existing values on your desktop...
Title: Where is the latest release?
Post by: germ on April 22, 2009, 07:18:10 AM
I tried the link on p. 2, but it is dead.....

Thanks.
Title: Re: Where is the latest release?
Post by: mirko.g on April 22, 2009, 08:22:17 AM
I tried the link on p. 2, but it is dead.....

Please refer to the first post... I'm updating it every time there is a new build or new infos... ;-)
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (stable release)
Post by: MidgetInaBikini on April 23, 2009, 06:53:51 PM
crashing after few seconds

Code: [Select]
Process:         amule [2874]
Path:            /Applications/aMule.app/Contents/MacOS/amule
Identifier:      org.amule.aMule
Version:         2.2.4 (2.2.4)
Code Type:       X86 (Native)
Parent Process:  launchd [90]

Date/Time:       2009-04-23 19:45:56.968 +0300
OS Version:      Mac OS X 10.5.6 (9G2030)
Report Version:  6

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  0

Thread 0 Crashed:
0   libSystem.B.dylib             0x9171ee42 __kill + 10
1   libSystem.B.dylib             0x9179123a raise + 26
2   libSystem.B.dylib             0x9179d679 abort + 73
3   org.amule.aMule               0x0029bd57 wxString::Last() const + 3927
4   org.amule.aMule               0x000077d8 wxThreadHelperThread::~wxThreadHelperThread() + 19544
5   org.amule.aMule               0x005878a3 wxHashTable::~wxHashTable() + 2499
6   org.amule.aMule               0x001bf238 __gnu_debug_def::vector<CUPnPArgumentValue, std::allocator<CUPnPArgumentValue> >::resize(unsigned long, CUPnPArgumentValue) + 808
7   org.amule.aMule               0x000021c6 0x1000 + 4550

Thread 1:
0   libSystem.B.dylib             0x916b11c6 mach_msg_trap + 10
1   libSystem.B.dylib             0x916b89bc mach_msg + 72
2   com.unsanity.ape               0x01db6c39 __ape_agent + 316
3   libSystem.B.dylib             0x916e2095 _pthread_start + 321
4   libSystem.B.dylib             0x916e1f52 thread_start + 34

Thread 2:
0   libSystem.B.dylib             0x917006f2 select$DARWIN_EXTSN + 10
1   libSystem.B.dylib             0x916e2095 _pthread_start + 321
2   libSystem.B.dylib             0x916e1f52 thread_start + 34

Thread 3:
0   libSystem.B.dylib             0x916b83ae __semwait_signal + 10
1   libSystem.B.dylib             0x916e2d0d pthread_cond_wait$UNIX2003 + 73
2   libthreadutil.2.dylib         0x0104bb5b TimerThreadWorker + 279
3   libthreadutil.2.dylib         0x0104b7aa WorkerThread + 1458
4   libSystem.B.dylib             0x916e2095 _pthread_start + 321
5   libSystem.B.dylib             0x916e1f52 thread_start + 34

Thread 4:
0   libSystem.B.dylib             0x916b83ae __semwait_signal + 10
1   libSystem.B.dylib             0x917089f0 pthread_cond_timedwait$UNIX2003 + 72
2   libthreadutil.2.dylib         0x0104b4ab WorkerThread + 691
3   libSystem.B.dylib             0x916e2095 _pthread_start + 321
4   libSystem.B.dylib             0x916e1f52 thread_start + 34

Thread 5:
0   libSystem.B.dylib             0x916b83ae __semwait_signal + 10
1   libSystem.B.dylib             0x917089f0 pthread_cond_timedwait$UNIX2003 + 72
2   libthreadutil.2.dylib         0x0104b4ab WorkerThread + 691
3   libSystem.B.dylib             0x916e2095 _pthread_start + 321
4   libSystem.B.dylib             0x916e1f52 thread_start + 34

Thread 6:
0   libSystem.B.dylib             0x916b83ae __semwait_signal + 10
1   libSystem.B.dylib             0x917089f0 pthread_cond_timedwait$UNIX2003 + 72
2   libthreadutil.2.dylib         0x0104b4ab WorkerThread + 691
3   libSystem.B.dylib             0x916e2095 _pthread_start + 321
4   libSystem.B.dylib             0x916e1f52 thread_start + 34

Thread 7:
0   libSystem.B.dylib             0x917006f2 select$DARWIN_EXTSN + 10
1   libthreadutil.2.dylib         0x0104b7aa WorkerThread + 1458
2   libSystem.B.dylib             0x916e2095 _pthread_start + 321
3   libSystem.B.dylib             0x916e1f52 thread_start + 34

Thread 8:
0   libSystem.B.dylib             0x916b83ae __semwait_signal + 10
1   libSystem.B.dylib             0x917089f0 pthread_cond_timedwait$UNIX2003 + 72
2   libthreadutil.2.dylib         0x0104b4ab WorkerThread + 691
3   libSystem.B.dylib             0x916e2095 _pthread_start + 321
4   libSystem.B.dylib             0x916e1f52 thread_start + 34

Thread 9:
0   libSystem.B.dylib             0x916b83ae __semwait_signal + 10
1   libSystem.B.dylib             0x916e2d0d pthread_cond_wait$UNIX2003 + 73
2   com.apple.ColorSync           0x94ae045c pthreadSemaphoreWait(t_pthreadSemaphore*) + 42
3   com.apple.ColorSync           0x94af2d8e CMMConvTask(void*) + 54
4   libSystem.B.dylib             0x916e2095 _pthread_start + 321
5   libSystem.B.dylib             0x916e1f52 thread_start + 34

Thread 10:
0   libSystem.B.dylib             0x916b12e6 mach_wait_until + 10
1   ...ple.CoreServices.CarbonCore 0x94547933 MPDelayUntil + 39
2   org.amule.aMule               0x005d47ef wxCFDictionary::PrintOutDictionary(wxString&, __CFDictionary const*) + 2975
3   org.amule.aMule               0x00130496 CHashingTask::~CHashingTask() + 5526
4   org.amule.aMule               0x005d5a2d wxCFDictionary::PrintOutDictionary(wxString&, __CFDictionary const*) + 7645
5   ...ple.CoreServices.CarbonCore 0x9452f0a3 PrivateMPEntryPoint + 56
6   libSystem.B.dylib             0x916e2095 _pthread_start + 321
7   libSystem.B.dylib             0x916e1f52 thread_start + 34

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x9179d639  ecx: 0xbffffa2c  edx: 0x9171ee42
  edi: 0xbffffad8  esi: 0x173ccee0  ebp: 0xbffffa48  esp: 0xbffffa2c
   ss: 0x0000001f  efl: 0x00000286  eip: 0x9171ee42   cs: 0x00000007
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x00033000



Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (stable release)
Post by: amaury@skynet.be on May 01, 2009, 01:39:35 AM
hello,

since it was my first time compiling something on a mac, it took me some time, but it definitely works for me if you follow these instructions: http://www.amule.org/wiki/index.php/HowTo_compile_on_Mac (latest version of this tutorial works !).

i now have a working amule.app version 2.2.4 on my intel mac mini with leopard 10.5.6 installed !  :)

amaury
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (stable release)
Post by: MidgetInaBikini on May 01, 2009, 03:56:55 PM
spoke too fast. even after working step by step by this guide, something is still wrong and it will not run on other system (on my MBP worked fine, not a the mini, or older MBP)

yep, after three days mac ports was down from here, I can finally use it. and I will build my version again soon. buy I hope there will be an official version with all the shiny new stuff.
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (stable release)
Post by: mirko.g on May 04, 2009, 07:59:09 AM
I'm working on a new build of aMule for Mac.
I'm experiencing troubles with aMuleGUI ("Not supported architecture" error).
aMule seems quite stable. But if you add more servers into "Settings > Server > Server Options > List" it becomes unstable and often crashes with this error:

Code: [Select]
Process:         amule [77464]
Path:            /Applications/aMule.app/Contents/MacOS/amule
Identifier:      org.amule.aMule
Version:         2.2.4 (2.2.4)
Code Type:       X86 (Native)
Parent Process:  launchd [145]

Date/Time:       2009-05-04 07:53:00.025 +0200
OS Version:      Mac OS X 10.5.6 (9G55)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000004310256c
Crashed Thread:  0

Thread 0 Crashed:
0   libSystem.B.dylib             0x9385fe42 __kill + 10
1   libSystem.B.dylib             0x938d223a raise + 26
2   libSystem.B.dylib             0x938de679 abort + 73
3   org.amule.aMule               0x005e03d6 wxMessageOutputLog::~wxMessageOutputLog() + 7286
4   libSystem.B.dylib             0x9385e2bb _sigtramp + 43
5   ???                           0xffffffff 0 + 4294967295
6   org.amule.aMule               0x0059ed61 wxStringStreamUnconvBuffers_wxImplementation_HashTable::GetBucketForNode(wxStringStreamUnconvBuffers_wxImplementation_HashTable*, wxStringStreamUnconvBuffers_wxImplementation_HashTable::Node*) + 5393
7   org.amule.aMule               0x005a64d2 wxFilterClassFactory::~wxFilterClassFactory() + 1618
8   org.amule.aMule               0x005e05f0 wxMessageOutputLog::~wxMessageOutputLog() + 7824
9   org.amule.aMule               0x002a06fc wxFFile::~wxFFile() + 8092
10  org.amule.aMule               0x0022d3a7 __gnu_debug_def::deque<LogEntry*, std::allocator<LogEntry*> >::~deque() + 1991
11  org.amule.aMule               0x0023d908 __gnu_debug_def::deque<LogEntry*, std::allocator<LogEntry*> >::~deque() + 68904
12  org.amule.aMule               0x000052c4 wxThreadHelperThread::~wxThreadHelperThread() + 10052
13  org.amule.aMule               0x005dd353 wxStandardPaths::~wxStandardPaths() + 1603
14  org.amule.aMule               0x005dd4cf wxStandardPaths::~wxStandardPaths() + 1983
15  org.amule.aMule               0x005dd89f wxStandardPaths::~wxStandardPaths() + 2959
16  org.amule.aMule               0x005dd92c wxStandardPaths::~wxStandardPaths() + 3100
17  org.amule.aMule               0x00550119 GSocketGUIFunctionsTableNull::~GSocketGUIFunctionsTableNull() + 1401
18  com.apple.CoreFoundation       0x969ec5f5 CFRunLoopRunSpecific + 3141
19  com.apple.CoreFoundation       0x969eccd8 CFRunLoopRunInMode + 88
20  com.apple.HIToolbox           0x96ae52c0 RunCurrentEventLoopInMode + 283
21  com.apple.HIToolbox           0x96ae50d9 ReceiveNextEventCommon + 374
22  com.apple.HIToolbox           0x96b43c6e _AcquireNextEvent + 58
23  com.apple.HIToolbox           0x96b9d891 _TrackMouseLocationOrAreaReturningEvent + 571
24  com.apple.HIToolbox           0x96b9d5e4 TrackMouseLocationWithOptions + 94
25  com.apple.HIToolbox           0x96b9d391 HIView::BasicTrackInternal(CGPoint const&, unsigned long, short, void (*)(OpaqueControlRef*, short), unsigned char, GlyphState const*, unsigned long*) + 613
26  com.apple.HIToolbox           0x96b9ceed HIView::TrackSelf(OpaqueEventRef*, short*) + 565
27  com.apple.HIToolbox           0x96c76064 HIBevelButton::TrackSelf(OpaqueEventRef*, short*) + 1062
28  com.apple.HIToolbox           0x96acb850 HIView::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 2614
29  com.apple.HIToolbox           0x96abd143 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
30  com.apple.HIToolbox           0x96abc57d SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
31  com.apple.HIToolbox           0x96abc3e2 SendEventToEventTargetWithOptions + 58
32  com.apple.HIToolbox           0x96b9ca90 SendControlDefTrack(HIView*, CGPoint const&, unsigned long*, void (*)(OpaqueControlRef*, short), OpaqueEventRef*, short*) + 310
33  com.apple.HIToolbox           0x96b9c8b4 HIView::ClickInternal(CGPoint const&, unsigned long, void (*)(OpaqueControlRef*, short), OpaqueEventRef*, bool) + 126
34  com.apple.HIToolbox           0x96b89116 HIView::ClickSelf(OpaqueEventRef*) + 370
35  com.apple.HIToolbox           0x96acb771 HIView::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 2391
36  com.apple.HIToolbox           0x96abd143 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
37  com.apple.HIToolbox           0x96abc57d SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
38  com.apple.HIToolbox           0x96ad8ed2 SendEventToEventTarget + 52
39  com.apple.HIToolbox           0x96b8672f HIView::Click(OpaqueEventRef*) + 329
40  com.apple.HIToolbox           0x96b86591 HandleClickAsHIView(OpaqueWindowPtr*, OpaqueEventRef*) + 151
41  com.apple.HIToolbox           0x96b85f21 HandleWindowClick(OpaqueWindowPtr*, Point, short, unsigned long, OpaqueEventRef*) + 505
42  com.apple.HIToolbox           0x96b85d13 HandleMouseEvent(OpaqueEventHandlerCallRef*, OpaqueEventRef*) + 791
43  com.apple.HIToolbox           0x96b4170a StandardWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 96
44  com.apple.HIToolbox           0x96abd143 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
45  com.apple.HIToolbox           0x96abc57d SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
46  com.apple.HIToolbox           0x96ad8ed2 SendEventToEventTarget + 52
47  com.apple.HIToolbox           0x96aeb0a8 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 1208
48  com.apple.HIToolbox           0x96abd4fc DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2134
49  com.apple.HIToolbox           0x96abc57d SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
50  com.apple.HIToolbox           0x96ad8ed2 SendEventToEventTarget + 52
51  org.amule.aMule               0x00428496 wxwxAccelListNode::~wxwxAccelListNode() + 2134
52  org.amule.aMule               0x0042856f wxwxAccelListNode::~wxwxAccelListNode() + 2351
53  org.amule.aMule               0x004424d3 wxDropSourceBase::~wxDropSourceBase() + 259
54  org.amule.aMule               0x004cf09f wxDirDialogBase::~wxDirDialogBase() + 351
55  org.amule.aMule               0x004acfe3 wxANIDecoder::Clone() const + 915
56  org.amule.aMule               0x0058785a wxHashTable::~wxHashTable() + 2426
57  org.amule.aMule               0x001bf238 __gnu_debug_def::vector<CUPnPArgumentValue, std::allocator<CUPnPArgumentValue> >::resize(unsigned long, CUPnPArgumentValue) + 808
58  org.amule.aMule               0x000021c6 0x1000 + 4550

Thread 1:
0   libSystem.B.dylib             0x938416f2 select$DARWIN_EXTSN + 10
1   libSystem.B.dylib             0x93823095 _pthread_start + 321
2   libSystem.B.dylib             0x93822f52 thread_start + 34

Thread 2:
0   libSystem.B.dylib             0x937f93ae __semwait_signal + 10
1   libSystem.B.dylib             0x93823d0d pthread_cond_wait$UNIX2003 + 73
2   libthreadutil.2.dylib         0x0104bb5b TimerThreadWorker + 279
3   libthreadutil.2.dylib         0x0104b7aa WorkerThread + 1458
4   libSystem.B.dylib             0x93823095 _pthread_start + 321
5   libSystem.B.dylib             0x93822f52 thread_start + 34

Thread 3:
0   libSystem.B.dylib             0x937f93ae __semwait_signal + 10
1   libSystem.B.dylib             0x938499f0 pthread_cond_timedwait$UNIX2003 + 72
2   libthreadutil.2.dylib         0x0104b4ab WorkerThread + 691
3   libSystem.B.dylib             0x93823095 _pthread_start + 321
4   libSystem.B.dylib             0x93822f52 thread_start + 34

Thread 4:
0   libSystem.B.dylib             0x937f93ae __semwait_signal + 10
1   libSystem.B.dylib             0x938499f0 pthread_cond_timedwait$UNIX2003 + 72
2   libthreadutil.2.dylib         0x0104b4ab WorkerThread + 691
3   libSystem.B.dylib             0x93823095 _pthread_start + 321
4   libSystem.B.dylib             0x93822f52 thread_start + 34

Thread 5:
0   libSystem.B.dylib             0x937f93ae __semwait_signal + 10
1   libSystem.B.dylib             0x938499f0 pthread_cond_timedwait$UNIX2003 + 72
2   libthreadutil.2.dylib         0x0104b4ab WorkerThread + 691
3   libSystem.B.dylib             0x93823095 _pthread_start + 321
4   libSystem.B.dylib             0x93822f52 thread_start + 34

Thread 6:
0   libSystem.B.dylib             0x938416f2 select$DARWIN_EXTSN + 10
1   libthreadutil.2.dylib         0x0104b7aa WorkerThread + 1458
2   libSystem.B.dylib             0x93823095 _pthread_start + 321
3   libSystem.B.dylib             0x93822f52 thread_start + 34

Thread 7:
0   libSystem.B.dylib             0x937f93ae __semwait_signal + 10
1   libSystem.B.dylib             0x938499f0 pthread_cond_timedwait$UNIX2003 + 72
2   libthreadutil.2.dylib         0x0104b4ab WorkerThread + 691
3   libSystem.B.dylib             0x93823095 _pthread_start + 321
4   libSystem.B.dylib             0x93822f52 thread_start + 34

Thread 8:
0   libSystem.B.dylib             0x937f93ae __semwait_signal + 10
1   libSystem.B.dylib             0x93823d0d pthread_cond_wait$UNIX2003 + 73
2   com.apple.ColorSync           0x9522145c pthreadSemaphoreWait(t_pthreadSemaphore*) + 42
3   com.apple.ColorSync           0x95233d8e CMMConvTask(void*) + 54
4   libSystem.B.dylib             0x93823095 _pthread_start + 321
5   libSystem.B.dylib             0x93822f52 thread_start + 34

Thread 9:
0   libSystem.B.dylib             0x937f22e6 mach_wait_until + 10
1   ...ple.CoreServices.CarbonCore 0x91725933 MPDelayUntil + 39
2   org.amule.aMule               0x005d47ef wxCFDictionary::PrintOutDictionary(wxString&, __CFDictionary const*) + 2975
3   org.amule.aMule               0x00130496 CHashingTask::~CHashingTask() + 5526
4   org.amule.aMule               0x005d5a2d wxCFDictionary::PrintOutDictionary(wxString&, __CFDictionary const*) + 7645
5   ...ple.CoreServices.CarbonCore 0x9170d0a3 PrivateMPEntryPoint + 56
6   libSystem.B.dylib             0x93823095 _pthread_start + 321
7   libSystem.B.dylib             0x93822f52 thread_start + 34

Thread 10:
0   libSystem.B.dylib             0x93836796 __wait4 + 10
1   org.amule.aMule               0x004273d5 wxHIDModule::~wxHIDModule() + 1029
2   org.amule.aMule               0x005d5a2d wxCFDictionary::PrintOutDictionary(wxString&, __CFDictionary const*) + 7645
3   ...ple.CoreServices.CarbonCore 0x9170d0a3 PrivateMPEntryPoint + 56
4   libSystem.B.dylib             0x93823095 _pthread_start + 321
5   libSystem.B.dylib             0x93822f52 thread_start + 34

Thread 11:
0   libSystem.B.dylib             0x937f221a semaphore_timedwait_trap + 10
1   ...ple.CoreServices.CarbonCore 0x9172049b MPWaitOnSemaphore + 125
2   org.amule.aMule               0x005d440b wxCFDictionary::PrintOutDictionary(wxString&, __CFDictionary const*) + 1979
3   org.amule.aMule               0x00298d30 CTimerThread::Entry() + 144
4   org.amule.aMule               0x005d5a2d wxCFDictionary::PrintOutDictionary(wxString&, __CFDictionary const*) + 7645
5   ...ple.CoreServices.CarbonCore 0x9170d0a3 PrivateMPEntryPoint + 56
6   libSystem.B.dylib             0x93823095 _pthread_start + 321
7   libSystem.B.dylib             0x93822f52 thread_start + 34

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x938de639  ecx: 0xbfffd60c  edx: 0x9385fe42
  edi: 0x00010000  esi: 0xbfffd980  ebp: 0xbfffd628  esp: 0xbfffd60c
   ss: 0x0000001f  efl: 0x00000282  eip: 0x9385fe42   cs: 0x00000007
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x4310256c

... CONTINUE ...

I think this could be related to aMule sources or wxWidgets...
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (stable release)
Post by: mirko.g on May 04, 2009, 06:41:23 PM
A new build is ready for testing. Go to the first post and download it! ;-)
I usually have "only" two Macs to test my builds, so I need more and more feedback!

NOTE:
It's very strange... during my last tries I noticed that make command doesn't produce aMuleGUI.app any more... I had to package it by hand...
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: MidgetInaBikini on May 06, 2009, 06:32:52 PM
mirko, I offered you my help, you never responded. that's too bad.

anyway, if you want a working and stable version of aMule of osx (intel, ppc, both) you need to rewrite almost half of the code.
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: Festor on May 06, 2009, 06:53:44 PM
anyway, if you want a working and stable version of aMule of osx (intel, ppc, both) you need to rewrite almost half of the code.

And ... if you want help, why not start doing that?
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: mirko.g on May 06, 2009, 07:11:44 PM
mirko, I offered you my help, you never responded. that's too bad.

anyway, if you want a working and stable version of aMule of osx (intel, ppc, both) you need to rewrite almost half of the code.

Hi... I'm really sorry. I've just figured your PM... I forgot to switch on any kind of notify... Anyway, I think you should share your considerations about the code with the developer team. They usually accept every enhancement...
My only work is to compile. So, does the last build work for you? :)
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: littleb2005 on May 07, 2009, 08:42:30 PM
@the op

why the name change am just curiours
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: bongo on May 10, 2009, 04:10:07 PM
if you want a working and stable version of aMule of osx (intel, ppc, both) you need to rewrite almost half of the code.

is amule really so unstable for you? i run one of mirkos builts (not the latest one but i will change this today) and it works good for me. sometimes it hangs but most of the time i have no problems at all and it runns for weeks without problems.
all this on an intel imac with 10.5.6
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: Kry on May 10, 2009, 09:06:21 PM
Sorry mirko.g, but please use the name of the project in the filename. Name changes are not acceptable, and I know where this is going.


anyway, if you want a working and stable version of aMule of osx (intel, ppc, both) you need to rewrite almost half of the code.

Bullshit
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: mirko.g on May 10, 2009, 11:49:57 PM
Sorry mirko.g, but please use the name of the project in the filename. Name changes are not acceptable, and I know where this is going.

No problem. I used "MacMule" 'cause I often read it instead of aMule for Mac... ;)
My only goal is to compile. And what I want to compile is aMule. No other things in mind... Hope this is clear!
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: Kry on May 11, 2009, 01:40:05 AM
Clear as distilled water in a zero-g environment with no container and purifier air environment.

Thanks for the change. We have used Macmule in the past for some irc channel etc, but nowadays we prefer using the proper name for everywhere.
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: Kry on May 11, 2009, 05:54:53 PM
There was a totally uncalled for direct attack to me here by MidgetInaBikini, and it has been moved to the bin. Additionally, if anyone is planing on contacting him, better do it by mail because he's having a one-week holiday from this forum.
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: himkawong on May 13, 2009, 02:34:18 PM
I have tried "aMule 2.2.4 for MacIntel (build 08)" but the aMule show nothing after start.
Console show following:
dyld: Symbol not found: _kUTTypeTIFF
  Referenced from: /Applications/aMule.app/Contents/MacOS/amule
  Expected in: /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices

My Mac Configuration:
Macbook (Intel)
Mac OS X 10.4.11
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: guruweb on May 13, 2009, 06:46:42 PM
The same problem reported by himkawong on my macbook.

Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: mirko.g on May 13, 2009, 07:05:46 PM
The same problem reported by himkawong on my macbook.

Tiger?
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: guruweb on May 13, 2009, 09:33:45 PM
Yes, Tiger on 10.4.11 version.
I open CoreService with TextEdit, but i didn't understand anything...  :P
 :)
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: Kry on May 13, 2009, 09:34:55 PM
It doesn't actually work with Tiger, no, I tested it as well. I can help you find out why if you want, but it'll have to be in the weekend if you don't find it first.

EDIT: However, I am pretty sure I know what's going on: Make sure you compiled with the right framework (10.4) EVERY library. Those that don't have the option, use the CC= solution.
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: mirko.g on May 13, 2009, 09:53:35 PM
It doesn't actually work with Tiger, no, I tested it as well. I can help you find out why if you want, but it'll have to be in the weekend if you don't find it first.

EDIT: However, I am pretty sure I know what's going on: Make sure you compiled with the right framework (10.4) EVERY library. Those that don't have the option, use the CC= solution.

Yep... I'm new to Mac OS development and I thought it was only a matter of gcc version. I will start again from scratch... :)
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: Kry on May 14, 2009, 03:05:30 AM
Do you need any help with the right flags?
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: mirko.g on May 14, 2009, 06:17:51 AM
Do you need any help with the right flags?

Please correct me if I'm wrong...

wxWidgets
--with-macosx-version-min=10.4 --with-macosx-sdk=/Developer/SDKs/MacOSX10.4u.sdk

aMule
CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" \
CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"


EDIT:
I'm not sure but it seems to me there are two other ways to get a app built against 10.5 working on 10.4... the first one implicates the use of the MACOSX_DEPLOYMENT_TARGET flag, the second of CC="gcc -mmacosx-version-min=10.4", but I have to understand them deeply...
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: Kry on May 14, 2009, 07:35:58 AM
In one of my projects, I use this:

Code: [Select]
SDK=/Developer/SDKs/MacOSX10.4u.sdk
CFLAGS="-isysroot ${SDK} -arch ppc -arch i386 -mmacosx-version-min=10.4 $CFLAGS"
CPPFLAGS="-isysroot ${SDK} -arch ppc -arch i386 -mmacosx-version-min=10.4 $CPPFLAGS"
LDFLAGS="-isysroot ${SDK} -Wl,-syslibroot,${SDK} -mmacosx-version-min=10.4 $LDFLAGS"

Substitute as needed.

And it works quite well. Of course, same applies to all libraries you're compiling, if applicable.
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: gtoso on May 14, 2009, 12:01:10 PM

EDIT:
I'm not sure but it seems to me there are two other ways to get a app built against 10.5 working on 10.4... the first one implicates the use of the MACOSX_DEPLOYMENT_TARGET flag, the second of CC="gcc -mmacosx-version-min=10.4", but I have to understand them deeply...


They are the same, but for safety you use both.
From man gcc:

       -mmacosx-version-min=version
           The earliest version of MacOS X that this executable will run on is
           version.  Typical values of version include 10.1, 10.2, and 10.3.9.

           This value can also be set with the MACOSX_DEPLOYMENT_TARGET
           environment variable.  If both the command-line option is specified
           and the environment variable is set, the command-line option will
           take precedence.

I tried to use as min version 10.4, but to use 10.5 SDK and it seems work.
I don't know if it is right but the SDK determines the maximum system whose API you want to benefit from
and the DEPLOYMENT_TARGET the minimal supported OS version...
Maybe it is useless or maybe there is a runtime detect...
Someone can help?

Attenction to all libraries compiled with MacPorts, I had to use:
port install .... +universal macosx_deployment_target=10.4 universal_target=10.4

EDIT:
See here (http://gtoso.tor.it/pub/amule/osx/2.2.4/OSXBuild/amule-uni.OSXBuild).

Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: gtoso on May 19, 2009, 05:21:39 PM
From man gcc:

       -mmacosx-version-min=version
           The earliest version of MacOS X that this executable will run on is
           version.  Typical values of version include 10.1, 10.2, and 10.3.9.

           This value can also be set with the MACOSX_DEPLOYMENT_TARGET
           environment variable.  If both the command-line option is specified
           and the environment variable is set, the command-line option will
           take precedence.

I tried to use as min version 10.4, but to use 10.5 SDK and it seems work.
I don't know if it is right but the SDK determines the maximum system whose API you want to benefit from
and the DEPLOYMENT_TARGET the minimal supported OS version...
Maybe it is useless or maybe there is a runtime detect...
Someone can help?

I found this (http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development/HowItWorks/cd_how_it_works.html).
So it's weak linking and the runtime detect is possible but into the program. So it works(*) because wxMac/aMule don't use Leopard specific features.
Now I think that here has no sense to use the 10.5 sdk, mmm somewhere in wxWidgets docs tell the same  ::)

* I tried almost all on Tiger/PPC and it works fine.

EDIT: Here (http://wiki.wxwidgets.org/Possible_Configure_Flags_under_OS_X) they tell something similar.
Here (http://wiki.wxwidgets.org/WxMac-specific_topics) there are some very nice things to make aMule more Mac style:
menu, close...
Title: Re: aMule-2.2.4-i686 Mac OS X 10.4+ (MacFactory release)
Post by: gtoso on May 19, 2009, 10:59:59 PM
Just for info I find this old document (http://developer.apple.com/technotes/tn2002/tn2064.html).

So, if I correctly understand, it seems that aMule/wxMac/dependents libraries doesn't use any Leopard only features:

Code: [Select]
enterprise:tmp2 sadmin$ otool -l /Applications/aMule-2.2.5/aMule.app/Contents/MacOS/*|grep -i weak
otool: can't map file: /Applications/aMule-2.2.5/aMule.app/Contents/MacOS/ed2kHelperScript.app (Invalid argument)
enterprise:tmp2 sadmin$ otool -l /Applications/aMule-2.2.5/aMule.app/Contents/Frameworks/*|grep -i weak
enterprise:tmp2 sadmin$