octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #48771] [octave forge] (nan) Link against the


From: Rafael Laboissiere
Subject: [Octave-bug-tracker] [bug #48771] [octave forge] (nan) Link against the shared library libsvm
Date: Thu, 31 Aug 2017 02:26:57 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36

Follow-up Comment #7, bug #48771 (project octave):

It does not seem to be working very well.  This is what I did:


$ sudo aptitude install libsvm-dev
$ hg clone http://hg.code.sf.net/p/octave/NaN nan-hg
$ cd nan-hg
$ ./configure
$ mv svm.h svm.h-away


Moving the svm.h file away as I did above should have no effect on the
compilation, because the code should include the sytem-wide file
<libsvm/svm.h>.  However, I get the following when trying to build the
package:


$ make
[…]
mkoctfile -o "svm_model_octave.o" -c "svm_model_matlab.c"
svm_model_matlab.c:64:19: fatal error: svm.h: No such file or directory
   #include "svm.h"
                   ^
compilation terminated.
Makefile:121: recipe for target 'svm_model_octave.o' failed
make: *** [svm_model_octave.o] Error 1


The problem is fixed by adding:


#include "config.h"


to files svm_model_matlab.c, svmpredict_mex.cpp, and svmtrain_mex.cpp.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48771>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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