How to compile standalone executables without using hardware accelerated graphics?
9 ビュー (過去 30 日間)
古いコメントを表示
I face low-level graphics errors in MATLAB r2017a. MATLAB is running on a compute cluster and there is nothing I can do about any graphic card drivers etc.
I need to compile software for deployment to my colleagues. So my workaround would be that I compile my MATLAB executables with mcc with the option of -softwareopengl. Just like I would start MATLAB, if I wouldn't want to use hardware accelerated graphics.
So, how can I compile programs not using hardware graphics acceleration? Does anybody know?
1 件のコメント
回答 (2 件)
Bob Blaine
2017 年 12 月 18 日
Hi chacoon,
Not sure if this helps you or not, but I think deployed apps actually run softwareopengl if you run the script that is also generated, rather than running the executable directly. If you don't wan't to run from the script, the key would be to set the following:
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH);<matlabinstall>/sys/opengl/lib/glnxa64
Hope that helps.
0 件のコメント
Jan
2017 年 11 月 30 日
Maybe just insert this line in the code:
opengl('software');
2 件のコメント
Jan
2017 年 12 月 1 日
Did you see this: https://www.mathworks.com/matlabcentral/answers/315477-how-can-i-compile-a-standalone-matlab-application-with-startup-options-e-g-nojvm ? Here OpenGL is mentioned also.
参考
カテゴリ
Help Center および File Exchange で Graphics Performance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!