On 11 April 2012 18:20, Andy Buckle <andybuc...@gmail.com> wrote:
> I have tried to use mkoctfile, but can't get it to work.
>
>>mkoctfile
> usage: mkoctfile [options] file ...
> warning: unable to find mkoctfile in expected location: 
> `C:\Octave-3.6.1-msvc200
> 8\bin\mkoctfile-3.6.1'
> warning: mkoctfile exited with failure status
>
>>ls C:\Octave-3.6.1-msvc2008\bin\mk*.exe
> [snip]
> mkoctfile-3.6.1.exe   mkoctfile.exe
> [snip]
>
> I tried mkoctfile with -v, and note that it calls cc-msvc, cl and
> link. I tried adding these to my path.
> C:\Program Files\Microsoft Visual Studio 9.0\VC\bin
> That did not change anything.
>
> In case someone asks about my longer term goal:
>
> My aim is to get the dicom package working on Windows. I have tried
> cygwin and several different versions of octave built with mingw. With
> these, it compiles fine, then crashes when I call one of the dicom
> oct-files. If anyone is able to help me get it working, that would be
> great. Note that it works fine on linux. Under windows gdb was not
> helpful.
>
> I have successfully built the dependency (gdcm) using the relevant
> build environment, in each attempt.

I read this (sorry, should have found this earlier)
http://octave.org/wiki/index.php?title=Octave_for_Windows#Octave_with_Visual_Studio
and did this
C:\Documents and Settings\andyb>call "C:\Program Files\Microsoft
Visual Studio 9.0\VC\vcvarsall.bat"

Then it took a while longer than last time, then spat this out.

>mkoctfile -v writematrix.cpp
cc-msvc -d -c -D_WIN32 -DWIN32 -D__WIN32__
-IC:\Octave-3.6.1-msvc2008\include\octave-3.6.1\octave\..
-IC:\Octave-3.6.1-msvc2008\include\oct
ave-3.6.1\octave -IC:\Octave-3.6.1-msvc2008\include
-Id:/Software/VC9Libs/include -Id:/Software/VC9Libs/include/freetype2
-Id:/Software/VC9L
ibs/include -Id:/Software/VC9Libs/include   -O2 -MD -EHsc -wd4244
-fp:strict -fp:except-    writematrix.cpp -o writematrix.o
cl -nologo -c -D_WIN32 -DWIN32 -D__WIN32__
-IC:\Octave-3.6.1-msvc2008\include\octave-3.6.1\octave\..
-IC:\Octave-3.6.1-msvc2008\include\octa
ve-3.6.1\octave -IC:\Octave-3.6.1-msvc2008\include
-Id:/Software/VC9Libs/include -Id:/Software/VC9Libs/include/freetype2
-Id:/Software/VC9Li
bs/include -Id:/Software/VC9Libs/include -O2 -MD -EHsc -wd4244
-fp:strict -fp:except- writematrix.cpp -Fowritematrix.o
writematrix.cpp
c:\octave-3.6.1-msvc2008\include\octave-3.6.1\octave\config.h(2938) :
warning C4005: '__WIN32__' : macro redefinition
        command-line arguments :  see previous definition of '__WIN32__'
c:\octave-3.6.1-msvc2008\include\octave-3.6.1\octave\config.h(2939) :
warning C4005: 'WIN32' : macro redefinition
        command-line arguments :  see previous definition of 'WIN32'
cc-msvc -d -shared  -o writematrix.oct  writematrix.o
-LC:\Octave-3.6.1-msvc2008\lib\octave\3.6.1
-LC:\Octave-3.6.1-msvc2008\lib -loctinte
rp -loctave -lcruft
link -nologo -DLL -out:writematrix.oct writematrix.o
-LIBPATH:C:\Octave-3.6.1-msvc2008\lib\octave\3.6.1
-LIBPATH:C:\Octave-3.6.1-msvc2008\li
b octinterp.lib octave.lib cruft.lib dirent.lib
LINK : fatal error LNK1181: cannot open input file 'dirent.lib'
warning: unable to find mkoctfile in expected location:
`C:\Octave-3.6.1-msvc2008\bin\mkoctfile-3.6.1'
warning: mkoctfile exited with failure status



-- 
/* andy buckle */

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to