help-octave
[Top][All Lists]
Advanced

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

Re: mkoctfile under Windows


From: Christof Zeile
Subject: Re: mkoctfile under Windows
Date: Mon, 10 Sep 2007 13:02:27 +0200
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

First of all thanks to David, Michael, John, and Tatsuro for your help.

I had already looked if my problem had been discussed before,
but had not found it. My fault. Sorry.

For those with little time, here the two main results for me:

* mkoctfile.m in its present form does not work on Windows 2000,
  other Windows versions not tested so far.
* Maybe Tatsuro's web page could be mentioned in the README?

A few more comments:

Michael Goffioul wrote:
On 9/7/07, Christof Zeile <address@hidden> wrote:
Summary:
* Something goes wrong with the double quotes in mkoctfile.m.

Did you install octave in a location containing space? mkoctfile.m
cannot handle this correctly yet (thanks MS for using an obviously
inconsistent double-quote handling...). However, calling mkoctfile.exe
from command prompt should work OK, even if octave path contains
spaces.

No, my octave path does not have spaces. On my German Windows
installation, %ProgramFiles% is equivalent to "C:\Programme", unlike
the default "C:\Program Files" on English Windows versions.
The problem is, by the way, not with the first pair of double quotes,
i.e. the one around the octave command, but with those around
the command parameters.
That means in the meantime I can make octfiles, but I cannot use
mkoctfile.m as supplied - I had to remove those extra double
quotes for the parameters. Cf. the attached context diff (which
is not meant to be a patch, since it has not been tested in
other environments).

As Tatsuro mentioned it, the SDK comes with it's own configure script
SetEnv.cmd. This script is able to detect the MSVC compiler and setup
everything (you don't need to call vcvarsall.bat from MSVC directory).

Thanks for the hint. SetEnv does what I need for the SDK, but I still
have to call vcvarsall before calling SetEnv. But that's alright for me,
don't bother.

John W. Eaton wrote:
[...]
> | before installing MSVC (by the way - is there a chance to get
> | OpenWatcom support for mkoctfile?).
>
> Can you build Octave with OpenWatcom?  Since the interface for .oct
> files is C++, you need to use the same compiler for building them as
[...]

Now I see the reason. So as long as MSVC is free there is no real
reason to support other compilers.

*** mkoctfile.m Thu Jul 26 13:24:14 2007
--- mkoctfilenew.m      Wed Sep  5 12:00:34 2007
*************** function mkoctfile (varargin)
*** 128,134 ****
  
    cmd = strcat ("\"", shell_script, "\"");
    for i = 1:nargin
!     cmd = strcat (cmd, " \"", varargin{i}, "\"");
    endfor
    
    status = system (cmd);
--- 128,134 ----
  
    cmd = strcat ("\"", shell_script, "\"");
    for i = 1:nargin
!     cmd = strcat (cmd, " ", varargin{i});
    endfor
    
    status = system (cmd);

reply via email to

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