필터 지우기
필터 지우기

Error creating an executable

조회 수: 4 (최근 30일)
Victor Ruiz Escorihuela
Victor Ruiz Escorihuela 2023년 6월 9일
댓글: Victor Ruiz Escorihuela 2023년 6월 14일
If I have an application made from the matlab appdesigner that depends on external libraries (.dll), how can I make that .mlapp application run as an executable on a computer that does not have matlab?
Si lo hago usando "Share" me aparece el siguiente error.

채택된 답변

Govind KM
Govind KM 2023년 6월 9일
Hi Victor,
To run a MATLAB App created with App Designer on a computer that does not have MATLAB installed, you can compile the App into a standalone executable using MATLAB Compiler. The MATLAB Compiler allows you to package your MATLAB code, including any dependencies such as external libraries, into a standalone executable file that can be run on computers without MATLAB.
Here are the general steps to do this:
  • Open MATLAB and navigate to the directory where your MATLAB App files are located.
  • Use the MATLAB Compiler App or the command-line interface (MATLAB Compiler Command) to compile your MATLAB App. You will need to specify the main entry point file of your App, which is typically the .mlapp file.
  • During the compilation process, MATLAB Compiler will analyze the dependencies of your App and package them along with your code. This includes any external libraries (.dll) that your App depends on.
  • Once the compilation is complete, you will obtain an executable file (.exe) that you can distribute and run on computers without MATLAB. This executable will include a runtime environment that allows the App to run independently.
  • Transfer the generated executable file to the target computer that does not have MATLAB installed and simply run it to launch your App. You can also use MATLAB Runtime for this.
You can refer to the MATLAB Compiler documentation for detailed instructions and examples on using the MATLAB Compiler to compile your MATLAB App into a standalone executable.
  댓글 수: 3
Govind KM
Govind KM 2023년 6월 13일
There seems to be some issue with the code in the LibraryTiePieMatlab.m script. Could you share that script? Also check if the arguments passed to the struct function are valid, and that proper syntax is followed before the line causing the error(line 977).
Victor Ruiz Escorihuela
Victor Ruiz Escorihuela 2023년 6월 14일
I think I have solved the error that error thank you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deploy to C++ Applications Using mwArray API (C++03)에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by