How to create/use prototype fimes when deploying Matlab applications: Error using loadlibrary
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Dear all,
I have made a GUI in Maltab and a part of the code uses a library and some DLLs. The application works very well. However, when trying to deploy it (compile it into an executable), I get an error because of the loading of libraries in deployed applications. More precisely, at the line: [ notfound , warnings ] = loadlibrary( obj.sLibrary ,'my_lib.h','mfilename', 'my_lib.m', 'addheader' , 'my_lib' ); outputs the following error:
Error using ==> loadlibrary(line 240). Deployed applications must use a prototype file instead of a header file. To create the prototype, use the loadlibrary mfilename option. Use the prototype file in compiled code. See http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/brb8oui.html for more information.
I have tried many attempts and with no positive result. I am not familiar with prototype files, I could not find any detailed reference. Therefore, I have edited the file "my_lib.h" and saved a new copy of it and renamed it "my_lib.m".
In spite of my best efforts, I cannot figure this thing out. Can anyone help me?
Best regards, Ion
1 commentaire
Réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Compiler dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!