Qt6Widgetsd.lib dooesn't exist
-
I installed QT and Visual Studio QT extension ,then I create a app from official template,but I received below error:
LNK1104 Can not open “D:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\lib\Qt6Widgetsd.lib” QtWidgetsApplication1 C:\Users\Administrator\source\repos\QtWidgetsApplication1\LINK 1
Then I found the folder really don't have these files,there are only .prl not .lib
I tried to seek for help on google,but no answer there.
Must I resinstall QT? -
@mili
The path you show refers to Qt Design Studio. You say you "installed QT and Visual Studio QT extension". That is for Qt widgets applications, not for Qt Design Studio.- What did you install from where?
- Do you really want Qt Design Studio?
- If not, isn't the example or official template you picked for Qt Design Studio?
Unless any expert tells me the Qt widgets stuff uses a path like
QtDesignStudio\qt6_design_studio_reduced_version
and I am barking up the wrong tree trying to guess to help? -
the found Qt "qt6_design_studio_reduced_version" is just the QML runtime environment for projects opened in Qt Design Studio
It has reduced in the name because we strip all the C++ developer files from it. So the question is why Visual Studio extension founds that Qt
It should use a Qt from a path like this: "C:\Qt_online\6.7.3\msvc2022_64" - you get it if you select the necessary Qt in the Qt online installer. -
In VS, please go to "Extension > Qt VS Tools" and click "Qt Versions". This will open a settings page that let's you choose between installed Qt versions. Make sure the Qt version shipped with QtDesignStudio is not set as the default one, if so, select a different version. Now you can create a new app with the Qt VS templates that should work.
You can find the Qt VS Tools documentation here if you need further assistance: Qt VS Tools Documenation
I've also created a task from your report, since the Qt VS Tools extension should omit the stripped Qt version when using the autodetect feature: QTVSADDINBUG-1258 -
Can you please explain how you added the Qt version? Inside the Qt versions dialog, did point the path directly to the qmake version found in D:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\bin (using the button [...] next to the location field)?
-
@Karsten-Heimrich said in Qt6Widgetsd.lib dooesn't exist:
qmake version found in D:\Qt\Tools\QtDesignStudio\qt6_design_studio_reduced_version\bin
This is wrong.
You need to select qmake from Qt version you installed. Did you install any Qt version?