README.matlab (pfstools-2.1.0.tgz) | : | README.matlab (pfstools-2.2.0.tgz) | ||
---|---|---|---|---|
skipping to change at line 36 | skipping to change at line 36 | |||
Warning: You are using gcc version '5.4.0'. The version of gcc is not supporte d. The version currently supported with MEX is '4.7.x'. For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_rele ase. | Warning: You are using gcc version '5.4.0'. The version of gcc is not supporte d. The version currently supported with MEX is '4.7.x'. For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_rele ase. | |||
Sometimes those warning can be ignored, other times mex commands will fail with "Invalid MEX-file". In the latter case, you need to install the correct version of the compiler: | Sometimes those warning can be ignored, other times mex commands will fail with "Invalid MEX-file". In the latter case, you need to install the correct version of the compiler: | |||
sudo apt-get install g++-4.7 | sudo apt-get install g++-4.7 | |||
and then specify it when invoking cmake, for example: | and then specify it when invoking cmake, for example: | |||
cmake -DMEXGCC=/usr/bin/gcc-4.7 ../ | cmake -DMEXGCC=/usr/bin/gcc-4.7 ../ | |||
After successfully compiling the code, add the directory INSTALLDIR/share/pfstoo ls/pfstools_matlab to matlab path | After successfully compiling the code, add the directory /usr/local/share/pfstoo ls/pfstools_matlab to matlab path | |||
(File->Set Path). | (File->Set Path). | |||
For a quick test, type in Matlab command window: | ||||
pfsview( rand(100) ) | ||||
so view a matrix of random numbers. | ||||
Windows installation | Windows installation | |||
==================== | ==================== | |||
Note that matlab support on Windows has not been tested in 2.0.0. The notes belo w refer to 1.9.x version. | Note that matlab support on Windows has not been tested in 2.0.0. The notes belo w refer to 1.9.x version. | |||
Under Windows you have to invoke NMAKE file manually. From ordinary DOS | Under Windows you have to invoke NMAKE file manually. From ordinary DOS | |||
shell (not cygwin), cd to src/matlab, then execute: | shell (not cygwin), cd to src/matlab, then execute: | |||
(path to your matlab instalation)/matlab/R2006b/bin/mex.bat -setup | (path to your matlab instalation)/matlab/R2006b/bin/mex.bat -setup | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 7 lines changed or added |