[Interest] windeployqt on executable with a shared library in the project

Scott Bloom scott at towel42.com
Fri Oct 3 19:16:53 CEST 2025


I was just about to send a “resolved” email to the list (for other who may have the same problem.

Ill file the bugs later today or tomorrow;

1) The issue’s root cause is that the library was named starting with a Q, so the tool assumed it was a Qt library not a library using Qt.
2) The ignore library errors switch doesn’t apply to Qt libraries
3) There is no way to add a “lib search dir” that works for this situation.

Scott
From: Interest <interest-bounces at qt-project.org> On Behalf Of Axel Spoerl via Interest
Sent: Wednesday, October 1, 2025 22:45
To: development at qt-project.org
Cc: interest at qt-project.org
Subject: Re: [Interest] windeployqt on executable with a shared library in the project

Hi Scott,

windeployqt has a —libdir option.
As a last resort (e.g. if libraries are in multiple locations), custom shared libraries can also be added manually to the output directory.
That coud be done in a custom script, in addition to or wrapping windeployqt.

Cheers
Axel


On 2 Oct 2025, at 00:25, Scott Bloom <scott at towel42.com<mailto:scott at towel42.com>> wrote:

My project has an executable as well as a shared library.

Windeployqt fails to find the shared library, because its looking in the QT directory.

I don’t see any option on windeployqt to give it other paths to search or to exclude a dependency.

Any help would be greatly appreciated

Scott
_______________________________________________
Interest mailing list
Interest at qt-project.org<mailto:Interest at qt-project.org>
https://lists.qt-project.org/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20251003/96f951f0/attachment.htm>


More information about the Interest mailing list