DDS Support Package MEX-file is not a valid Win32 application

2 次查看(过去 30 天)
I'm attempting to run the RTI shapes demo included with the DDS Support Package and receive an error when calling the DDS.import command (DDS.import('ShapeType.idl','matlab', 'f')). The error I receive is the following:
Invalid MEX-file 'C:\Program Files\MATLAB\R2016b\toolbox\psp\tools\ddsblockset\mexGetVersion.mexw64': C:\Program Files\MATLAB\R2016b\toolbox\psp\tools\ddsblockset\mexGetVersion.mexw64 is not a valid Win32 application..
I'm running Matlab R2016b and installed the DDS support package that was identified to be used with this Matlab version. Both Matlab and the DDS package I downloaded are for a 64 bit operating system (which is what my operating system is). The mex file extension (.mexw64) also seems to imply that it's meant to run on a 64 bit system.
So why is it expecting a Win32 application when I'm running a 64 bit system? If the DDS Support package was designed to be used on R2016b why would I be getting this error?
Thanks in advance for any help!

回答(1 个)

Vishal Neelagiri
Vishal Neelagiri 2017-1-17
The problem is that some applications also contain compiler dependencies. If the application is deployed to a machine without this compiler, the application will not find these and error out.
Thus you also need to install the redistributables of this compiler on the machine you would like to application to run on.
E.g. You will need to install Microsoft Visual C++ 2010 Redistributable Package if your application was compiled with SDK 7.1 compiler to run the application successfully.

类别

Help CenterFile Exchange 中查找有关 Get Started with DDS Blockset 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by