Skip to content
Snippets Groups Projects
Commit 39adaa67 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

Fixes for oar, with the new DCT structure

parent 2a6f0fd0
No related branches found
No related tags found
No related merge requests found
...@@ -138,7 +138,7 @@ out.odisp(app) ...@@ -138,7 +138,7 @@ out.odisp(app)
%split executable path %split executable path
[~, fname, ~] = fileparts(executable); [~, fname, ~] = fileparts(executable);
%split tempname path %split tempname path
[~, tempfilename] = fileparts(tempname); [~, tempfilename] = fileparts(tempname()); % This is actually a matlab function
%% Setting log dir and log file names %% Setting log dir and log file names
......
...@@ -23,9 +23,9 @@ function script_location = make_oar_matlab(pathdir, tmpdir, tmpname, oarpars) ...@@ -23,9 +23,9 @@ function script_location = make_oar_matlab(pathdir, tmpdir, tmpname, oarpars)
&& isfield(xmlConf.general, 'libraries') ... && isfield(xmlConf.general, 'libraries') ...
&& isfield(xmlConf.general.libraries, 'path')) && isfield(xmlConf.general.libraries, 'path'))
numPaths = numel(xmlConf.general.libraries.path); numPaths = numel(xmlConf.general.libraries.path);
externalLibs = cell(numPaths, 1); externalLibs = cell(1, numPaths);
for n = 1:numPaths for n = 1:numPaths
externalLibs{n} = [exportLibary xmlConf.astra.mex.path{n} '"']; externalLibs{n} = [exportLibary xmlConf.general.libraries.path{n} '"'];
end end
else else
externalLibs = {}; externalLibs = {};
...@@ -45,13 +45,13 @@ function script_location = make_oar_matlab(pathdir, tmpdir, tmpname, oarpars) ...@@ -45,13 +45,13 @@ function script_location = make_oar_matlab(pathdir, tmpdir, tmpname, oarpars)
['#OAR --name ' oarpars.name], ... ['#OAR --name ' oarpars.name], ...
'#OAR --project graintracking' }; '#OAR --project graintracking' };
libraries = [ externalLibs, ... libraries = [ externalLibs, ...
... % To make compiled functions visible
[exportPath fullfile(GT_MATLAB_HOME, 'bin', 'compiled', getenv('CPU')) '"'], ...
... % On linux systems it is surely required, but on windows the path could be different ... % On linux systems it is surely required, but on windows the path could be different
[exportLibary fullfile(matlabroot, 'runtime', 'glnxa64') '"'], ... [exportLibary fullfile(matlabroot, 'runtime', 'glnxa64') '"'], ...
[exportLibary fullfile(matlabroot, 'bin', 'glnxa64') '"'], ... [exportLibary fullfile(matlabroot, 'bin', 'glnxa64') '"'], ...
[exportLibary fullfile(matlabroot, 'sys', 'os', 'glnxa64') '"'], ... [exportLibary fullfile(matlabroot, 'sys', 'os', 'glnxa64') '"'], ...
[exportLibary fullfile(matlabroot, 'sys', 'java', 'jre', 'glnxa64', 'jre', 'lib', 'amd64', 'server') '"'] ]; [exportLibary fullfile(matlabroot, 'sys', 'java', 'jre', 'glnxa64', 'jre', 'lib', 'amd64', 'server') '"'], ...
... % To make compiled functions visible
[exportPath fullfile(GT_MATLAB_HOME, 'bin', 'compiled', getenv('HOSTTYPE')) '"'] ];
script_content = [ header, '', libraries, '', '"$@"' ]; script_content = [ header, '', libraries, '', '"$@"' ];
script_content(2, :) = {sprintf('\n')}; script_content(2, :) = {sprintf('\n')};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment