How to install SPAMS toolbox in Matlab 2014b under windows 8.1

馋奶兔 提交于 2019-12-03 16:53:50
Will Yongxin Yang

Hmm. Compiling this toolbox is a bit tricky.

Here is how I do it in Windows 7 + MATLAB 2013a. Hope it works for you.

(I don't have the issue of unzip)

First, you want to make sure that 'mex' works properly, I have compiled some smaller packages and they worked in general.

Second, change the line

compiler='gcc';

to

compiler='mex';

Third, you can find a lot of lines look like

-I./linalg/ -I./decomp/ -I./prox/ -I./spams/dictLearn/ dictLearn/mex/mexArchetypalAnalysis.cpp

Here 'I./lib_name/' is Linux style path, and you need to change it into something that Windows can understand.

Here is an example:

-I./linalg/       --->       -IC:\Users\XXX\Downloads\SPAMS\linalg

There are totally six pieces that you need to change as following,

  1. -I./linalg/
  2. -I./decomp/
  3. -I./prox/
  4. -I./dictLearn/
  5. -I./dags/
  6. -I./image/

After replacing these strings, just run compile.m, then it should work.

LAKSHMAN KV

Select 2.5 version the SPAMS software you are running for Windows version. Set the compiler to VS in compile.m and execute the code. This generates the required files. Finally run start_spams.m, which in turn creates the source folders. Now you can run the respective code.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!