简体   繁体   English

在Windows上以八度方式安装liblinear

[英]installing liblinear in octave on windows

i am trying to install liblinear 1.91 in octave 3.6.2 on windows 7. octave is a clean mingw install without extra packages except for libsvm 3.12. 我试图在Windows 7上的八度音阶3.6.2中安装liblinear 1.91。八度音程是一个干净的mingw安装,没有额外的包,除了libsvm 3.12。 please note libsvm installed without a problem by running make.m from octave. 请注意通过从八度运行make.m安装libsvm没有问题。 however when i try the same for liblinear i get: 然而,当我为liblinear尝试相同时,我得到:

../blas.o: In function dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of dscal_' ../blas.o:C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: first defined here ../blas.o: In function dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of dscal_' ../blas.o:C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: first defined here ../blas.o: In function dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of dscal_' ../blas.o:C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:35: multiple definition of TRON::info(char const*, ...)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:35: first defined here ...o: In function TRON': C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: multiple definition of TRON::TRON(function const*, double, int)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: first defined here ...o: In function ~TRON': C:\\O ../blas.o:在函数dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of dscal_'.. dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of \\ liblinear-1.91 \\ matlab /../ blas / dscal.c:4:首先在这里定义../blas.o:在函数dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of dscal_'的dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of '../blas.o:C:\\Octave\\liblinear-1.91\\matlab /../blas/dscal.c:4:首先在这里定义../blas.o:In function dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of dscal_'.. dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of 。 ./blas/dscal.c:4:首先在这里定义... o:C:\\ Octave \\ liblinear-1.91 \\ matlab /../ tron.cpp:35: TRON::info(char const*, ...)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:35: first defined here ...o: In function多重定义TRON::info(char const*, ...)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:35: first defined here ...o: In function TRON'中:C:\\ Octave \\ liblinear- 1.91 \\ matlab /../ tron.cpp:44: TRON::TRON(function const*, double, int)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: first defined here ...o: In function多重定义TRON::TRON(function const*, double, int)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: first defined here ...o: In function ~TRON'中:C:\\ O. ctave\\liblinear-1.91\\matlab/../tron.cpp:54: multiple definition of TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:161: multiple definition of TRON::trcg(double, double*, double*, doubl e*)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:161: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:57: multiple definition of TRON::tron(double*)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:57: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:224: multiple definition of TRON::norm_inf(int, double*)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:224: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:234: multiple definition of TRON::set_print_string(void (*)(char const *))' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:234: first defined here ...o: In function TRON': C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: multiple definition of TRON::TRON(function const*, double, int)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: first defined here ...o: In function ctave \\ liblinear-1.91 \\ matlab /../ tron.cpp:54: TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:161: multiple definition of多重定义TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:161: multiple definition of TRON :: trcg的TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:161: multiple definition of (double,double *,double *,doubl e * )'... o:C:\\ Octave \\ liblinear-1.91 \\ matlab /../ tron.cpp:161:首先在这里定义... o:C:\\ Octave \\ liblinear-1.91 \\ matlab /../ tron .cpp:57: TRON::tron(double*)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:57: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:224: multiple definition of多重定义TRON::tron(double*)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:57: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:224: multiple definition of TRON的TRON::tron(double*)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:57: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:224: multiple definition of :: norm_inf(int,double *)'... o:C:\\ Octave \\ liblinear-1.91 \\ matlab / ../tron.cpp:224:首先在这里定义... o:C:\\ Octave \\ liblinear-1.91 \\ matlab /../ tron.cpp:234: TRON::set_print_string(void (*)(char const *))' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:234: first defined here ...o: In function多重定义TRON::set_print_string(void (*)(char const *))' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:234: first defined here ...o: In function TRON'中:C:\\ Octave \\ liblinear -1.91 \\ matlab /../ tron.cpp:44: TRON::TRON(function const*, double, int)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: first defined here ...o: In function多重定义TRON::TRON(function const*, double, int)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: first defined here ...o: In function TRON::TRON(function const*, double, int)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: first defined here ...o: In function ~TRON': C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: multiple definition of TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here train.o: In function do_cross_validation': C:\\Octave\\liblinear-1.91\\matlab/train.c:86: undefined reference to cross_validation' train.o: In function parse_command_line': C:\\Octave\\liblinear-1.91\\matlab/train.c:212: undefined reference to set_print_string_function' train.o: In function mexFunction': C:\\Octave\\liblinear-1.91\\matlab/train.c:374: undefined reference to check_parameter' C:\\Octave\\liblinear-1.91\\matlab/train.c:380: undefined reference to destroy_param' C:\\Octave\\liblinear-1.91\\matlab/train.c:368: undefined reference to destroy_param' C:\\Octave\\liblinear-1.91\\matlab/train.c:357: undefined reference to destroy_param' C:\\Octave\\liblinear-1.91\\matlab/train.c:405: undefined reference to destroy_param' C:\\Octave\\liblinear-1.91\\matlab/train.c:399: undefined reference to TRON::TRON(function const*, double, int)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: first defined here ...o: In function ~TRON' :C:\\ Octave \\ liblinear-1.91 \\ matlab /../ tron.cpp:54: TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here train.o: In function多重定义TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here train.o: In function 〜TRON TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here train.o: In function do_cross_validation'中:C:\\ Octave \\ liblinear-1.91 \\ matlab / train.c:86:未定义引用cross_validation' train.o: In function parse_command_line'中: C:\\ Octave \\ liblinear-1.91 \\ matlab / train.c:212:对set_print_string_function' train.o: In function未定义引用set_print_string_function' train.o: In function mexFunction'中:C:\\ Octave \\ liblinear-1.91 \\ matlab / train.c:374:undefined reference to check_parameter' C:\\Octave\\liblinear-1.91\\matlab/train.c:380: undefined reference to destroy_param'C:\\ Octave \\ liblinear-1.91 \\ matlab / train.c:368:undefined reference to destroy_param' C:\\Octave\\liblinear-1.91\\matlab/train.c:357: undefined reference to destroy_param'C:\\ Octave \\ liblinear-1.91 \\ matlab / train.c:405:undefined reference to destroy_param' C:\\Octave\\liblinear-1.91\\matlab/train.c:399: undefined reference to destroy_param' C:\\Octave\\liblinear-1.91\\matlab/train.c:399: undefined reference to train' C:\\Octave\\liblinear-1.91\\matlab/train.c:403: undefined reference to free_and_destroy_model' ...o:tron.cpp:(.text+0x166): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x188): undefined reference to ddot_' ...o:tron.cpp:(.text+0x1da): undefined reference to ddot_' ...o:tron.cpp:(.text+0x209): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x220): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x261): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x279): undefined reference to ddot_' ...o:tron.cpp:(.text+0x2c5): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x2dd): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x368): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x387): undefined reference to ddot_' ...o:tron.cpp:(.text+0x3aa): undefined reference to ddot_' ...o:tron.cpp:(.text+0x3c6): undefined reference to ddot_' ...o:tron.cpp:(.text+0x440): undefined reference destroy_param' C:\\Octave\\liblinear-1.91\\matlab/train.c:399: undefined reference to训练'C:\\ Octave \\ liblinear-1.91 \\ matlab / train.c:403:未定义引用free_and_destroy_model' ...o:tron.cpp:(.text+0x166): undefined reference to dnrm2_'... o:tron.cpp :(。text + 0x188):未定义引用ddot_' ...o:tron.cpp:(.text+0x1da): undefined reference to ddot_'... o:tron.cpp :(。text + 0x209):未定义引用daxpy_' ...o:tron.cpp:(.text+0x220): undefined reference to dnrm2_ '... o:tron.cpp :(。text + 0x261):未定义引用daxpy_' ...o:tron.cpp:(.text+0x279): undefined reference to ddot_'... o:tron。 cpp :(。text + 0x2c5):未定义引用daxpy_' ...o:tron.cpp:(.text+0x2dd): undefined reference to dnrm2_'... o:tron.cpp :(。text + 0x368) :未定义引用daxpy_' ...o:tron.cpp:(.text+0x387): undefined reference to ddot_'... o:tron.cpp :(。text + 0x3aa):未定义引用ddot_' ...o:tron.cpp:(.text+0x3c6): undefined reference to ddot_'... o:tron.cpp :(。text + 0x440):undefined reference to daxpy_' ...o:tron.cpp:(.text+0x46e): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x5df): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x754): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x78f): undefined reference to ddot_' ...o:tron.cpp:(.text+0x7ca): undefined reference to ddot_' ...o:tron.cpp:(.text+0x828): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0xaf2): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x166): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x188): undefined reference to ddot_' ...o:tron.cpp:(.text+0x1da): undefined reference to ddot_' ...o:tron.cpp:(.text+0x209): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x220): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x261): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x279): undefined reference to ddot_' ...o:tron.cpp:(.text+0x2c5): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x2dd): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x368): undefined reference to to daxpy_' ...o:tron.cpp:(.text+0x46e): undefined reference to daxpy_'... o:tron.cpp :(。text + 0x5df):未定义引用dnrm2_' ...o:tron.cpp:(.text+0x754): undefined reference to daxpy_'... o:tron.cpp :(。text + 0x78f):未定义引用ddot_' ...o:tron.cpp:(.text+0x7ca): undefined reference to ddot_'... o:tron.cpp :(。text + 0x828):未定义引用dnrm2_' ...o:tron.cpp:(.text+0xaf2): undefined reference to dnrm2_' ... o:tron.cpp :(。text + 0x166):未定义引用dnrm2_' ...o:tron.cpp:(.text+0x188): undefined reference to ddot_'... o:tron.cpp :(。text + 0x1da):未定义引用ddot_' ...o:tron.cpp:(.text+0x209): undefined reference to daxpy_'... o:tron.cpp :(。text + 0x220):未定义引用dnrm2_' ...o:tron.cpp:(.text+0x261): undefined reference to daxpy_'... o:tron.cpp :(。text + 0x279):未定义引用ddot_' ...o:tron.cpp:(.text+0x2c5): undefined reference to daxpy_'... o:tron.cpp :(。text + 0x2dd):未定义引用dnrm2_' ...o:tron.cpp:(.text+0x368): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x368): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x387): undefined reference to ddot_' ...o:tron.cpp:(.text+0x3aa): undefined reference to ddot_' ...o:tron.cpp:(.text+0x3c6): undefined reference to ddot_' ...o:tron.cpp:(.text+0x440): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x46e): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x5df): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x754): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x78f): undefined reference to ddot_' ...o:tron.cpp:(.text+0x7ca): undefined reference to ddot_' ...o:tron.cpp:(.text+0x828): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0xaf2): undefined reference to dnrm2_' collect2: ld returned 1 exit status warning: unable to find mkoctfile in expected location: C:\\Octave\\Octave3.6.2_gcc4.6.2\\bin\\mkoctfile-3.6.2' warning: mkoctfile exited with failure status ../blas.o: In function dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of dscal_' ../blas.o:C:\\Oc dnrm2_' ...o:tron.cpp:(.text+0x368): undefined reference to daxpy_'... o:tron.cpp :(。text + 0x387)的引用引用:未定义引用ddot_' ...o:tron.cpp:(.text+0x3aa): undefined reference to ddot_'... o:tron.cpp :(。text + 0x3c6):未定义引用ddot_' ...o:tron.cpp:(.text+0x440): undefined reference to daxpy_'... o:tron.cpp :(。 text + 0x46e):未定义引用daxpy_' ...o:tron.cpp:(.text+0x5df): undefined reference to dnrm2_'... o:tron.cpp :(。text + 0x754):undefined reference to daxpy_' ...o:tron.cpp:(.text+0x78f): undefined reference to ddot_'... o:tron.cpp :(。text + 0x7ca):未定义引用ddot_' ...o:tron.cpp:(.text+0x828): undefined reference to dnrm2_'... o:tron.cpp :(。text + 0xaf2):未定义引用dnrm2_' collect2: ld returned 1 exit status warning: unable to find mkoctfile in expected location: C:\\ Octave \\ Octave3.6.2_gcc4.6.2 \\ bin \\ mkoctfile-3.6.2'警告:mkoctfile以失败状态退出../blas.o:在函数dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of dscal_'.. dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of tave\\liblinear-1.91\\matlab/../blas/dscal.c:4: first defined here ../blas.o: In function dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of dscal_' ../blas.o:C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: first defined here ../blas.o: In function dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of dscal_' ../blas.o:C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:35: multiple definition of TRON::info(char const*, ...)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:35: first defined here ...o: In function TRON': C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: multiple definition of TRON::TRON(function const*, double, int)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: first defined here ...o: In function ~TRON': C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: multiple definition of TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:161: multiple definition of tave \\ liblinear-1.91 \\ matlab /../ blas / dscal.c:4:首先在这里定义../blas.o:在函数dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of dscal_'../blas.o:C:\\Octave\\liblinear-1.91\\matlab /../blas/dscal.c:4的dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of :首先在这里定义../blas.o:在函数dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of dscal_'.. dscal_': C:\\Octave\\liblinear-1.91\\matlab/../blas/dscal.c:4: multiple definition of ../blas/dscal.c:4:首先在这里定义... o:C:\\ Octave \\ liblinear-1.91 \\ matlab /../ tron.cpp:35: TRON::info(char const*, ...)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:35: first defined here ...o: In function多重定义TRON::info(char const*, ...)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:35: first defined here ...o: In function TRON'中:C:\\ Octave \\ liblinear -1.91 \\ matlab /../ tron.cpp:44: TRON::TRON(function const*, double, int)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: first defined here ...o: In function多重定义TRON::TRON(function const*, double, int)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: first defined here ...o: In function ~TRON':C:\\ Octave \\ liblinear-1.91 \\ matlab /../ tron.cpp:54: TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:161: multiple definition of多重定义TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:161: multiple definition of TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:161: multiple definition of TRON::trcg(double, double*, double*, doubl e*)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:161: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:57: multiple definition of TRON::tron(double*)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:57: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:224: multiple definition of TRON::norm_inf(int, double*)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:224: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:234: multiple definition of TRON::set_print_string(void (*)(char const *))' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:234: first defined here ...o: In function TRON': C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: multiple definition of TRON::TRON(function const*, double, int)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: first defined here ...o: In function ~T TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:161: multiple definition of TRON :: trcg的TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:161: multiple definition of (double,double *,double *,doubl e *)'... o:C:\\ Octave \\ liblinear-1.91 \\ matlab /../ tron.cpp:161:首先在这里定义... o:C:\\ Octave \\ liblinear-1.91 \\ matlab /../ tron.cpp:57: TRON::tron(double*)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:57: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:224: multiple definition of多重定义TRON::tron(double*)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:57: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:224: multiple definition of TRON的TRON::tron(double*)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:57: first defined here ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:224: multiple definition of :: norm_inf(int,double *)'... o:C:\\ Octave \\ liblinear-1.91 \\ matlab /../tron.cpp:224:首先在这里定义... o:C:\\ Octave \\ liblinear-1.91 \\ matlab /../ tron.cpp:234: TRON::set_print_string(void (*)(char const *))' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:234: first defined here ...o: In function多重定义TRON::set_print_string(void (*)(char const *))' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:234: first defined here ...o: In function TRON'中:C:\\ Octave \\ liblinear-1.91 \\ matlab /../ tron.cpp:44: TRON::TRON(function const*, double, int)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: first defined here ...o: In function多重定义TRON::TRON(function const*, double, int)' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:44: first defined here ...o: In function ~T中 RON': C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: multiple definition of TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here predict.o: In function do_predict': C:\\Octave\\liblinear-1.91\\matlab/predict.c:71: undefined reference to get_nr_class' C:\\Octave\\liblinear-1.91\\matlab/predict.c:81: undefined reference to get_nr_feature' C:\\Octave\\liblinear-1.91\\matlab/predict.c:147: undefined reference to predict_probability' C:\\Octave\\liblinear-1.91\\matlab/predict.c:155: undefined reference to predict_values' predict.o: In function mexFunction': C:\\Octave\\liblinear-1.91\\matlab/predict.c:288: undefined reference to free_and_destroy_model' C:\\Octave\\liblinear-1.91\\matlab/predict.c:312: undefined reference to free_and_destroy_model' C:\\Octave\\liblinear-1.91\\matlab/predict.c:295: undefined reference to check_probability_model' ...o:tron.cpp:(.text+0x166): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x188): undefined reference to ddot_' ...o:tron.cpp:(. RON':C:\\ Octave \\ liblinear-1.91 \\ matlab /../ tron.cpp:54: TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here predict.o: In function多重定义TRON::~TRON()' ...o:C:\\Octave\\liblinear-1.91\\matlab/../tron.cpp:54: first defined here predict.o: In function do_predict'中:C:\\ Octave \\ liblinear-1.91 \\ matlab / predict.c:71:对get_nr_class' C:\\Octave\\liblinear-1.91\\matlab/predict.c:81: undefined reference to未定义引用get_nr_class' C:\\Octave\\liblinear-1.91\\matlab/predict.c:81: undefined reference to get_nr_feature的get_nr_class' C:\\Octave\\liblinear-1.91\\matlab/predict.c:81: undefined reference to 'C:\\ Octave \\ liblinear-1.91 \\ matlab / predict.c:147:对predict_probability' C:\\Octave\\liblinear-1.91\\matlab/predict.c:155: undefined reference to未定义引用predict_probability' C:\\Octave\\liblinear-1.91\\matlab/predict.c:155: undefined reference to predict_values'predict.o的predict_probability' C:\\Octave\\liblinear-1.91\\matlab/predict.c:155: undefined reference to :在函数mexFunction': C:\\Octave\\liblinear-1.91\\matlab/predict.c:288: undefined reference to free_and_destroy_model的mexFunction': C:\\Octave\\liblinear-1.91\\matlab/predict.c:288: undefined reference to 'C:\\ Octave \\ liblinear-1.91 \\ matlab /predict.c:312:对free_and_destroy_model' C:\\Octave\\liblinear-1.91\\matlab/predict.c:295: undefined reference to未定义引用free_and_destroy_model' C:\\Octave\\liblinear-1.91\\matlab/predict.c:295: undefined reference to check_probability_model的free_and_destroy_model' C:\\Octave\\liblinear-1.91\\matlab/predict.c:295: undefined reference to '... o:tron.cpp :(。text + 0x166):未定义引用dnrm2_' ...o:tron.cpp:(.text+0x188): undefined reference to ddot_'... o:tron.cpp :(。 text+0x1da): undefined reference to ddot_' ...o:tron.cpp:(.text+0x209): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x220): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x261): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x279): undefined reference to ddot_' ...o:tron.cpp:(.text+0x2c5): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x2dd): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x368): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x387): undefined reference to ddot_' ...o:tron.cpp:(.text+0x3aa): undefined reference to ddot_' ...o:tron.cpp:(.text+0x3c6): undefined reference to ddot_' ...o:tron.cpp:(.text+0x440): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x46e): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x5df): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x754): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x78f): undefined reference to ddot_' ...o:tron.cpp:(.text+0x7ca): undefined reference to ddot_' ...o:tron.cpp:(.text+0x828): undefined reference to text + 0x1da):未定义引用ddot_' ...o:tron.cpp:(.text+0x209): undefined reference to daxpy_'... o:tron.cpp :(。text + 0x220):undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x261): undefined reference to daxpy_'... o:tron.cpp :(。text + 0x279):未定义引用ddot_' ...o:tron.cpp:(.text+0x2c5): undefined reference to daxpy_'... o:tron.cpp :(。text + 0x2dd):未定义引用dnrm2_' ...o:tron.cpp:(.text+0x368): undefined reference to daxpy_'... o:tron.cpp :(。text + 0x387):未定义引用ddot_' ...o:tron.cpp:(.text+0x3aa): undefined reference to ddot_'。 ..o:tron.cpp :(。text + 0x3c6):未定义引用ddot_' ...o:tron.cpp:(.text+0x440): undefined reference to daxpy_'... o:tron.cpp: (.text + 0x46e):对daxpy_' ...o:tron.cpp:(.text+0x5df): undefined reference to未定义引用daxpy_' ...o:tron.cpp:(.text+0x5df): undefined reference to dnrm2_'... o:tron.cpp :(。text + 0x754):undefined引用daxpy_' ...o:tron.cpp:(.text+0x78f): undefined reference to ddot_'... o:tron.cpp :(。text + 0x7ca):未定义引用ddot_' ...o:tron.cpp:(.text+0x828): undefined reference to ddot_' ...o:tron.cpp:(.text+0x828): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0xaf2): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x166): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x188): undefined reference to ddot_' ...o:tron.cpp:(.text+0x1da): undefined reference to ddot_' ...o:tron.cpp:(.text+0x209): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x220): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x261): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x279): undefined reference to ddot_' ...o:tron.cpp:(.text+0x2c5): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x2dd): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x368): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x387): undefined reference to ddot_' ...o:tron.cpp:(.text+0x3aa): undefined reference to ddot_' ...o:tron.cpp:(.text+0x3c6): undefined reference to ddot_' ...o:tron.cpp:(.text+0x440): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x46e): undefined reference to ddot_' ...o:tron.cpp:(.text+0x828): undefined reference to dnrm2_'... o:tron.cpp :(。text + 0xaf2):未定义引用dnrm2_' ...o:tron.cpp:(.text+0x166): undefined reference to dnrm2_'... o:tron.cpp :(。text + 0x188):未定义引用ddot_' ...o:tron.cpp:(.text+0x1da): undefined reference to ddot_'... o:tron.cpp :(。text + 0x209):未定义引用daxpy_' ...o:tron.cpp:(.text+0x220): undefined reference to dnrm2_'... o:tron .cpp :(。text + 0x261):未定义引用daxpy_' ...o:tron.cpp:(.text+0x279): undefined reference to ddot_'... o:tron.cpp :(。text + 0x2c5 ):未定义引用daxpy_' ...o:tron.cpp:(.text+0x2dd): undefined reference to dnrm2_'... o:tron.cpp :(。text + 0x368):未定义引用daxpy_' ...o:tron.cpp:(.text+0x387): undefined reference to ddot_'... o:tron.cpp :(。text + 0x3aa):未定义引用ddot_' ...o:tron.cpp:(.text+0x3c6): undefined reference to ddot_'... o:tron.cpp :(。text + 0x440):未定义引用daxpy_' ...o:tron.cpp:(.text+0x46e): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x46e): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x5df): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0x754): undefined reference to daxpy_' ...o:tron.cpp:(.text+0x78f): undefined reference to ddot_' ...o:tron.cpp:(.text+0x7ca): undefined reference to ddot_' ...o:tron.cpp:(.text+0x828): undefined reference to dnrm2_' ...o:tron.cpp:(.text+0xaf2): undefined reference to dnrm2_' collect2: ld returned 1 exit status warning: unable to find mkoctfile in expected location: `C:\\Octave\\Octave3.6.2_gcc4.6.2\\bin\\mkoctfile-3.6.2' warning: mkoctfile exited with failure status daxpy_' ...o:tron.cpp:(.text+0x46e): undefined reference to daxpy_'... o:tron.cpp :(。text + 0x5df):未定义引用dnrm2_' ...o:tron.cpp:(.text+0x754): undefined reference to daxpy_'... o: tron.cpp :(。text + 0x78f):未定义引用ddot_' ...o:tron.cpp:(.text+0x7ca): undefined reference to ddot_'... o:tron.cpp :(。text + 0x828):未定义引用dnrm2_' ...o:tron.cpp:(.text+0xaf2): undefined reference to dnrm2_'colle2:ld返回1退出状态警告:无法在预期位置找到mkoctfile:`C:\\ Octave \\ Octave3.6.2_gcc4.6.2 \\ bin \\ mkoctfile-3.6.2'警告:mkoctfile退出失败状态

please help. 请帮忙。

starting from the liblinear-1.91/matlab folder, this compiles for me: 从liblinear-1.91 / matlab文件夹开始,这为我编译:

cd ..
mex   -c linear.cpp
mex   -c tron.cpp
cd blas
mex   -c *.c
cd ../matlab
mex libsvmread.c
mex libsvmwrite.c
mex train.c linear_model_matlab.c ../linear.o ../tron.o ../blas/*.o
mex predict.c linear_model_matlab.c ../linear.o ../tron.o ../blas/*.o

I am using octave 3.6.2 with Visual Studio 2010. 我在Visual Studio 2010中使用octave 3.6.2。

I first followed the instructions here to get libsvm working: http://flyingpies.wordpress.com/2012/11/20/getting-libsvm-to-work-with-octave-on-windows/ 我首先按照这里的说明让libsvm工作: http//flyingpies.wordpress.com/2012/11/20/getting-libsvm-to-work-with-octave-on-windows/

To get liblinear compiled, run octave with visual studio environment variables (see link above), cd to the liblinear directory, and run these commands: 要获得liblinear编译,请使用visual studio环境变量运行octave(请参阅上面的链接),cd到liblinear目录,然后运行以下命令:

mex -c 'linear.cpp' 
mex -c 'tron.cpp' 
cd blas
mex -c 'daxpy.c' 
mex -c 'ddot.c' 
mex -c 'dnrm2.c' 
mex -c 'dscal.c'
cd ..\matlab 
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 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM