Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QtCreator subdirs project structure: DLL use and packaging questions
JohnGa last edited by JohnGa
Hoping to discover good practices for our Qt projects. We currently have separate exe and shared library QtCreator projects. In the exe project, we copy the shared libraries into the exe project. This means, we are paying a "copy-shared libraries" penalty every time we build the exe. Want to find a solution that works on all windows/unix platforms.
Looks like QtCreator subdirs projects (with appropriate dependencies and include/lib paths) might be a good solution to prevent the copying of the shared libraries's during development running/debugging.
I understand how to link/include the shared library files. How can I have the exe project just refer/use to the share- libraries in shared-library subdir projects at runtime without copying? Would like to have either the debug profile or release profile take effect in all the projects. This would allow the exe project to use the various shared libraries without copying them.
koahnig last edited by
One option is the DESTDIR variable of qmake to be used with the dlls in their creation process.
JohnGa last edited by
@koahnig Thanks. This is a very good solution to my problem.