[Development] Why we need two `Qt*.dll` copies on Windows?

Yuchen Deng loaden at gmail.com
Mon Jun 10 02:30:23 CEST 2013


Does some one notice there exists two QtDLLs on Windows, the one in
bin\Qt*.dll, and the other placed `lib\Qt*.dll`, WHY?
It's don't make sense. We only need the `bin\Qt*.dll` one. and the Qt
applications does not need the `lib\Qt*.dll`, never!

If removed the `lib\Qt*.dll`, everything works ok on Qt 5.0.x, but I
noticed recently it does not work with CMake projects.
Here is the error log:


> CMake Error at
> D:/qpSOFT/MyDEV/sdk/qt/amd64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15
> (message):
>
> The imported target "Qt5::Core" references the file
>
>
> "D:/qpSOFT/MyDEV/sdk/qt/amd64/lib/Qt5Core.dll"
>
>
> but this file does not exist. Possible reasons include:
>
>
> * The file was deleted, renamed, or moved to another location.
>
>
> * An install or uninstall procedure did not complete successfully.
>
>
> * The installation package was faulty and contained
>
>
> "D:/qpSOFT/MyDEV/sdk/qt/amd64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake"
>
>
> but not all the files it references.
>
>
> Call Stack (most recent call first):
>
> D:/qpSOFT/MyDEV/sdk/qt/amd64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:32
> (_qt5_Core_check_file_exists)
>
> D:/qpSOFT/MyDEV/sdk/qt/amd64/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:117
> (_populate_Core_target_properties)
>
> cmake/QtHelper.cmake:17 (find_package)
>
> cmake/QtHelper.cmake:83 (qt_find_modules)
>
> CMakeLists.txt:38 (include)
>
>
>
>
> --
>
Best Regards
Yuchen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130610/1f7b0d85/attachment.html>


More information about the Development mailing list