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

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.
  • G Offline
    G Offline
    goetz
    wrote on 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 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 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 last edited by
          #12

          Ok, thanks. Ill start over again tomorrow.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            savinirs.varadan
            wrote on 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 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 last edited by
                #15

                Ok , sure.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  savinirs.varadan
                  wrote on 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 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 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

                      • Login

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