Loading Qt Dll's in a separate directory of executable file
-
I'm currently working on an Windows extension for another another program's executable so I would prefer to not any .dll's into their executable's directory. What options are available for me? I understand that adding to the PATH will fix this issue however, I'm not convinced that is the best way to go about it.
I have tried delay loading Qt's dll's however Qt5Widget seems to import a QMetaObject struct with the following error
fatal error LNK1194: cannot delay-load 'Qt5Widgets_v142.dll' due to import of data symbol '"__declspec(dllimport) public: static struct QMetaObject const QWidget::staticMetaObject" (_imp?staticMetaObject@QWidget@@2UQMetaObject@@B)'; link without /DELAYLOAD:Qt5Widgets_v142.dllAny pointers would be appreciated!
Thanks,
RL -
If the Qt DLLs are in the same location as your extension DLL then they should be fine. How does the other program find extensions to load? In many cases the program will have an extension search path that may be configurable in-program or through an environment variable. This could allow you to put all your executables elsewhere.