How to solve error 'Invalid mex file'
265 次查看(过去 30 天)
显示 更早的评论
Hi,
I am trying to run a script on MATLAB using the psychtoolbox, but I keep getting this error -
'Invalid MEX-file ‘C:\toolbox\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Eyelink.mexw64’: The specified module could not be found.'
The mex file is right there when I go into the MatlabWindowsFiles folder, and I have installed the GStreamer runtime and vcredist. I have also tried the Dependency Walker to find missing .dll files, and everything is added to my path, but I still get the error.
I am working on a Windows 10 laptop with a 64-bit operating system and a x64-based processor. The MATLAB versions I have is R2020b.
I cannot think of anything else to try so any suggestions would be greatly appreciated.
Thank you!
2 个评论
Jan
2022-4-11
Do you have installed the correct vcredist version? Ist the dependency walker satisfied?
回答(2 个)
Ganesh Gudipati
2022-4-14
Hi,
Generally the first step is to check if the mupadmex.mexw64 file is present in path shown in the error. And, you already did it.
Now make sure, you have permissions to read and execute this file.
If you have the file and permissions but still you are facing an issue, then the problem may be realted to a false detection from an antivirus program. Please check your antivirus software to see if there have been any files quarantined from your MATLAB installation. If there are files from your MATLAB installation directory that have been quarantined, please restore them.
Then, you may need to create an exception in your antivirus program for the MATLAB installation folder and it's subfolders.
Hope this helps.
1 个评论
Hazel
2023-10-27
编辑:Hazel
2023-10-27
Hello,
I am having the same problem yet none of the listed solutions has fixed the problem. Selected folders and subfolders are added to my path.
'Invalid MEX-file 'C:\Users\me\OneDrive\Documents\Code\Psychtoolbox-3\Psychtoolbox\MatlabWindowsFilesR2007a\Screen.mexw64': The specified module could not be found.'
Do you have another solution?
Thanks!
Muhammad Fawad
2022-11-27
hello bro
you need to first download MATLAB 2014b version to MATLAB 2022B
Then go Add-ons and check Psychtoolbox page if not avalible then download![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1209208/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1209208/image.jpeg)
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!