help-octave
[Top][All Lists]
Advanced

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

Re: Using LIBSVM with Octave on MAC


From: Thomas Treichl
Subject: Re: Using LIBSVM with Octave on MAC
Date: Mon, 11 May 2009 20:39:46 +0200
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

Sunny Nanuwa schrieb:
Hi,
Im having no success setting/running libsvm-mat-2.89-3 using octave under MAC.

Does anyone know how to set this up?

I have installed Octave. Using Terminal window I change directory to where libsvm-mat-2.89-3 is downloaded, I run "make.m" and the following errors come up

mkoctfile: unrecognized argument -O
mkoctfile: unrecognized argument -O
mkoctfile: unrecognized argument -O
mkoctfile: unrecognized argument -O
mkoctfile: unrecognized argument -O
mkoctfile: unrecognized argument -O

I then change the make.m file parameters from uppercase -O to lowercase -o

and the following errors come up

svm_model_matlab.c:8: error: redefinition of typedef ‘mwIndex’
/Applications/Octave.app/Contents/Resources/include/octave-3.0.5/octave/mxarray.h:89: error: previous declaration of ‘mwIndex’ was here
mkoctfile: unrecognized argument svm.obj
mkoctfile: unrecognized argument svm.obj

this seems like it's progressed further but more errors.
Thanks

Hi Sunny,

I don't know what to do with libsvm-mat, however, I downloaded the *zip file from somewhere and I quickly created "make2.m" from "make.m" that I also have attached to this email. Copy the file "make2.m" into the same directory where "make.m" resides and then call "make2" from Octave. I didn't have the time to take a look what actually I can do with libsvm-mat so can you please give us a short explanation about what this package is useful for?

Thanks,

  Thomas

% This make.m is used under Windows

mex "-Wp,-DMX_API_VER=0x07030001" -c svm.cpp
mex "-Wp,-DMX_API_VER=0x07030001" -c svm_model_matlab.c
mex "-Wp,-DMX_API_VER=0x07030001" svmtrain.c svm.o svm_model_matlab.o
mex "-Wp,-DMX_API_VER=0x07030001" svmpredict.c svm.o svm_model_matlab.o
mex "-Wp,-DMX_API_VER=0x07030001" libsvmread.c
mex "-Wp,-DMX_API_VER=0x07030001" libsvmwrite.c

reply via email to

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