On Tue, Mar 6, 2012 at 11:12 AM, Okko Lohmann <okko.lohm...@offis.de> wrote:
> I'm trying to compile the Matlab Connector "Kinect Microsoft
> SDK" ( 
> http://www.mathworks.de/matlabcentral/fileexchange/33035-kinect-microsoft-sdk 
> )
> with Octave. But when i call the compiler, i get the described error:
>
> octave-3.6.1.exe:1> mkoctfile -v '-Lc:\Program Files\Microsoft
> SDKs\Kinect\v1.0\lib\x86' -lKinect10 '-Ic:\Program Files\Microsoft
> SDKs\Kinect\v1.0\inc' Mex\mxMSCreateContext.cpp
>
> cc-msvc -d -c -D_WIN32 -DWIN32 -D__WIN32__
> -IC:\Octave-3.6.1\include\octave-3.6.1\octave\..
> -IC:\Octave-3.6.1\include\octave-3.6.1\octave -IC:\Octave-3.6.1\include
> -Ic:/Software/VC10Libs/include -Ic:/Software/VC10Libs/include/freetype2
> -Ic:/Software/VC10Libs/include -Ic:/Software/VC10Libs/include   -O2 -MD
> -EHsc -wd4244 -fp:strict -fp:except-   "-Ic:\Program Files\Microsoft
> SDKs\Kinect\v1.0\inc"  mxMSCreateContext.cpp -o mxMSCreateContext.o
>
> cl -nologo -c -D_WIN32 -DWIN32 -D__WIN32__
> -IC:\Octave-3.6.1\include\octave-3.6.1\octave\..
> -IC:\Octave-3.6.1\include\octave-3.6.1\octave -IC:\Octave-3.6.1\include
> -Ic:/Software/VC10Libs/include -Ic:/Software/VC10Libs/include/freetype2
> -Ic:/Software/VC10Libs/include -Ic:/Software/VC10Libs/include -O2 -MD
> -EHsc -wd4244 -fp:strict -fp:except- -I"c:\Program Files\Microsoft
> SDKs\Kinect\v1.0\inc" mxMSCreateContext.cpp -FomxMSCreateContext.o
>
> cc-msvc -d -shared  -o mxMSCreateContext.oct  mxMSCreateContext.o
> -Lc:\Program Files\Microsoft SDKs\Kinect\v1.0\lib\x86 -lKinect10
> -LC:\Octave-3.6.1\lib\octave\3.6.1 -LC:\Octave-3.6.1\lib -loctinterp
> -loctave -lcruftlink -nologo -DLL -out:mxMSCreateContext.oct
> mxMSCreateContext.o -LIBPATH:c:\Program Files\Microsoft
> SDKs\Kinect\v1.0\lib\x86 Kinect10.lib
> -LIBPATH:C:\Octave-3.6.1\lib\octave\3.6.1 -LIBPATH:C:\Octave-3.6.1\lib
> octinterp.lib octave.lib cruft.lib dirent.lib
>
> warning: unable to find mkoctfile in expected location:
> `C:\Octave-3.6.1\bin\mkoctfile-3.6.1'
>
> warning: mkoctfile exited with failure status

This is again the same problem of exit status of mkoctfile that
matches the one when mkoctfile is not found. You can get better
visibility if you execute mkoctfile outside of octave, in a command
prompt windows (C:\Octave-3.6.1\bin\mkoctfile.exe).

> octave-3.6.1.exe:2>
>
> Few more things:
>  - on my system the path c:/software/VC10libs/ does not exist (and i
>   believe never has).

This is harmless, the correct include paths are also present.

>  - the file dirent.lib does not exist under C:\Octave-3.6.1\lib and can
>   not be found any where else

Aargh, my mistake, sorry. You can dowload the missing file from here:
http://dl.dropbox.com/u/45539519/dirent-vs2010.lib
Copy it to C:\Octave-3.6.1\lib\dirent.lib

Michael.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to