Could not find version 8.0 of the MCR. Attempting to load mclmcrrt8_0.dll

103 views (last 30 days)
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
Hamed
Hamed on 12 Jun 2014
Edited: Hamed on 12 Jun 2014
Hi,
have a look here . Download your OS MCR and install it. I hope it can help you.If not, this error occur because of difference between builder MATLAB version and execution device. In the same version of MATLAB, you don't see this error.

Sign in to comment.

Answers (1)

Image Analyst
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
Mark
Mark on 31 Oct 2013
I do have both 32 and 64 bit versions installed on my machine. However, I used the one from C:\Program Files (x86)\MATLAB\R2012b to compile the exe. The exe works on another machine with a 32bit MCR, but this machine is 2008ServerR2. The machine it does not work on is a Win7 machine.
Image Analyst
Image Analyst on 31 Oct 2013
Well, I don't know - I guess you'll just have to call the Mathworks and ask them.

Sign in to comment.

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!