zoukankan      html  css  js  c++  java
  • libsvm matlab 上的安装

    简介windows上matlab安装还是有一些坑的

    首先 matlab2016a 安装一个 编译器 tdm64-gcc-4.9.2.exe
    然后更改 libsvm 中的matlab make.m 重点观察 $CFLAGS

    % This make.m is for MATLAB and OCTAVE under Windows, Mac, and Unix
    function make()
    try
    	% This part is for OCTAVE
    	if (exist ('OCTAVE_VERSION', 'builtin'))
    		mex libsvmread.c
    		mex libsvmwrite.c
    		mex -I.. svmtrain.c ../svm.cpp svm_model_matlab.c
    		mex -I.. svmpredict.c ../svm.cpp svm_model_matlab.c
    	% This part is for MATLAB
    	% Add -largeArrayDims on 64-bit machines of MATLAB
    	else
    		mex CFLAGS="$CFLAGS -std=c99" -largeArrayDims libsvmread.c
    		mex CFLAGS="$CFLAGS -std=c99" -largeArrayDims libsvmwrite.c
    		mex CFLAGS="$CFLAGS -std=c99" -I.. -largeArrayDims svmtrain.c ../svm.cpp svm_model_matlab.c
    		mex CFLAGS="$CFLAGS -std=c99" -I.. -largeArrayDims svmpredict.c ../svm.cpp svm_model_matlab.c
    	end
    catch err
    	fprintf('Error: %s failed (line %d)
    ', err.stack(1).file, err.stack(1).line);
    	disp(err.message);
    	fprintf('=> Please check README for detailed instructions.
    ');
    end
    

    参考链接

    https://blog.micblo.com/2019/04/22/Matlab-下-libsvm-的编译与坑/

    Hope is a good thing,maybe the best of things,and no good thing ever dies.----------- Andy Dufresne
  • 相关阅读:
    《Effective java》读书笔记
    Ansible playbook
    Ansible模块
    Ansible介绍与安装
    HDFS完全分布式集群搭建
    screen配置窗口显示
    K8s下部署Istio
    使用RKE快速部署k8s集群
    Oracle批量创建同义词
    k8s基本概念
  • 原文地址:https://www.cnblogs.com/eat-too-much/p/12017409.html
Copyright © 2011-2022 走看看