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

조회 수: 3 (최근 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