Use of matlab dlls as third party dependencies
Ältere Kommentare anzeigen
Hi guys,
I am trying to build a Qt application which will generates .mat files. Last year I was using a 32 bits Qt framework and it was working fine. I had two matlab dlls (coming from matlab 2018b if I do remember well) as third party dependencies: libmat.dll and libmx.dll, I could compile and execute my application without any issue.
But the application will frequently use more than 2 Gb of RAM and than is why I am migrating to a 64 bits Qt framework. However Qt is struggling to load matlab dlls. Either a dll is missing or I get the error code 0xc000007b which means that I am using 32-bits and 64-bits dlls.
I already post a question about Qt on their forum but we where not able to find a solution. That is why I am posting the question here.
I have matlab 2022b installed on my machine (Windows x64 bits)
I can see in <matlab_root>/bin/win64 folder the dlls I am looking for: libmat.dll and libmx.dll and I am using mat.h, matrix.h and tmwtypes.h from <matlab_root>/extern/include folder in the source code to interact with the dlls. At that point, I am able to compile (So the matlab libraries are found by Qt) but if I try to start the application, Qt is complaining because some dlls are missing: libmwfl.dll, libmwflstorageutility.dll etc..
Apparently, Qt is also looking in the Windows PATH variable to search for dlls, I had a look in my system path and I can see two paths:
I know this is a matlab forum, not a Qt one, but do you guys have an idea of what I should do to use matlab as a third party dependency ?
Have a nice day,
Pierre-Emmanuel
5 Kommentare
埃博拉酱
am 10 Jan. 2025
I read about your experience on the Qt forum. I think you should construct a minimal reproduction demo and upload it to let us debug it for you.
Pierre-Emmanuel de Robien
am 10 Jan. 2025
埃博拉酱
am 12 Jan. 2025
You don't need a "runnable" app. What you need is to delete the content from your real project that is not relevant to this issue and send the rest in.
Pierre-Emmanuel de Robien
am 20 Jan. 2025
Pierre-Emmanuel de Robien
am 20 Jan. 2025
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Google finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!