matlab Compiler using mex file
이전 댓글 표시
Hi
I have created a application with a GUI and compile it with matlab Compiler. This application uses a mex file to execute some functions. This mex file uses some dll. I have put the mex file and all the dll in the same directory as the compile application. When I activate the functionality that use the mex file, nothing append. The application never crash but the application do nothing. Is it the right way to use mex with a compiled application.
Thank you
답변 (8개)
Siddharth Bhutiya
2018년 9월 21일
0 개 추천
If the application uses MEX, DLL or shared libraries, the dependency analyzer will not be able to detect it so you will have to add them as well as other dependencies that they might have, while compiling your application. Please refer to the link below for more details.
Marc
2018년 9월 21일
0 개 추천
댓글 수: 2
Siddharth Bhutiya
2018년 9월 21일
If you are compiling your MATLAB Application using mcc command you will have to use the -a option to add files and if you are using the GUI based MATLAB Compiler you can add them using the button with a plus sign under "Files required for your application to run". You can find more information about "mcc" command and other options in the documentation link below
Royi Avital
2020년 4월 28일
Can I add a whole folder? Will it be added to "path" on deployment?
What Im after is what's the folder structure model for compiled applications.
Is it a single folder with all files?
Marc
2018년 9월 24일
0 개 추천
댓글 수: 1
Bruno Luong
2018년 9월 24일
The compiler generates a standalone application that can run on any PC, even that that does not have MATLAB installed. It make a self-contained package with anything it needs together and does not call any function outside the package.
Marc
2018년 9월 24일
0 개 추천
댓글 수: 1
Walter Roberson
2018년 9월 24일
The exe produced and stored in the application folder efficiently unzips itself into a temporary directory that is not under the application folder. Think of the part that you install as being a self extracting archive.
Bruno Luong
2018년 9월 24일
0 개 추천
The packaging is put on CTF file or directly in EXE file then unpack the first time you run at the location where it think it's suitable, not necessary on your app folder.
Marc
2018년 9월 25일
0 개 추천
댓글 수: 1
Bruno Luong
2018년 9월 25일
Do you install the 2015 redistributable on the target computer?
카테고리
도움말 센터 및 File Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!