Re: standalone executable on Mac OS X (as independent as possible from user's system)
Stijn Heymans <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <CAF79SBWJD8ty5qaF=pecdjPYo5W6yzahW-ry0-OhVTyuYpwkEQ@mail.gmail.com> |
hi Lyn, I quickly wrote down the steps I used (note that this info exists piecewise and spread-out so I am not claiming any originality :), plus there are probably lots of other ways of doing this). In short, this is 'as is' :) http://stijnheymans.net/notes/note_20131017.html best, Stijn On Thu, Oct 17, 2013 at 2:35 AM, Lyn Matten <[email protected]> wrote: > Hi Stijn, > > may i ask you if it would be possible to provide a step by step howto for > creating a stand a lone binary under MAC OS X? Maybe Jan could place that > on the swi website. I think it would be very helpful to build up apps for > MAC using swi-prolog which than simply could be provided without the need > of installing swi-prolog on the user´s system. > > Kind regards > > Lyn > Am 14.10.2013 um 23:33 schrieb Stijn Heymans <[email protected]>: > > > On Thu, Oct 10, 2013 at 12:50 PM, Stijn Heymans <[email protected] > >wrote: > > > >> Other things I was thinking of is changing the DYLD_LIBRARY_PATH but > >> server_pl > >> contains absolute paths to libncurses.5.6.dylib it seems. > >> > > > > and that does not seem to matter actually. I just moved > > /usr/lib/libncurses.5.4.dylib to ./pl ("pl" is a subdirectory of the > > directory where server_pl would be located). > > > > Running server_pl then results in: > > > > dyld: Library not loaded: /usr/lib/libncurses.5.4.dylib > > Referenced from: ..../server_pl > > Reason: image not found > > Trace/BPT trap: 5 > > > > But just setting the following variable to the "./pl" seems to get things > > working again: > > > > $ export DYLD_FALLBACK_LIBRARY_PATH="./pl" > > > > If I run server_pl I no longer get the missing library error (even though > > it is no longer at its original /usr/lib/location) > > > > So well, I think that's good news :) > > -------------- next part -------------- > > HTML attachment scrubbed and removed > > _______________________________________________ > > SWI-Prolog mailing list > > [email protected] > > https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog > > -------------- next part -------------- HTML attachment scrubbed and removed