MCC 64-bit target doesn't recognise supplied MCR
2 次查看(过去 30 天)
显示 更早的评论
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-
0 个评论
采纳的回答
Image Analyst
2012-2-1
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 个)
Walter Roberson
2012-2-1
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!