help-octave
[Top][All Lists]
Advanced

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

Re: Installing Octave Interface for Liblinear


From: Benjamin Lindner
Subject: Re: Installing Octave Interface for Liblinear
Date: Wed, 23 Feb 2011 13:00:46 +0100

> Thank you for your response. I think "-O" stands for "optimize".

Oh, I see, it's a gcc option. Well these are not supported in mkoctfile.
Neither, by the way, is the flag -largeArrayDims (it's interpreted as
adding the library libargeArrayDims to the linker command line), the
flag -outdir, and wildcard patterns for the input.
So you can't use this make.m file with octave - you have to rewrite it
to use one statement per file, and remove the unsupported flags, and
remove the double-definition error on "mwIndex", and either escape the
backslash or use single quotes, like such

mex -c '..\blas\daxpy.c'
mex -c '..\blas\ddot.c'
mex -c '..\blas\dnrm2.c'
mex -c '..\blas\dscal.c'
mex -c '..\linear.cpp'
mex -c '..\tron.cpp'
mex -DMX_API_VER=0x07030000 -c linear_model_matlab.c -I..\\
mex -DMX_API_VER=0x07030000 train.c -I..\\ '..\tron.o' '..\linear.o'
linear_model_matlab.o '..\blas\daxpy.o' '..\blas\ddot.o'
'..\blas\dnrm2.o' '..\blas\dscal.o'
mex -DMX_API_VER=0x07030000 predict.c -I..\\ '..\tron.o' '..\linear.o'
linear_model_matlab.o '..\blas\daxpy.o' '..\blas\ddot.o'
'..\blas\dnrm2.o' '..\blas\dscal.o'
mex -DMX_API_VER=0x07030000 libsvmread.c
mex -DMX_API_VER=0x07030000 libsvmwrite.c

Now compilation works for me.
Mind, I can't test whether the functions perform now as expected,
being no expert on the topic, so you have to do this yourself!

benjamin


reply via email to

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