Invalid MEX-file using MCR R2012b 32-bit

Hello -
I am using a 64-bit computer with Windows 7. A collaborator compiled the files on a 32-bit computer. A second collaborator was able to use the MCR R2012b 32-bit successfully with the files; however, we are getting the error message:
Invalid MEX-file 'C:\Users\AAMEFF~1\AppData\Local\Temp\1\aa|mcrCache8.0\ FFALoc0\toolbox\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw32\:
Error in WhiteIndex (line 31)
Error in FFALocalizer_new (line 10)
MATLAB:invalidMEXFile
Note: We have tried to use the 64-bit MCR (with the files compiled on a 64-bit computer) to no avail.
Any suggestions?
Thanks!

Answers (1)

mex files compiled for 32 bit cannot be used from 64 bit MATLAB. You could, however, install the 32 bit version of MATLAB as well, and use it from the 32 bit version.

2 Comments

Thank you for the information.
However, we do not have MATLAB on the computer at all. From what I understand, the MCR should have everything packed and ready to run on a computer that does not have MATLAB installed. Is this not correct?
Thanks.
Ah. Use the 32 bit MCR. Then download Dependency Walker from the internet and use it to analyze the program.
I suspect you need to install a compiler runtime library, probably one of the Microsoft Visual C Runtime libraries.

Sign in to comment.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Asked:

on 18 Mar 2013

Community Treasure Hunt

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

Start Hunting!