Qt Compile Error: bin \ rcc.exe ---- list "xxx.qrc"> "Debug \ rcc_list.txt" 2> nul

I. Description of the problem:  

    Recently an original with vs2015 + Qt5.9.0 Qt development projects migrate to another on a single development environment for vs2015 + Qt5.11.1 computer, the results compiled error: Qt Compile Error: bin \ rcc.exe ---- list " xxx.qrc ">" Debug \ rcc_list.txt "2> nul. As shown below:

 

Second, the solution:

    Cause of the problem is that the project was originally developed by Qt5.9.0, but Qt5.9.0 not installed on a new computer, install only the Qt5.11.1, or use the default configuration of Qt5.9.0 vs compile time, because the compiler can not find Qt5.9.0 library, so the reported fault. So to solve this problem compilation error, as long as we change the configuration of the lower vs enough. We open XXX.vcxproj.user under the project directory with notepad or notepad ++ and other tools, as shown below:

 

C XXX.vcxproj.user displayed as can be seen in the FIG red box: \ Qt \ Qt5.9.0 \ 5.9

 

We will be on the red box in Figure C: \ Qt \ Qt5.9.0 \ 5.9 changed to C: \ Qt \ Qt5.11.1 \ 5.11, as shown below, recompile, you can solve this problem.

 

Published 54 original articles · won praise 55 · views 120 000 +

Guess you like

Origin blog.csdn.net/u014552102/article/details/103840786