March 29, 2013

haggag87 haggag87
Lab Rat
7 posts

error MSB6006: “cmd.exe” exited with code 3.

 

Hi,

I’m using a VS project which depends on Qt but when building the project this error is still appearing “

error MSB6006: “cmd.exe” exited with code 3.
I’ve posted a question on msdn forums here http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/f56772d5-637d-449b-ac29-64135b12a05a but they told me to post a question here as its related to qt build.
The log file will be found in the same link.

I’ve also checked this two questions:

http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/22da875d-c86c-41ac-9076-9b4ed37114bf/

and http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/5b0be7be-1b6e-44c2-91ca-b5a9a55a2c41/

but couldn’t find an answer so if anyone could please help me as this is fairly important and urgent for me?

Many Thanks in advance for your kind assistance

10 replies

March 29, 2013

D0IT D0IT
Ant Farmer
21 posts

As stated in the msdn thread, the Qt tools rcc/uic/moc cannot be found under the path that is specified (looks rather suspicious from the output (”\bin\moc.exe”), which would mean that you have the moc tool in your project directory, which is probably not the case).
How do you create the Build rules for moc and co? Are you using the Qt Visual Studio Add-in or are you doing this by hand? If you are using the Add-in, check that the Qt version is correctly set for the project. Also check whether the include and linker directories are correctly set in the project configuration dialog.

March 30, 2013

koahnig koahnig
Area 51 Engineer
2877 posts
D0IT wrote:
… (looks rather suspicious from the output (”\bin\moc.exe”), which would mean that you have the moc tool in your project directory, which is probably not the case).

Just a remark, I assume that it is a simple typing error, but the path is not a valid windows path.

March 30, 2013

haggag87 haggag87
Lab Rat
7 posts

so, what shall i do now? I need to fix it please.

March 30, 2013

koahnig koahnig
Area 51 Engineer
2877 posts

which version of msvc are you using?
do you have vsaddin installed?
OS?

March 30, 2013

haggag87 haggag87
Lab Rat
7 posts

visual studio 2010
yes
windows7 32 bit

March 30, 2013

koahnig koahnig
Area 51 Engineer
2877 posts

which Qt version have you installed?
from where did you download?

March 30, 2013

haggag87 haggag87
Lab Rat
7 posts

5.0.1 from the official website

March 30, 2013

koahnig koahnig
Area 51 Engineer
2877 posts

When you have the precompiled build of qt 5.0.1 for msvc 2010 installed, you should have also Qt creator. Did you try to use Qt creator instead?

March 30, 2013

haggag87 haggag87
Lab Rat
7 posts

I’ve opened Qt creator and couldn’t find any example in the examples tab!

March 30, 2013

koahnig koahnig
Area 51 Engineer
2877 posts

you should be able to go to “File” > “Open File or Project” and navigate to the examples installed. Typically on the Qt installation folder. I have Qt 5 not installed, but I assume it should be there. Go to the folder of one of the examples you like to try, there you should find a file type “Qt Project File”. Those are the project files.

 
  ‹‹ Play a sound with Qt5 and Windows 8 + minWG      QSvgRenderer antialiasing seems not working ››

You must log in to post a reply. Not a member yet? Register here!