help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling Programs to Windows Stand-Alone Executables


From: Paul Kienzle
Subject: Re: Compiling Programs to Windows Stand-Alone Executables
Date: Wed, 1 Jun 2005 07:43:43 -0400

There has been some work on an octave compiler which translates
m-files into C++.  Google for "compiler site:www.octave.org"
gave me this result:

http://www.octave.org/octave-lists/archive/octave-maintainers.2005/ msg00430.html

But it occurs to me that you don't need to compile the
mfiles to do what you want to do.  Instead you could
statically compile octave then write a small main program
which embeds all the scripts you need as strings.   Prior
to calling your main function you just need to eval each
of the function definition strings.  You might also want
to use mlock to keep them in place if you give the user
access to the command line.

- Paul

On Jun 1, 2005, at 4:28 AM, Peter Browne wrote:

Thanks Paul. I will look at the TCL stuff. I have found QMG which makes
Matlab executables but has not been tested for Octave. Leaving Octave,
surely just from a C++ point of view one can compile C++ code to an
executable for windows? So then is it possible to just have the Octave
headers and files included in the C++ code so when you compile it builds
things for you? Probably not the right forum (but seeing that it is in
specific reference to Octave) - how would I do that? Is it possible?

Peter

This would be a nice feature to have for those of us building
applications, but it doesn't exist for octave.

Tcl handles this well if anyone is looking for inspiration.

- Paul

On May 31, 2005, at 7:20 AM, Peter Browne wrote:

Good day all,

I am an Octave and Linux newbie, and would appreciate some help
regarding building stand-alone applications into the windows
environment. How exactly do I go about compiling my Octave code into
a
Windows executable and a Linux executable/binary so that a user can
have
the application deployed onto the machine without needing octave.

I have done some searching on the net, but can't find what I am
looking
for either because I might be searching in the wrong place, or don't
understand what is being talked of.

Please could somebody give me some help.



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------




He who seeks will not cease till he finds,
and having found he will be amazed,
and having been amazed he will reign,
and having reigned he will rest.

The Goodnews according to the Hebrews




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]