フィルターのクリア

Invalid MEX-file

43 ビュー (過去 30 日間)
xiyu quan
xiyu quan 2023 年 3 月 31 日
回答済み: Meet 2023 年 4 月 3 日
hello everyone, I have a question that my matlab code is packaged into Java code, when I try to test the packaging code(.jar)
error as: Invalid MEX-file 'C:\Users\quxiaole\AppData\Local\Temp\quxiaole\mcrCache9.0\PIDTun0\symbolic\mupadmex.mexw64'
thank you very much

回答 (1 件)

Meet
Meet 2023 年 4 月 3 日
MATLAB displays the error message 'Invalid MEX-file' if it cannot find all the .dll files referenced by a MEX file and due to which it cannot load the MEX file. To resolve this error, find the names of the dependent libraries, and determine if they are present on your system and on the system path. To find library dependencies:
  • On Windows systems, download the Dependency Walker utility from the website https://www.dependencywalker.com.
  • On Linux systems, use:ldd -d libname.so
  • On macOS systems, use:otool -L libname.dylib
Also, for .dll files that the MEX file linked against when it was built, the .dll files must be on the system path or in the same folder as the MEX file.
Please refer Invalid MEX File Errors - MATLAB & Simulink (mathworks.com) for more details on how to solve this error.
Hope this helps.

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by