Good evening,
first posting... let's see how much I can do wrong!
I've been developing a QT OpenGL application in C++, VS2010 for some time now. The below error occurred once before; back then, I managed to fix it with a backup of the project. Now, it seems to be permanent!
When building the project in Visual Studio, the following error occurs:
error MSB6006: "cmd.exe" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets, line 151, col 6
error MSB6006: "cmd.exe" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets, line 151, col 6
To copy to clipboard, switch view to plain text mode
This error just came up out of the blue when I did absolutely not change anything (just building before starting to code). Google advises to change various settings, delete, reinstall... all done, solved nothing.
The problem also occurs with newly created QT5 projects without any other content. Turning the VS log level to "diagnose" shows the following:
1> "E:\Qt\Qt5.0.2\5.0.2\msvc2010_opengl\bin\rcc.exe" -name "testproject" -no-compress "c:\TestProject\TestProject\testproject.qrc" -o .\GeneratedFiles\qrc_testproject.cpp (task ID: 16)
1> Moc'ing testproject.h... (task ID: 16)
1> moc: Cannot create .\GeneratedFiles\Debug\moc_testproject.cpp (task ID: 16)
1> Uic'ing testproject.ui... (task ID: 16)
1> Could not create output file (task ID: 16)
1> Rcc'ing testproject.qrc... (task ID: 16)
1>RCC : warning : No resources in 'c:\TestProject\TestProject\testproject.qrc'.
1> (task ID: 16)
1> Unable to open .\GeneratedFiles\qrc_testproject.cpp for writing: The system can not find the specified path. (task ID: 16)
1> (task ID: 16)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1.
1> "E:\Qt\Qt5.0.2\5.0.2\msvc2010_opengl\bin\rcc.exe" -name "testproject" -no-compress "c:\TestProject\TestProject\testproject.qrc" -o .\GeneratedFiles\qrc_testproject.cpp (task ID: 16)
1> Moc'ing testproject.h... (task ID: 16)
1> moc: Cannot create .\GeneratedFiles\Debug\moc_testproject.cpp (task ID: 16)
1> Uic'ing testproject.ui... (task ID: 16)
1> Could not create output file (task ID: 16)
1> Rcc'ing testproject.qrc... (task ID: 16)
1>RCC : warning : No resources in 'c:\TestProject\TestProject\testproject.qrc'.
1> (task ID: 16)
1> Unable to open .\GeneratedFiles\qrc_testproject.cpp for writing: The system can not find the specified path. (task ID: 16)
1> (task ID: 16)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1.
To copy to clipboard, switch view to plain text mode
Before that, everything seems to run just fine.
So, the problem might be that the MOC files could not be created. The solution here did not work.
Any help on this problem would be much appreciated! Please tell me if there's any information I could add.
Some facts: Visual Studio 2010, Qt5.0.2, QT VS Addin 1.2.1, OS: Windows 7
Attempted solutions: Reinstalled QT / QT Addin / VS2010 / tried VS2012. Problem occurs only in QT5 projects (not in e.g. C++ console applications).
Thanks for any help in advance!
Regards,
Brokenmind
Bookmarks