Google+ ZACARÉS: Remove the yellow ! from the kits of QtCreator's build and run environment for Qt Static build

Translate

2013/11/08

Remove the yellow ! from the kits of QtCreator's build and run environment for Qt Static build

When configuring QtCreator's Build & Run options with static Qt build, kits item will show a yellow exclamation mark due to x86-windows-unknown-pe-32bit. This seems not affecting the compilation with this static Qt build.
But if you really want to remove that yellow !, you can try to copy the Qt5Core.dll and Qt5Cored.dll from your shared build to the lib folder of your static build.
e.g.
c:\Qt\5.1.1\mingw48_32 (this is installation of the Qt SDK)
c:\Qt\5.1.1\mingw48_32s (the static version)
Then you can 
copy /y "c:\Qt\5.1.1\mingw48_32\lib\Qt5Core.dll" "c:\Qt\5.1.1\mingw48_32s\lib\Qt5Core.dll"
copy /y "c:\Qt\5.1.1\mingw48_32\lib\Qt5Cored.dll" "c:\Qt\5.1.1\mingw48_32s\lib\Qt5Cored.dll"
Source: Qt5使用静态版,在配置Build&Run环境时,kits项中会出现黄色感叹号

No comments:

Post a Comment