Could not find version 8.0 of the MCR. Attempting to load mclmcrrt8_0.dll
103 views (last 30 days)
Show older comments
I have packaged up a .m as an exe. When I try to run this on a new machine, I get the message above.
I have looked on your help site, and the general consensus is that you need to install the MCR, and add the MCR path to the PATH variable.
I have done this, and as proof, here is the output of the where commmand
S:\>where mclmcrrt8_0.dll
C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v80\runtime\win32\mclmcrrt8_0.dll
My path is
PATH=C:\APP\product\11.2.0\client_1;C:\APP\product\11.2.0\client_1\bin;C:\Window
s\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerS
hell\v1.0\;C:\Program Files (x86)\Enterprise Vault\EVClient\;C:\Program Files\To
rtoiseSVN\bin;C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v80\runtime\
win32
As you can see, the MCR is at the end.
If the where command can find the dll, then it must be on the path.
Do I have to register the dll or is something else wrong here.
NB I can also load the DLL via C++ and VBA using the Win32 RegisterDLL call.
2 Comments
Answers (1)
Image Analyst
on 30 Oct 2013
You installed the 32 bit version of MCR on the target computer. If you compiled the app with 64 bit MATLAB, then it won't work unless you install the 64 bit version of the MCR. Or you can install the 64 bit version of the MCR on the target computer instead of the 32 bit version, and keep your compiled app as a 64 bit app. Bottom line, the number of bits you compiled with must match the number of bits on MCR that you install on the target computer. You can have both the 32 bit and 64 bit MATLAB installed on your computer. They will coexist happily together (I do it all the time).
2 Comments
Image Analyst
on 31 Oct 2013
Well, I don't know - I guess you'll just have to call the Mathworks and ask them.
See Also
Categories
Find more on C Shared Library Integration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!