Can you run Mex file as part of a compiled Matlab code in Matlab runtime?
6 ビュー (過去 30 日間)
古いコメントを表示
I want to create a Matlab executable which uses a Mex File (savepng from file exchange). Compiling of the entire programm works, but during the executaion of the executable causes the Mex file an error ("Sorry, auto-compilation failed."). The entire programm works fine when not used as executable.
0 件のコメント
回答 (2 件)
Madhura Suresh
2016 年 11 月 15 日
Does the mex file work on your machine before compiling it into an exe?
0 件のコメント
Walter Roberson
2016 年 11 月 15 日
If you look at the source for savepng.m you will see that it just does
mex savepng.cpp -DMINIZ_NO_TIME -DMINIZ_NO_ARCHIVE_APIS -DMINIZ_NO_ARCHIVE_WRITING_APIS -DMINIZ_NO_ZLIB_APIS -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES
You would execute that line yourself, before-hand, and include the savepng.mex* file in your project.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で MATLAB Compiler SDK についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!