-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug build failure in 3.3.1 #40
Comments
Same issue in 3.3.0.46. I haven't tried 33, but 3.3.0.13 is OK. |
I have the same bug. |
Opened https://bugreports.qt.io/browse/QTVSADDINBUG-1273 as I suspect that tracker is more closely watched by the maintainer. |
See QTVSADDINBUG-1263 where I've reported the same issue a week ago. |
@ALL We are very sorry that this has happened, we are considering several steps to provide an upgrade path for projects without UseDebugLibraries for debug configurations set in the .vcxproj file. As a temporary solution, you can overcome the issue with either of the following steps:
When building a project, MSBuild will search upwards on the directory structure for this file and import it if found (cf. MSBuild docs). |
I don't maintain a vcxproj file, I am importing a .pro file. Surely you don't believe this is working correctly? |
We have reverted the offending commit and uploaded the package again. |
Describe the bug
Since 3.3.1 the Debug configuration is broken.
Changes to the file "qt_defaults.props" mean that $(QtBuildConfig) is defined incorrectly".
This escalates through to "qt_vars.targets" and $(QMakeArgsList) never contains "CONFIG += debug".
Result is that on the link line, the application built with Debug tries to link with Release libraries.
If your Qt installation is split into two separate folders (Debug, Release) then the Debug build fails.
If your Qt installation is combined, then the Debug build links with Release libraries.
To Reproduce
Steps to reproduce the behaviour:
Using a Debug only Qt installation.
Create an example Qt app using the MSVS Project Wizard.
Try and build it with Debug.
It will fail with unable to locate e.g. Qt6AXContainer.lib instead of Qt6AXContainerd.lib
Expected behavior
In a Debug environment $(QtBuildConfig) should be "debug", and "CONFIG += debug" should be added.
Screenshots
Changes that have caused this behaviour in 3.3.1 is below:
qt_defaults.props
Place where "CONFIG += debug" should be added:
qt_vars.targets
Desktop (please complete the following information):
Additional context
It was bad enough in 3.3.0 with the missing moc include paths bug, and now this in 3.3.1 is another catastrophic failure.
The text was updated successfully, but these errors were encountered: