Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Compiling source Qt 4.7.4 on windows 7 error qmake is not an internal or external command
Forum Update on Monday, May 27th 2025

Compiling source Qt 4.7.4 on windows 7 error qmake is not an internal or external command

Scheduled Pinned Locked Moved Installation and Deployment
18 Posts 4 Posters 13.1k Views
  • 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.
  • S Offline
    S Offline
    savinirs.varadan
    wrote on 28 Sept 2011, 19:57 last edited by
    #4

    I figured out that I don't have the app files in bin folder. How do I get them?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on 28 Sept 2011, 21:23 last edited by
      #5

      Define "the app files" please.

      If you do start configure.exe from the visual studio command line prompt, it works, I have done this many uncountable times. So I just don't believe that you have started the VS command prompt, but only a regular cmd.exe, which does not have the correct environment set up.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • S Offline
        S Offline
        savinirs.varadan
        wrote on 28 Sept 2011, 21:45 last edited by
        #6

        @volker - Honestly , this is what is happening. I resolved the previous issue. I was using a 2005 cmd promt and had passed 2008 as the input. Now kindly have a look at this -

        I don't have the application file qmake in the /bin folder and this is the error I am getting.

        Path environment variable : C:\development\referencebuilds\qt\4.7.4\qt-everywhere-opensource-src-4.7.4\bin\

        Command Prompt - visual studio 2005

        Source folder - C:\development\referencebuilds\qt\4.7.4\qt-everywhere-opensource-src-4.7.4

        Steps -

        Downloaded src
        
        Extracted the files to folder – qt-everywhere-opensource-src-4.7.4(C:\development\referencebuilds\qt\4.7.4)
        
        configure.exe -opensource -fast -no-accessibility -no-qt3support -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -no-webkit -no-scripttools -platform win32-msvc2005 -D “_BIND_TO_CURRENT_VCLIBS_VERSION=1”
        

        4.nmake

        The error I get is

        Microsoft (R) Program Maintenance Utility Version 8.00.50727.762 Copyright (C) Microsoft Corporation. All rights reserved.

        C:\development\referencebuilds\qt\4.7.4\qt-everywhere-opensource-src-4.7
        

        .4\bin\qmake C:/development/referencebuilds/qt/4.7.4/qt-everywhere-opensource-sr c-4.7.4/\projects.pro -o Makefile -spec win32-msvc2005 'C:\development\referencebuilds\qt\4.7.4\qt-everywhere-opensource-src-4.7.4\bin\ qmake' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\development\referencebuilds\qt\4.7.4\qt-everywher e-opensource-src-4.7.4\bin\qmake' : return code '0x1' Stop.
        I know I dont have the app files for qmake and many other appfiles in my \bin folder. How do I get them?

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on 28 Sept 2011, 22:59 last edited by
          #7

          qmake is built by the configure call, it's ok that it is not there until your configure.exe call has finished successfully. Most other tools are built by the nmake call.

          It could be that some of your object files have been cluttered by the mixup of VS versions. Did you completely remove the complete source directory (qt-everywhere-opensource-src-4.7.4) and start over from scratch?

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • S Offline
            S Offline
            savinirs.varadan
            wrote on 28 Sept 2011, 23:07 last edited by
            #8

            Yeah, I completely removed the directory and started from scratch. Now this is what I am trying to do . I installed the qt software development kit in the folder c:\QtSDK.. When I go into desktop\Qt\4.7.4\msvc2008\bin I find the files. I plan to copy them to the qt-everywhere-opensource-src-4.7.4\bin folder and try the whole thing again.

            My questions are,

            1. Is this advisable to do?
            2. What else should I try?
            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on 28 Sept 2011, 23:16 last edited by
              #9

              No! No! No!

              Never rebuild Qt from a prebuilt binary distribution or the SDK sources and never copy binaries from one installation to another one or a another source tree.

              Always download the vanilla sources and run

              @
              configure.exe -with -your -options
              nmake
              @

              from the Visual Studio command prompt.

              This is the only way known to always work reliably.

              If you need different builds of the same Qt version, you must use different source tree directories!

              PS:
              Check the configure ouput whether it has picked up the right mkspec for you. If not, override it with -platform xyz.

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0
              • S Offline
                S Offline
                savinirs.varadan
                wrote on 28 Sept 2011, 23:23 last edited by
                #10

                Ok, thanks. I will first

                1. Uninstall QtSDK
                2. Delete all files in the qteverywhere folder. Delete the source zip.
                3. Remove path set in the environment variable PATH.
                4. Download new source from a different branch and try again.

                In case that fails, ill post back with the errors.

                Thanks.

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  goetz
                  wrote on 28 Sept 2011, 23:34 last edited by
                  #11

                  It shouldn't be necessary to delete the SDK.

                  http://www.catb.org/~esr/faqs/smart-questions.html

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    savinirs.varadan
                    wrote on 28 Sept 2011, 23:35 last edited by
                    #12

                    Ok, thanks. Ill start over again tomorrow.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      savinirs.varadan
                      wrote on 29 Sept 2011, 20:50 last edited by
                      #13

                      Issue persists - As mentioned in earlier post I cleared all previous environment variables and downloaded a new source.

                      This is where I downloaded the source from

                      "http://qt.gitorious.org/qt/qt/trees/v4.7.4

                      Environment variable settings -

                      Path : C:\development\referencebuilds\qt\4.7.4\qt-qt\bin

                      QMAKESPEC : win32-msvc2008

                      Command Prompt - visual studio 2008

                      Source folder - C:\development\referencebuilds\qt\4.7.4\qt-qt\

                      Steps -

                      Downloaded src
                      
                      1. configure.exe -opensource -fast -no-accessibility -no-qt3support -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -no-webkit -no-scripttools -platform win32-msvc2005 -D “_BIND_TO_CURRENT_VCLIBS_VERSION=1”

                      2. nmake

                      The error I get is
                      Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
                      Copyright (C) Microsoft Corporation. All rights reserved.

                          C:\development\referencebuilds\qt\4.7.4\qt-qt\bin\qmake C:/development/r
                      

                      eferencebuilds/qt/4.7.4/qt-qt/\projects.pro -o Makefile -spec win32-msvc2008
                      'C:\development\referencebuilds\qt\4.7.4\qt-qt\bin\qmake' is not recognized as a
                      n internal or external command,
                      operable program or batch file.
                      NMAKE : fatal error U1077: 'C:\development\referencebuilds\qt\4.7.4\qt-qt\bin\qm
                      ake' : return code '0x1'
                      Stop.

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        goetz
                        wrote on 29 Sept 2011, 22:32 last edited by
                        #14

                        You should get the tarball from the "Qt download page":http://qt.nokia.com/downloads/downloads#qt-lib. Grab the source zip, unpack it and follow the steps I've mentioned.

                        A gitorious checkout is usually not meant for production use and you will need additional tools to prepare the source tree. The zip/tar.gz from the download page is ready to configure.

                        http://www.catb.org/~esr/faqs/smart-questions.html

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          savinirs.varadan
                          wrote on 29 Sept 2011, 22:34 last edited by
                          #15

                          Ok , sure.

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            savinirs.varadan
                            wrote on 30 Sept 2011, 17:28 last edited by
                            #16

                            Ok , so this is what is happening. The steps mentioned by you works fine on my machine , which is a windows 7. It fails with error on the following machine where I am trying to install by remote login(using windows 7 remote desktop application)

                            OS: Windows Server Standard,
                            System - Processor : Quad-Core AMD Opteron(tm) Processor 2360 SE 2.50 Ghz (2 processors)
                            System type: 64-bit .

                            The error I get is -

                            Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
                            Copyright (C) Microsoft Corporation. All rights reserved.

                                C:\development\referencebuilds\qt\4.7.4\qt-everywhere-opensource-src-4.7
                            

                            .4\bin\qmake C:/development/referencebuilds/qt/4.7.4/qt-everywhere-opensource-sr
                            c-4.7.4/\projects.pro -o Makefile -spec win32-msvc2008
                            'C:\development\referencebuilds\qt\4.7.4\qt-everywhere-opensource-src-4.7.4\bin
                            qmake' is not recognized as an internal or external command,
                            operable program or batch file.
                            NMAKE : fatal error U1077: 'C:\development\referencebuilds\qt\4.7.4\qt-everywher
                            e-opensource-src-4.7.4\bin\qmake' : return code '0x1'
                            Stop.

                            1 Reply Last reply
                            0
                            • U Offline
                              U Offline
                              uranusjr
                              wrote on 1 Oct 2011, 06:51 last edited by
                              #17

                              It would be better if you put the output between "@" signs (or use the rightmost button of the editor).

                              1 Reply Last reply
                              0
                              • G Offline
                                G Offline
                                goetz
                                wrote on 1 Oct 2011, 22:41 last edited by
                                #18

                                Sorry, I never tried to install Qt using a remote login, so I'm out at this point.

                                http://www.catb.org/~esr/faqs/smart-questions.html

                                1 Reply Last reply
                                0

                                13/18

                                29 Sept 2011, 20:50

                                • Login

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