How can I compile a standalone version, which supports graphic objects without a full desktop?

1 Ansicht (letzte 30 Tage)
I have created as follows a standalone version of a m-file:
mcc -m -v -R '-nodisplay,-nojvm,-singleCompThread' calibration.m
This standalone version was subsequently submitted as a job on a HPC (Linux-Environment).
The following error message was written to error.dat:
Error using figure
This functionality is no longer supported under the -nojvm startup option. For more information, see "Changes to -nojvm Startup Option" in the MATLAB Release Notes. To view the release note in your system browser, run web('<http://www.mathworks.com/help/matlab/release-notes.html#btsurqv-6'>, '-browser').
So I've tried to create a standalone version without nojvm (like: mcc -m -v -R '-nodisplay,-singleCompThread' calibration.m), but the following error message appeared (after executing the job):
Can't load '/usr/site/hpc/x86_64/generic/matlab/R2017a/bin/glnxa64/libmwstrfun.so': /usr/site/hpc/x86_64/generic/matlab/R2017a/bin/glnxa64/libmwstrfun.so: failed to map segment from shared object: Cannot allocate memory
/usr/sge/leo3e/spool/n001/job_scripts/602568: line 8: 4522 Aborted (core dumped) ./calibration
Has anyone an idea how to compile a standalone version, which also supports the figure commands and creates figures?

Antworten (1)

Glazio
Glazio am 9 Okt. 2017
Bearbeitet: Glazio am 9 Okt. 2017
The problem was related to the required memory per process.
This memory can be explicitly increased and specified with the SGE's resource parameter h_vmem (within a job-script).

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by