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]

Author Topic: Re: aMule 2.3.2 for mac compiled on macOS Sierra  (Read 57464 times)

titi75011

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 18
Re: aMule 2.3.2 for mac compiled on macOS Sierra
« Reply #30 on: August 15, 2019, 02:55:16 AM »

It works very well. Thank you PepitoGrilloOSX!

Did you consider adding it to Homebrew?

What step did you follow to compile amule?
Logged

PepitoGrilloOSX

  • Approved Newbie
  • *
  • Karma: 7
  • Offline Offline
  • Posts: 16
Re: aMule 2.3.2 for mac compiled on macOS Sierra
« Reply #31 on: September 13, 2019, 06:39:43 PM »

PepitoGrilloOSX: Thank you very much for your builds, they are top notch!  :)

Thank you!
Nice to read that!
Logged

PepitoGrilloOSX

  • Approved Newbie
  • *
  • Karma: 7
  • Offline Offline
  • Posts: 16
Re: aMule 2.3.2 for mac compiled on macOS Sierra
« Reply #32 on: September 13, 2019, 07:06:52 PM »

It works very well. Thank you PepitoGrilloOSX!

Did you consider adding it to Homebrew?

What step did you follow to compile amule?

Thank you very much.
I actually didn't think about adding it to homebrew, but maybe I will try to...

My process is quite simple, and it is based on three steps:

1. Build cryptopp library (64 bits). One shot action (I use version 5.6.2)
2. Build the wxWidgets version that supports the 64 bits Cocoa version (now 3.0.4).
3. Build aMule (now 2.3.2) against that libraries, with the proper options.

Steps 3 & 4 are supported by two shell scripts that make the proper setup of the "configure" building utilities (wxWidgets & aMule) in order to build the final binary and pack it into an OSX app.
« Last Edit: September 13, 2019, 07:54:13 PM by PepitoGrilloOSX »
Logged

PepitoGrilloOSX

  • Approved Newbie
  • *
  • Karma: 7
  • Offline Offline
  • Posts: 16
Re: aMule 2.3.2 for mac compiled on macOS Sierra
« Reply #33 on: October 12, 2019, 07:33:43 PM »

New binaries for macos 10.15 (Catalina):

https://www.dropbox.com/s/wqnmnl3qom287hp/aMule-2.3.2-macOS_10.15-wxWidgets-3.0.4.zip?dl=0
https://www.dropbox.com/s/8wxxt6tadhjpmxk/aMuleGUI-amuled-2.3.2-macOS_10.15-wxWidgets-3.0.4.zip?dl=0

Remember, force UI Light Mode for aMule (with pure Dark Mode widgets are nearly unusable):

defaults write org.amule.aMule NSRequiresAquaSystemAppearance -bool YES
Logged

noblem

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Re: aMule 2.3.2 for mac compiled on macOS Sierra
« Reply #34 on: October 14, 2019, 10:57:41 AM »

ed2kHelperScript.app no longer functions on Catalina due to the binary not being 64bit. After a bit of digging, I came across an old post that suggests this problem had been seen before when Apple dropped rosetta support, so the old PPC binary stopped working. As the binary is just compiled AppleScript, the fix was just use the AppleScript editor to export a new app with the required support and this is what has been shipped ever since. This didn't quite work when I tried it as the bit of scripts that used tell application "System Events" to work out the path to the ed2k binary didn't work any more, likely due to security changes

I was able to get it working with the below code AppleScript code


minimac:> osadecompile /Applications/aMule.app/Contents/MacOS/ed2kHelperScript.app
on open location theURL --error reporting shouldReport

   set thePath to POSIX path of ((path to me as text) & "::")
   set ed2kProgram to thePath & "ed2k"
   set theCommand to quoted form of ed2kProgram & " " & quoted form of theURL
   do shell script theCommand
   return

end open location


You can either paste the above into the script editor, and export as ed2kHelperScript.app, taking care to replace Info.plist in the new .app with that of the original one, or simply use the compiled version, which would need to go in /Applications/aMule.app/Contents/MacOS/ed2kHelperScript.app/Contents/MacOS assuming aMule is installed in the default location


https://www.dropbox.com/s/3emqjg7bykpke39/applet?dl=0


Logged

mr_hyde

  • Global Moderator
  • Jr. Member
  • *****
  • Karma: 10
  • Online Online
  • Posts: 99
Re: aMule 2.3.2 for mac compiled on macOS Sierra
« Reply #35 on: Today at 05:03:11 PM »

[...]
I was able to get it working with the below code AppleScript code

[...]

You can either paste the above into the script editor, and export as ed2kHelperScript.app, taking care to replace Info.plist in the new .app with that of the original one, or simply use the compiled version, which would need to go in /Applications/aMule.app/Contents/MacOS/ed2kHelperScript.app/Contents/MacOS assuming aMule is installed in the default location

Uhm..m I'm wondering if we can "merge" the old applet file with the new one using "lipo" command to obtain a new universal binary containing ppc, i386 and x86_64.

I've just used

Code: [Select]
lipo applet <path to app generated using script editor>/Contents/MacOS/applet <path to current aMule app>/Contents/MacOS/ed2kHelperScript.app/Contents/MacOS/applet -create -output /tmp/applet

The obtained file seems to have all the architectures

Code: [Select]
file applet
applet: Mach-O universal binary with 3 architectures: [ppc:Mach-O executable ppc] [i386:Mach-O executable i386] [x86_64:Mach-O 64-bit executable x86_64]
applet (for architecture ppc): Mach-O executable ppc
applet (for architecture i386): Mach-O executable i386
applet (for architecture x86_64): Mach-O 64-bit executable x86_64

I'm also wondering if we need also to change some attribute in Info.plist (probably not, in the old one nothig seems related to architecture).

If this works we could replace the old applet in repository.


Bye,
  Mr Hyde
Logged
Pages: 1 2 [3]