mac osx lion problem
Brought to you by:
grzegok
In order to get launch4j to work on a macbook air running OSX Version 10.7.5, I had to do the following:
1. tar xf /data/launch4j-3.1.0-beta1-macosx-x86-10.8.tgz
2. sudo port install i386-mingw*
3. cp /opt/local/bin/i386-mingw32-windres launch4j/bin/windres
4. cp /opt/local/bin/i386-mingw32-ld launch4j/bin/ld
None of the available prebuilt binaries worked out-of-the-box, but the above steps did the trick.
Launch4j doesn't work on Mac Lion or later because this program is using a PowerPC application to build the exe apparently. Lion does not support PowerPC applications anymore.
I'd like to solve this one. What's the best option? To contribute binaries, or to just forget about binary distributions and add a formula to homebrew for OSX to make it easy to build from source?
https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md
I was thinking about such a generic solution for Linux, so that I could provide a single package without the precompiled binaries. But this is more complicated now, as launch4j is uploaded the the maven central repository along with the binaries for specific platforms. So binaries are best, but the homebrew could be an alternative, for example it could be added to all Mac packages. Or perhaps it is possible to create a single Mac OS X package that is compatible with the recent versions of the system.
Last edit: Grzegorz Kowal 2015-06-15
I've just discovered that launch4j doesn't support Windows Service builds (and I don't have $4000 for the non-GPL version of JSW), so I'll have to stick to exe4j for now.
Thanks for your help.
Check the newest mac os x package, if the problem still occurs.