0001 function requirementFulfilled = checkRequirementOfElk()
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 requirementFulfilled = 1;
0026
0027
0028 versionComputer = computer;
0029 switch lower(versionComputer)
0030 case 'glnxa64'
0031 disp('You are using 64bit Linux: elk-library was developed on that system.');
0032 otherwise
0033 warning('elk:setup', ...
0034 ['You are using ' versionComputer ...
0035 ': elk library is NOT testet on this system. \n' ...
0036 'If you experience problems, use a 64bit linux system']);
0037 end
0038
0039
0040
0041 versionMATLAB = version('-release');
0042 switch lower(versionMATLAB)
0043 case '2012a'
0044 disp('You are using MATLAB R2012a: elk-library was developed with that version.');
0045 otherwise
0046 warning('elk:setup', ...
0047 ['You are using MATLAB ' versionMATLAB ...
0048 ': elk-library is not tested with that version. \n' ...
0049 'If you experience problems, use MATLAB R2011b.']);
0050 end
0051
0052
0053 [statusCompiler, versionCompiler] = system('gcc-4.4 --version');
0054 versionCompiler = versionCompiler(1:(strfind(versionCompiler, 'Copyright') - 2));
0055 versionCompiler = versionCompiler((find(versionCompiler == ' ', 1, 'last') + 1):end);
0056 if statusCompiler > 0
0057 disp('Please install gcc-4.4! (version 4.4.7 preferred)');
0058 disp('Note that MATLAB often requires an old gcc version.');
0059 requirementFulfilled = 0;
0060 end
0061 switch versionCompiler
0062 case '4.4.7'
0063 disp('You have installed gcc 4.4.7: elk-library was developed with that version.');
0064 disp('Note that MATLAB often requires an old gcc version.');
0065 otherwise
0066 warning('elk:setup', ...
0067 ['You are using gcc ' versionCompiler ...
0068 ': elk-library is not tested with that version. \n' ...
0069 'If you experience problems, install gcc 4.4.7.']);
0070 end
0071
0072
0073
0074
0075
0076
0077
0078
0079