help-octave
[Top][All Lists]
Advanced

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

Re: How to use mkoctfile


From: mkole
Subject: Re: How to use mkoctfile
Date: Sun, 8 Jul 2012 18:38:03 -0700 (PDT)

SOLVED - but, wow, what a nightmare :-(
I thought I would post my findings in case it might help someone else.
As Michael so kindly explained to me, to produce the .mex files, you need a
compiler. 
This is explained in this link:
http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.1%20for%20Windows%20Microsoft%20Visual%20Studio/

You also need to set the environment variables for Octave by calling
vcvarsall.bat in a command prompt prior to executing Octave. 

Unfortunately, the 2010 Visual Express that I have does not have the
vcvarsall.bat script that you need to call. I tried Visual Basic 2008
Express and that does not have 
the .bat file, either. The version you need is Visual C++ 2008 Express
Edition with SP1:
http://www.microsoft.com/visualstudio/en-us/products/2008-editions/express
Once you have installed Visual C++ ... , you can verify that vcvarsall.bat
is in the directory:
C:\Program Files\Microsoft Visual Studio 9.0\VC\

Next, you need to make the call to the .bat file by typing the following
line in the command prompt :
"C\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"

***Note - adapt this to your own path if it varies from mine ***
Also note, I'm on Vista so I'm used to using an elevated prompt ("run as
administrator"), not sure if this is required... but it works for me.

In order to get the mkoctfile to work properly, I had to navigate to the
Octave bin directory:
(In Command Prompt):
>*D:*
D:>*cd Programs\Octave-3.6.1\bin*
D:\Programs\Octave-3.6.1\bin>*mkoctfile.exe --mex -v resampc.c*

***Again, modify paths and filenames to your own situation****
In my case, the file resampc.c was in the bin directory along with
mkoctfile.exe.
The file resampc.mex was created in the bin directory.

Mark


--
View this message in context: 
http://octave.1599824.n4.nabble.com/How-to-use-mkoctfile-tp4631295p4631313.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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