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. Source build fails under windows
QtWS25 Last Chance

Source build fails under windows

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 4.5k 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.
  • L Offline
    L Offline
    lucaghera
    wrote on 6 Mar 2014, 14:44 last edited by
    #1

    Hi all,

    I have problems compiling QT 5.2.1 under windows.

    Few months ago I compiled correctly the version 5.1.1.

    When I try to compile Qt from the visual studio command prompt I got the following error:

    @
    configure -developer-build -opensource -opengl desktop -mp -nomake examples -nomake tests -confirm-license

    Microsoft (R) Incremental Linker Version 11.00.61030.0
    Copyright (C) Microsoft Corporation. All rights reserved.

        copy qmake.exe C:\Software\Qt\qtbase\bin\qmake.exe
    

    The system cannot find the file specified.
    Running configuration tests...
    'C:\Software\Qt\qtbase\bin\qmake.exe' is not recognized as an internal or extern
    al command,
    operable program or batch file.
    QMake failed!
    @

    The qmake.exe file is actually created.

    Any idea to fix it?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      clochydd
      wrote on 6 Mar 2014, 15:27 last edited by
      #2

      Welcome to devnet!
      It seems like being a problem with the environment. Please check the PATH variable for the source of qmake.exe.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lucaghera
        wrote on 6 Mar 2014, 15:32 last edited by
        #3

        Thanks!

        The PATH contains the directory "C:\Software\Qt\qtbase\bin".
        Indeed if I manually copy the file from C:\Software\Qt\qtbase\qmake\qmake.exe to C:\Software\Qt\qtbase\bin\qmake.exe the setup proceed.

        The next error is

        @
        Running configuration tests...
        Could not find output file: No such file or directory
        @

        1 Reply Last reply
        0
        • C Offline
          C Offline
          clochydd
          wrote on 6 Mar 2014, 15:35 last edited by
          #4

          Only these two messages?
          There should be provided a filename, too.

          bq.
          Running configuration tests...
          Could not find output file: No such file or directory

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lucaghera
            wrote on 6 Mar 2014, 15:46 last edited by
            #5

            Find below the copy and paste of what I can read from the console.
            It's part of the configure command plus it re-execution after manually copy and paste qmake.exe.

            Thanks!

            @
            cl -Yuqmake_pch.h -FIqmake_pch.h -Fpqmake_pch.pch -c -Fo./ -Fdqmake.pdb
            -W3 -nologo -O1 /MP -IC:\Software\Qt\qtbase\qmake -IC:\Software\Qt\qtbase\qma
            ke\library -IC:\Software\Qt\qtbase\qmake\generators -IC:\Software\Qt\qtbase\qmak
            e\generators\unix -IC:\Software\Qt\qtbase\qmake\generators\win32 -IC:\Software\Q
            t\qtbase\qmake\generators\mac -IC:\Software\Qt\qtbase\qmake\generators\integrity
            -IC:\Software\Qt\qtbase\include -IC:\Software\Qt\qtbase\include\QtCore -IC:\So
            ftware\Qt\qtbase\include\QtCore\5.2.1 -IC:\Software\Qt\qtbase\include\QtCore\5.2
            .1\QtCore -IC:\Software\Qt\qtbase\src\corelib\global -DHAVE_QCONFIG_CPP -IC:\S
            oftware\Qt\qtbase\mkspecs\win32-msvc2012 -IC:\Software\Qt\qtbase\tools\shared
            -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_TEXTCODEC -DQT_
            NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJ
            ECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DUNICODE -DQT_CRYPTOGRAPHICHASH_ON
            LY_SHA1 -DQT_JSON_READONLY -DQMAKE_OPENSOURCE_EDITION C:\Software\Qt\qtbase\src
            \corelib\json\qjson.cpp C:\Software\Qt\qtbase\src\corelib\json\qjsondocument.cpp
            C:\Software\Qt\qtbase\src\corelib\json\qjsonparser.cpp C:\Software\Qt\qtbase\sr
            c\corelib\json\qjsonarray.cpp C:\Software\Qt\qtbase\src\corelib\json\qjsonobject
            .cpp C:\Software\Qt\qtbase\src\corelib\json\qjsonvalue.cpp
            qjson.cpp
            qjsondocument.cpp
            qjsonparser.cpp
            qjsonarray.cpp
            qjsonobject.cpp
            qjsonvalue.cpp
            link -OUT:qmake.exe project.obj main.obj ioutils.obj proitems.obj qmake
            vfs.obj qmakeglobals.obj qmakeparser.obj qmakeevaluator.obj qmakebuiltins.obj
            makefile.obj unixmake.obj unixmake2.obj mingw_make.obj option.obj winmakefile.o
            bj projectgenerator.obj property.obj meta.obj makefiledeps.obj metamakefile.obj
            xmloutput.obj pbuilder_pbx.obj msvc_nmake.obj msvc_vcproj.obj msvc_vcxproj.obj
            msvc_objectmodel.obj msbuild_objectmodel.obj registry.obj gbuild.obj cesdkhan
            dler.obj qbitarray.obj qbuffer.obj qcryptographichash.obj qfilesystementry.ob
            j qfilesystemengine.obj qfilesystemengine_win.obj qfilesystemiterator_win.obj
            qfsfileengine.obj qfsfileengine_iterator.obj qarraydata.obj qbytearray.obj
            qvsnprintf.obj qbytearraymatcher.obj qdatetime.obj qdir.obj qdiriterator.ob
            j qfiledevice.obj qfile.obj qtemporaryfile.obj qabstractfileengine.obj qfsf
            ileengine_win.obj qsystemlibrary.obj qfileinfo.obj qglobal.obj qhash.obj qi
            odevice.obj qlist.obj qlinkedlist.obj qlocale.obj qlocale_tools.obj qlocale
            _win.obj qmalloc.obj qmap.obj qregexp.obj qtextcodec.obj qutfcodec.obj qst
            ring.obj qstringlist.obj qstringbuilder.obj qsystemerror.obj qtextstream.obj
            qdatastream.obj quuid.obj qvector.obj qsettings.obj qlibraryinfo.obj qvar
            iant.obj qsettings_win.obj qmetatype.obj qxmlstream.obj qxmlutils.obj qnume
            ric.obj qlogging.obj qjson.obj qjsondocument.obj qjsonparser.obj qjsonarray
            .obj qjsonobject.obj qjsonvalue.obj ole32.lib advapi32.lib qmake_pch.obj
            Microsoft (R) Incremental Linker Version 11.00.61030.0
            Copyright (C) Microsoft Corporation. All rights reserved.

                copy qmake.exe C:\Software\Qt\qtbase\bin\qmake.exe
            

            The system cannot find the file specified.
            Running configuration tests...
            'C:\Software\Qt\qtbase\bin\qmake.exe' is not recognized as an internal or extern
            al command,
            operable program or batch file.
            QMake failed!

            c:\Software\Qt>configure -developer-build -opensource -opengl desktop -mp -nomak
            e examples -nomake tests -confirm-license

            • cd qtbase
            • c:\Software\Qt\qtbase\configure.bat -top-level -developer-build -opensource -o
              pengl desktop -mp -nomake examples -nomake tests -confirm-license

            This is the Qt for Windows Open Source Edition.

            You have already accepted the terms of the license.

            Creating qmake...

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

            Running configuration tests...
            'C:\Software\Qt\qtbase\bin\qmake.exe' is not recognized as an internal or extern
            al command,
            operable program or batch file.
            QMake failed!

            c:\Software\Qt>configure -developer-build -opensource -opengl desktop -mp -nomak
            e examples -nomake tests -confirm-license

            • cd qtbase
            • c:\Software\Qt\qtbase\configure.bat -top-level -developer-build -opensource -o
              pengl desktop -mp -nomake examples -nomake tests -confirm-license

            This is the Qt for Windows Open Source Edition.

            You have already accepted the terms of the license.

            Creating qmake...

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

            Running configuration tests...
            Could not find output file: No such file or directory
            @

            1 Reply Last reply
            0
            • C Offline
              C Offline
              clochydd
              wrote on 6 Mar 2014, 15:54 last edited by
              #6

              Sorry, lucaghera, I cannot see what's going wrong.
              Hopefully someone else had a similiar isssue and may assist with that.

              1 Reply Last reply
              0

              3/6

              6 Mar 2014, 15:32

              • Login

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