#118 mac osx lion problem

3.x
open
nobody
binutils (2)
5
2015-06-16
2013-03-29
Anonymous
No

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.

Discussion

  • Jasper
    Jasper
    2013-09-01

    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.

     
  • Grzegorz Kowal
    Grzegorz Kowal
    2014-03-27

    • labels: --> binutils
    • Group: --> 3.x
     
  • Grzegorz Kowal
    Grzegorz Kowal
    2015-06-15

    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.