Invalid MEX-file: The specified module could not be found. For PolygonClip.mexw64

1 回表示 (過去 30 日間)
Steven Deckers
Steven Deckers 2019 年 6 月 4 日
コメント済み: Walter Roberson 2019 年 6 月 6 日
I get this error message when trying to run a .m file that referes to PolygonClip.mexw64. The mex-file is present in the current path.
I tried 2012a and 2012b, I reinstalled both versions, I run Matlab as an administrator, I have replaced the mex file, ran dependency walker(I get identical dependencies compared with a pc on which the calculation runs), placed libmx.dll and libmex.dll in the current path,...
I have replaced the "appdata", 'bin', 'etc', 'extern', "resources' folders that are located in Program Files\Matlab\2012a\** from another computer on which the .m file and calculation run without any problems but to no avail.
We are currently out of ideas.
Thank you for the assistance.
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 6 月 6 日
http://www.dependencywalker.com/help/html/application_profiling.htm
https://github.com/lucasg/Dependencies

サインインしてコメントする。

回答 (1 件)

Jan
Jan 2019 年 6 月 4 日
編集済み: Jan 2019 年 6 月 4 日
The DependencyWalker sounds like the best option to solve the problem. Of course you get the same dependencies for the same file. But do these dependencies exist on both computers? I guess a redistributable is missing. Do you have the source codes? Then recompile the C file.
It needs e.g. the MSVCR100.DLL. This library belongs to the MSVC 2010 compiler. Compiled Mex files are not backward compatible in general with older Matlab versions. Compiling a C function in R2016b let my Matlab 2009a crash. So maybe the core of the problem is contained in "R2012a and R2012b". An upgrade of Matlab might solve the problem, or a recompilation on your machine.
  4 件のコメント
Jan
Jan 2019 年 6 月 6 日
編集済み: Jan 2019 年 6 月 6 日
@Steven: It is still not clear, if you have used the DependencyWalker correctly. Of course it displays the same dependencies on all computers, because this is a property of the MEX file. The question is, if these dependencies exist on the failing computer. If you mention, that you cannot find the MSVCR100.DLL, this seems to be the problem. Then simply install the MSVC 2010 redistributables:
You can install the MSVC 2010 compilers also.
Does this solve the problem?
It would be useful if you mention, where the failing mex file is coming from. This is more efficient then letting the readers search.
Steven Deckers
Steven Deckers 2019 年 6 月 6 日
Hi Jan,
Installing the MSVC 2010 redistributables solved the problem.
Thank you very much!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2012a

Community Treasure Hunt

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

Start Hunting!

Translated by