Visual Studio doesn't find Qt static source for debug mode
-
wrote on 23 Sept 2022, 01:01 last edited by
I have compiled the static source of qt
6.3.1
withVisual Studio 2022
and the following command:configure.bat -static -debug-and-release -platform win32-msvc -opensource -confirm-license -prefix "D:\Qt\Static\Release"
When i compile any project under
release
it work correctly.When i try compiling under
debug
it fails and prompt:cannot open file 'D:\Qt\Static\Release\plugins\styles\qwindowsvistastyled.lib'
I dont have any
qwindowsvistastyled.lib
in this folder, i do have it on:D:\Qt\Static\qt-everywhere-src-6.3.1\qtbase\plugins\styles
I tried adding these config under the
Qt VS Tools
plugin:And modified the project settings to use it under
debug
:
But it continues searching for
qwindowsvistastyled.lib
in the'D:\Qt\Static\Release\plugins\styles\qwindowsvistastyled.lib'
folderI tried cleaning project, rebuilding, restarting the editor, what I'm missing?
cross-post: Stack
-
wrote on 23 Sept 2023, 00:45 last edited by scwangpeng_139
configure -prefix "d:\qt5-qtbase" -shared -release -nomake examples -nomake tests -opensource -confirm-license
nmake module-qtbase
cd qtbase
nmake installmodify project setting from "DEBUG" -> "RELEASE", or compile source file for share
-
I have compiled the static source of qt
6.3.1
withVisual Studio 2022
and the following command:configure.bat -static -debug-and-release -platform win32-msvc -opensource -confirm-license -prefix "D:\Qt\Static\Release"
When i compile any project under
release
it work correctly.When i try compiling under
debug
it fails and prompt:cannot open file 'D:\Qt\Static\Release\plugins\styles\qwindowsvistastyled.lib'
I dont have any
qwindowsvistastyled.lib
in this folder, i do have it on:D:\Qt\Static\qt-everywhere-src-6.3.1\qtbase\plugins\styles
I tried adding these config under the
Qt VS Tools
plugin:And modified the project settings to use it under
debug
:
But it continues searching for
qwindowsvistastyled.lib
in the'D:\Qt\Static\Release\plugins\styles\qwindowsvistastyled.lib'
folderI tried cleaning project, rebuilding, restarting the editor, what I'm missing?
cross-post: Stack
@Cesar Since you're using
-debug-and-release
both configurations are built, but you need to install them separately, so after you build docmake --install . cmake --install . --config Debug
the first one installs the Release config and the other one Debug.
With that you shouldn't add two versions in the VS tools dialog. It's the same build and you switch between them with the configuration switch combo box.