http://blog.csdn.net/maodou00/article/details/5878009
一定先看readme文件!!!比什么教程强多了!
将libvsm-mat-2.89-3拷贝到toobox中,然后set path
然后命令窗口输入 :
>> mbuild -setup
Please choose your compiler for building standalone MATLAB applications:
Would you like mbuild to locate installed compilers [y]/n? n %我的不能自动搜索到vc,所以选择n然后进行手动设置
Select a compiler:
[1] Borland C++Builder version 6.0
[2] Borland C++Builder version 5.0
[3] Borland C++Builder version 4.0
[4] Borland C++Builder version 3.0
[5] Borland C/C++ version 5.02
[6] Borland C/C++ version 5.0
[7] Borland C/C++ (free command line tools) version 5.5
[8] Lcc C version 2.4
[9] Microsoft Visual C/C++ version 7.1
[10] Microsoft Visual C/C++ version 7.0
[11] Microsoft Visual C/C++ version 6.0
[0] None
Compiler: 11
The default location for Microsoft Visual C/C++ compilers is C:/Program Files/Microsoft Visual Studio,
but that directory does not exist on this machine.
Use C:/Program Files/Microsoft Visual Studio anyway [y]/n? n
Please enter the location of your compiler: [C:/Program Files/Microsoft Visual Studio] d:/VC6.0 green version
Please verify your choices:
Compiler: Microsoft Visual C/C++ 6.0
Location: d:/VC6.0 green version
Are these correct?([y]/n): y
Try to update options file: C:/Users/Administrator/Application Data/MathWorks/MATLAB/R14/compopts.bat
From template: D:/MATLAB7/BIN/WIN32/mbuildopts/msvc60compp.bat
Done . . .
--> "D:/MATLAB7/bin/win32/mwregsvr D:/MATLAB7/bin/win32/mwcomutil.dll"
DllRegisterServer in D:/MATLAB7/bin/win32/mwcomutil.dll succeeded
--> "D:/MATLAB7/bin/win32/mwregsvr D:/MATLAB7/bin/win32/mwcommgr.dll"
DllRegisterServer in D:/MATLAB7/bin/win32/mwcommgr.dll succeeded
>> mex -setup
Please choose your compiler for building external interface (MEX) files:
Would you like mex to locate installed compilers [y]/n? n
Select a compiler:
[1] Borland C++Builder version 6.0
[2] Borland C++Builder version 5.0
[3] Borland C++Builder version 4.0
[4] Borland C++Builder version 3.0
[5] Borland C/C++ version 5.02
[6] Borland C/C++ version 5.0
[7] Borland C/C++ (free command line tools) version 5.5
[8] Compaq Visual Fortran version 6.1
[9] Compaq Visual Fortran version 6.6
[10] Digital Visual Fortran version 6.0
[11] Digital Visual Fortran version 5.0
[12] Lcc C version 2.4
[13] Microsoft Visual C/C++ version 7.0
[14] Microsoft Visual C/C++ version 7.1
[15] Microsoft Visual C/C++ version 6.0
[16] Microsoft Visual C/C++ version 5.0
[17] WATCOM C/C++ version 11
[18] WATCOM C/C++ version 10.6
[0] None
Compiler: 15
The default location for Microsoft Visual C/C++ compilers is C:/Program Files/Microsoft Visual Studio,
but that directory does not exist on this machine.
Use C:/Program Files/Microsoft Visual Studio anyway [y]/n? n
Please enter the location of your compiler: [C:/Program Files/Microsoft Visual Studio] d:/VC6.0 green version
Please verify your choices:
Compiler: Microsoft Visual C/C++ 6.0
Location: d:/VC6.0 green version
Are these correct?([y]/n): y
Try to update options file: C:/Users/Administrator/Application Data/MathWorks/MATLAB/R14/mexopts.bat
From template: D:/MATLAB7/BIN/WIN32/mexopts/msvc60opts.bat
Done . . .
>> make
>>
至此表示libvsm安装成功,可以运用了。