Why does my MATLAB-compiled library (DLL) fail to initialize when deploying a driver application built with LabWindows/CVI?
Mostrar comentarios más antiguos
I have compiled a C shared library (DLL) using the MATLAB Compiler. I am using the DLL in a project I am developing with the National Instruments LabWindows/CVI IDE.
In debug mode, I am able to successfully initialize the MATLAB Compiler Runtime along with my DLL, and use the DLL functions from the application. I then create a Distribution via a .cds file configuration and build my application in Release mode. This creates an installation package for my application.
I then run the installer and install my application on a deployment machine. My MATLAB-compiled DLL is also installed by the package, as it was detected as a file dependency. When I run the deployed application, however, the MATLAB-compiled DLL fails to initialize; that is, the <libname>Initialize() routine returns as failure.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!