Dear Oliver,

I just confirmed your problem, although I get a different error message (I tried it on the shell).

$ ozengine '/path to/Functor.ozf'
Unknown option 'to/Functor.ozf'.
usage: /path/emulator.exe <options>
-init <file> : init functor
-u <url>     : application functor
-- <args> ...: application arguments


Anyway, you may try compiling your Oz application as executable (option -x) and calling the resulting executable directly.

Best
Torsten

On Jan 20, 2008, at 6:29 PM, Oliver Mooney wrote:
Thanks Torsten,

I've been using socketpair(), fork() and execve() under OS X to launch oz as a separate process - I'm trying to launch oz from the cocoa front-end, rather than vice-versa at the moment.

I have a space in the path-name to my oz functor and it seems the module manager can't parse path names with spaces. This seems to be true even when using ozengine directly and specifying the file location on the command line, regardless of escaping the spaces or enclosing the file location in inverted commas.

E.g.

ozengine dir1/dir2/ozfunctor.ozf  %% runs fine

ozengine dir with spaces/dir1/dir2/ozfunctor.ozf %% fails, as does
ozengine 'dir with spaces/dir1/dir2/ozfunctor.ozf'
ozengine dir\ with\ spaces/dir1/dir2/ozfunctor.ozf     %% etc

Is there a work-around? The error I get when it fails says

%********************** Error: module manager *******************
%**
%** Could not link module
%**
%** Could not load functor at URL: /Users/Oliver/dir
%**--------------------------------------------------------------

The URL specified broke at the first space.

Thanks,
Oliver.


From: Torsten Anders <[EMAIL PROTECTED]>
Subject: Re: generating standalone applications
To: Mozart users < [EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="US-ASCII"; delsp=yes; format=flowed

Dear Oliver,

indeed, you have to install Oz first before you can run an Oz program
(similar to various other languages, e.g., Java).

Also, you can run Oz programs as separate processes which talk to
other processes via sockets. Sockets are documented in the open
programming tutorial

   http://www.mozart-oz.org/documentation/op/node10.html

and the reference

   http://www.mozart-oz.org/documentation/system/node54.html

Best
Torsten



_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to