Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
5.12.9 build failure
I just installed 5.12.9 and tried to build by project.
- a whole load of VS2017 macros are still pointing to 5.12.8 even though that is no longer on the machine:
- Build is failing:
C:\Users\amonra\AppData\Local\QtMsBuild\rcc\qtrcc.targets(116,5): error MSB3073: The command ""\rcc.exe" --list "i18n\translations.qrc" > ".\x64\Debug\rcc_list.txt" 2> nul" exited with code 9009.
9009 seems to mean file not found
So i think your VS is confused about paths.
The only change I made was to uninstall 5.12.8 (big mistake clearly) and install 5.12.9 and 5.15.0
Both are failing to build the file i18n/translations.qrc in the project (5.12.9 under VS2017, 5.15.0 under VS2019).
So what debug info can I gather to help me (or you) to fix this?
I dont know VS that well.
It seems to have empty path for rcc
so that list has an entry ?
Do you use the Qt plugin ?
Yes I'm using the plugin.
Maybe something amiss in qtrcc.targets file?
<!--// Parse QRC -->
<QtRccExeQuoted Condition="'$(QtVsProjectSettings)' == 'true'">"$(QtToolsPath)\rcc.exe"</QtRccExeQuoted>
<QtRccExeQuoted Condition="'$(QtVsProjectSettings)' != 'true'">"%(QtRcc.QTDIR)\bin\rcc.exe"</QtRccExeQuoted>
<Exec Condition="'@(QtRcc)' != ''"
Command="$(QtRccExeQuoted) --list $(QtRccQuoted) > $(RccListQuoted) 2> nul"/>
<ReadLinesFromFile Condition="'@(QtRcc)' != '' AND Exists('$(IntDir)rcc_list.txt')"
If QtToolsPath is empty
then the ""\rcc.exe" could make sense.
But i have sadly no idea where to set it.
I eventually worked out how to set QtToolsPath
And it fixed the problem
BUT I SHOULDN'T NEED TO DO THAT!!!!! BUG I THINK
micosta last edited by
Can you check the Qt Settings property page? It’s likely that it’s still pointing to the uninstalled version of Qt.
No it isn't. There seem to be an AWFUL lot of Qt related macros defined with many of them pointing the same locations. Some rationalisation might help!
micosta last edited by
All properties related to Qt build settings should depend or be relative to the value of Qt Settings > Qt Installation. If this is not the case, then there might be a bug or some use case that we overlooked. Could you please post a screenshot of the Qt Settings property? Or better still open an issue in https://bugreports.qt.io/projects/QTVSADDINBUG and attach a sample project file. That would really help us to fix whatever might be wrong in this case. Thanks.