Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
graintracking
DCT
Commits
d8256f7d
Commit
d8256f7d
authored
8 years ago
by
Nicola Vigano
Browse files
Options
Downloads
Patches
Plain Diff
MCC: fixed matlab functions compilation
Signed-off-by:
Nicola Vigano
<
nicola.vigano@esrf.fr
>
parent
f83c482a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
zUtil_OAR/gtCompileFunctions.m
+2
-1
2 additions, 1 deletion
zUtil_OAR/gtCompileFunctions.m
zUtil_OAR/gtMcc.m
+3
-2
3 additions, 2 deletions
zUtil_OAR/gtMcc.m
with
5 additions
and
3 deletions
zUtil_OAR/gtCompileFunctions.m
+
2
−
1
View file @
d8256f7d
...
...
@@ -34,12 +34,13 @@ function gtCompileFunctions( force, mfiles, funcs_to_compile )
try
gtMcc(func_name, 'bin_path', comp_file_dir)
catch mexc
fprintf('Compilation of function "%s" failed!\n', func_name);
error_log(ii_f, :) = {func_name, mexc};
end
end
end
errors = find(~isempty(error_log(:, 1)));
errors = find(
cellfun(@(x)(
~isempty(
x)),
error_log(:, 1)));
for ii_e = 1:numel(errors)
func_name = error_log{errors(ii_e), 1};
mexc = error_log{errors(ii_e), 2};
...
...
This diff is collapsed.
Click to expand it.
zUtil_OAR/gtMcc.m
+
3
−
2
View file @
d8256f7d
...
...
@@ -18,7 +18,7 @@ function gtMcc(myfunctionname, varargin)
end
if
(
mcc_vers_major
<
4
||
(
mcc_vers_major
==
4
&&
mcc_vers_minor
<
8
))
gtE
rror
(
'gt
_m
cc:wrong_matlab_version'
,
...
e
rror
(
'gt
M
cc:wrong_matlab_version'
,
...
'Compilation using Matlab versions before R2008 is not supported'
)
end
...
...
@@ -82,7 +82,8 @@ function gtMcc(myfunctionname, varargin)
try
mcc
(
'-m'
,
myfunctionname
,
'-d'
,
conf
.
bin_path
,
'-a'
,
'workspaceGlobal.mat'
);
catch
mexc
if
(
gtCheckExceptionType
(
mexc
,
'mcc_err_checkout_failed'
))
if
(
gtCheckExceptionType
(
mexc
,
'mcc_err_checkout_failed'
)
...
||
gtCheckExceptionType
(
mexc
,
'MATLAB:req_failed_to_checkout_license'
))
disp
(
'Could not get a compiler license.'
);
disp
(
'Surf to http://compweb/public/nice/matlab_licence.php'
);
disp
(
'and call the person with the compiler license to see if you could use it!'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment