Re: SWI Prolog qsave_program/2 win/unix trouble
- From: Jan Wielemaker <jan@xxxxxxxxxxxx>
- Date: 28 Jun 2005 08:55:52 GMT
On 2005-06-27, Mauro Di Nuzzo <picorna@xxxxxxxxx> wrote:
> Hi everybody,
>
> i've got some troubles here. I am currently using SWI prolog on my WinXP
> based PC.
>
> The question is:
> does anybody know if can I "qsave" under Windows with the following (for
> example)
>
> ?- | consult('myfile.pl').
> ?- | qsave_program('myexefile', [stand_alone(true), emulator('pl'), ...]).
>
> where the 'pl' emulator is the unix version of swi prolog (which i
> downloaded and saved into my hard drive, also in the current working
> directory),
>
> and hope that the newly created 'myexefile' will work under unix based
> systems (provided the .so libraries needed are in its same directory) ???
>
> This, after I read on how to create stand-alone executables using swi-pl's
> qsave_program/2 predicate. It takes the emulator file (indeed, any file)
> that is machine-dependent and simply concatenate to it the saved state
> (which is independant).
>
> So I thought...
And what is wrong? The normal Unix emulator is a single file executable,
so this sequence should produce a nice stand alone program. Note that
if you use any of the packages involving foreign code you have to place
the required .so files in a directory that is searched by the `foreign'
alias (see file_search_path/2).
I have been using this trick the other way around (making windows
binaries on Unix systems) without any trouble.
The only trouble I can imagine is that plwin.exe loads some code dealing
with the menus that may cause trouble when run on the Unix emulator.
Possibly you should be using plcon.exe to create the state.
Cheers --- Jan
.
- Follow-Ups:
- Re: SWI Prolog qsave_program/2 win/unix trouble
- From: Mauro Di Nuzzo
- Re: SWI Prolog qsave_program/2 win/unix trouble
- References:
- SWI Prolog qsave_program/2 win/unix trouble
- From: Mauro Di Nuzzo
- SWI Prolog qsave_program/2 win/unix trouble
- Prev by Date: SWI Prolog qsave_program/2 win/unix trouble
- Next by Date: Re: Simply Expert System for Visual Prolog
- Previous by thread: SWI Prolog qsave_program/2 win/unix trouble
- Next by thread: Re: SWI Prolog qsave_program/2 win/unix trouble
- Index(es):
Relevant Pages
|
|