MCC 64-bit target doesn't recognise supplied MCR

1 view (last 30 days)
Howdy,
In brief: My deployed 64-bit application complains that the correct version of MCR is not available.
My application is compiled under 64-bit MatLab 2011b, using the (presumably) 64-bit VC 2010 compiler supplied by the Microsoft Windows SDK. Both development and target systems run Windows 7.
I've installed MCR on the target system using the provided installer:
C:\Program Files\MATLAB\R2011b\toolbox\compiler\deploy\win64\MCRInstaller.exe
(Note: The application did 'run' when the target machine also had an older 32-bit version of MCR, but crashed immediately. I uninstalled all versions of MCR, then reinstalled the 64-bit one.)
I also tried running the application on a 32-bit system, but Windows complained that it was not compatible. So it seems I have a 64-bit application that is looking for a 32-bit MCR....
The full message is:
Could not find version 7.16 of the MCR.
Attempting to load mclmcrrt7_16.dll.
Please install the correct version of the MCR.
Have I missed something important? Is anybody able to shed some light on this? =)
Cheers! -g-

Accepted Answer

Image Analyst
Image Analyst on 1 Feb 2012
I've run into this before. Check your PATH environment variable. Make sure that the path for the MCR has 716 in it. It seems that it installs with 715 instead of. I don't know why. The Mathworks helped me figure this out and now they know about the issue. When I fixed the wrong folder in the PATH environment variable, it ran fine and didn't complain. If you don't know how to edit the PATH environment variable, look it up on the web, or ask me if you still couldn't figure it out. It should be Start, right click computer, select properties, select Advanced System Settings, Click Environment Variables, click path, click Edit button.
  1 Comment
Geoff
Geoff on 1 Feb 2012
Thank you!
While this wasn't quite the problem, you put me on track. The path was out of date. I had kept my command shell open before installing the 64-bit MCR. Not knowing that the PATH was required, it didn't occur to me that opening a new shell would fix it.
Doing an 'echo %PATH%' pointed to the uninstalled 32-bit MCR. After checking the system environment variables via GUI I realised what had happened. I simply opened the shell again and the problem disappeared.
Now it's only complaining about errors that I can deal with! ;-)
Geoff

Sign in to comment.

More Answers (1)

Walter Roberson
Walter Roberson on 1 Feb 2012
You compiled on a 64 bit system, using a 64 bit compiler, but you want to run the program on a 32 bit Windows system?
If so, then you cannot do that.
With the version of MATLAB you are using, you can install the 32 bit version of MATLAB on the same system that is running the 64 bit version, and you can use that 32 bit version of MATLAB to generate a 32 bit version of the executable that can be installed on to 32 bit Windows systems.
There is a small complication involved (ummm... the matlabpref file has the same name and default location but is 32/64 bit specific ??) I do not recall the detail at the moment.
  3 Comments
Image Analyst
Image Analyst on 1 Feb 2012
Did you see my response? Like I said, been there, done that.
Geoff
Geoff on 1 Feb 2012
Yep, I just took a while to get to you =)

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!