Visual Studio doesn't find Qt static source for debug mode
-
I have compiled the static source of qt
6.3.1withVisual Studio 2022and 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
releaseit work correctly.When i try compiling under
debugit fails and prompt:cannot open file 'D:\Qt\Static\Release\plugins\styles\qwindowsvistastyled.lib'I dont have any
qwindowsvistastyled.libin this folder, i do have it on:D:\Qt\Static\qt-everywhere-src-6.3.1\qtbase\plugins\stylesI tried adding these config under the
Qt VS Toolsplugin:And modified the project settings to use it under
debug:

But it continues searching for
qwindowsvistastyled.libin the'D:\Qt\Static\Release\plugins\styles\qwindowsvistastyled.lib'
folderI tried cleaning project, rebuilding, restarting the editor, what I'm missing?
cross-post: Stack
-
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.1withVisual Studio 2022and 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
releaseit work correctly.When i try compiling under
debugit fails and prompt:cannot open file 'D:\Qt\Static\Release\plugins\styles\qwindowsvistastyled.lib'I dont have any
qwindowsvistastyled.libin this folder, i do have it on:D:\Qt\Static\qt-everywhere-src-6.3.1\qtbase\plugins\stylesI tried adding these config under the
Qt VS Toolsplugin:And modified the project settings to use it under
debug:

But it continues searching for
qwindowsvistastyled.libin 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-releaseboth configurations are built, but you need to install them separately, so after you build docmake --install . cmake --install . --config Debugthe 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.
