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

1 次查看(过去 30 天)
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?

回答(1 个)

Glazio
Glazio 2017-10-9
编辑:Glazio 2017-10-9
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).

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by