Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error MSB6006: "cmd.exe" exited with code 3.
Forum Updated to NodeBB v4.3 + New Features

Error MSB6006: "cmd.exe" exited with code 3.

Scheduled Pinned Locked Moved General and Desktop
13 Posts 5 Posters 39.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    haggag87
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • D Offline
      D Offline
      D0IT
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      1
      • K Offline
        K Offline
        koahnig
        wrote on last edited by
        #3

        [quote author="D0IT" date="1364539256"]... (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).[/quote]

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

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply
        0
        • H Offline
          H Offline
          haggag87
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

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

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • H Offline
              H Offline
              haggag87
              wrote on last edited by
              #6

              visual studio 2010
              yes
              windows7 32 bit

              1 Reply Last reply
              0
              • K Offline
                K Offline
                koahnig
                wrote on last edited by
                #7

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

                Vote the answer(s) that helped you to solve your issue(s)

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  haggag87
                  wrote on last edited by
                  #8

                  5.0.1 from the official website

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    koahnig
                    wrote on last edited by
                    #9

                    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?

                    Vote the answer(s) that helped you to solve your issue(s)

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      haggag87
                      wrote on last edited by
                      #10

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

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        koahnig
                        wrote on last edited by
                        #11

                        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.

                        Vote the answer(s) that helped you to solve your issue(s)

                        1 Reply Last reply
                        0
                        • D Offline
                          D Offline
                          dtn89
                          wrote on last edited by
                          #12

                          Hello Sir,
                          I have a similar problem. I use Qt 4.8.5, VC 2010. Up till now, I cannot solve my problem. Sorry I still don't understand what you mean. I am a new bie. Could you tell me more detail?

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            Adam Weingarten
                            wrote on last edited by
                            #13

                            QT, error MSB6006 : "cmd.exe" exited with code 3
                            I had this stupid error: I was working on a relatively fresh PC (Windows 7 Pro).
                            I got rid of this particular error by introducing a QTDIR environment variable (that didn’t exist before):
                            Press Windows START button
                            Press “Control Panel”
                            Press “System”
                            Press “Advanced System Settings”
                            On the [ADVANCED] tab – press button [Environment Variables] at the bottom
                            Under “System Variables”at the bottom – press [NEW]
                            Add QTDIR environment variable. In my case that value was “C:\Qt\5.9.1\msvc2017_64” (it has ‘bin’, ‘include’, ‘lib’ directories – the works!).
                            I saved this and RESTARTED my computer for better measure (Didn’t seem to “just wok” – at least not for me).
                            OK: now I was getting the following error:
                            C1083: Cannot open include file: 'stddef.h': No such file or directory
                            ...OK what got me out of THIS was:
                            [Project] → Properties → Windows SDK version... - I change this from “8.1” to something stupid called “10.0.17134.0” (whatever the hell that means: to me this is all magic).

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved