> Mac OS X Panther 10.3.4
> perl 5.8.1 (came w/OS)
> PAR 0.87
> wxWidgets 2.5.3
> wxPerl 0.22
>
> I've been trying to pack a wxperl program as a standalone executable
> that will run on systems without perl or wx installed. Even when I use
> the -l option to include the wx library file, though, running the
> program on anything besides the development machine always gives me the
> error:
>
> dyld: ./CDArchiveCalculator can't open library:
> /usr/local/lib/libwx_mac_adv-2.5.3.dylib (No such file or directory,
> errno = 2)
> Trace/BPT trap
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Notice the full path here.
> I included that file specifically via -l. The file itself is just a
> symlink, though:
>
> libwx_mac_adv-2.5.3.0.0.dylib
> libwx_mac_adv-2.5.3.dylib -> libwx_mac_adv-2.5.3.0.0.dylib
>
> So when I check the PAR_TEMP directory I see only
> libwx_mac_adv-2.5.3.0.0.dylib, not the link. I can only imagine the
> problem is that wxperl is expecting the link file itself to still be
> there. Should PAR, then, in addition to following symlinks, include them
> in the archive?
>
> Unfortunately I don't have access to a Mac at this moment, so I can't
> test it to see if that would work. In the meantime, I welcome your
> comments and suggestions.
I had the same issue. The problem is that Wx.bundle links to
/usr/local/lib/libwx_mac_adv-2.5.3.0.0.dylib specifying the full
path. I ended up distributing an additional package to install
the wxWidgets libraries in /usr/local, which sucks. Other alternatives
are:
1) package wxWidgets as a framework (I have no idea what
changes in wxWidgets are necessary for this to work).
2) find a way to link wxWidgets with a relative path:
I did not find a way of doing this, and I think it is not
possible with Mac OS X, unless you use a framework
Regards
Mattia
____________________________________________________________
6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it