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. NMAKE : fatal error U1073: don't know how to make '..\..\..\..\include\QtPlatformSupport\5.4.1\QtPlatformSupport\private\qgenericunixeventdispatcher_p.h'

NMAKE : fatal error U1073: don't know how to make '..\..\..\..\include\QtPlatformSupport\5.4.1\QtPlatformSupport\private\qgenericunixeventdispatcher_p.h'

Scheduled Pinned Locked Moved Solved Installation and Deployment
6 Posts 2 Posters 8.6k 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.
  • Q Offline
    Q Offline
    QtVik
    wrote on last edited by
    #1

    Hi I am trying t build the Qt 5.4.1 from the source code.

    Currently I am getting the following error:

    NMAKE : fatal error U1073: don't know how to make '........\include\QtPlatformSupport\5.4.1\QtPlatformSupport\private\qgenericunixeventdispatcher_p.h'

    NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' : return code '0x2' Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.

    Note: I have installed Directx and configured the required environment paths .

    Please help to know the root cause of this error.

    Thank you.

    raven-worxR 1 Reply Last reply
    0
    • Q QtVik

      Hi I am trying t build the Qt 5.4.1 from the source code.

      Currently I am getting the following error:

      NMAKE : fatal error U1073: don't know how to make '........\include\QtPlatformSupport\5.4.1\QtPlatformSupport\private\qgenericunixeventdispatcher_p.h'

      NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' : return code '0x2' Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.

      Note: I have installed Directx and configured the required environment paths .

      Please help to know the root cause of this error.

      Thank you.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @QtVik
      why are you using NMAKE for building Qt unix source file?
      How did you configure Qt??

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • Q Offline
        Q Offline
        QtVik
        wrote on last edited by
        #3

        Hi,
        Basically I wanted to create C++ application using Qt on MSVC complier option.
        I have downloaded the source code from the below mentioned link:
        https://download.qt.io/archive/qt/5.4/5.4.1/single/

        Followed the Readme document from the source code folder to build it.
        Document says for developer build use the following command:
        ./configure -developer-build -opensource
        After running this I get the message
        "Qt is now configured for building. Just run nmake."

        However if I run the command "make -j4 " as per the document it is not able to identify the make command.
        What setting i need to do to execute the make command ?

        Thanks :)

        raven-worxR 1 Reply Last reply
        0
        • Q QtVik

          Hi,
          Basically I wanted to create C++ application using Qt on MSVC complier option.
          I have downloaded the source code from the below mentioned link:
          https://download.qt.io/archive/qt/5.4/5.4.1/single/

          Followed the Readme document from the source code folder to build it.
          Document says for developer build use the following command:
          ./configure -developer-build -opensource
          After running this I get the message
          "Qt is now configured for building. Just run nmake."

          However if I run the command "make -j4 " as per the document it is not able to identify the make command.
          What setting i need to do to execute the make command ?

          Thanks :)

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @QtVik said in NMAKE : fatal error U1073: don't know how to make '..\..\..\..\include\QtPlatformSupport\5.4.1\QtPlatformSupport\private\qgenericunixeventdispatcher_p.h':

          "Qt is now configured for building. Just run nmake."

          as it says, using MSVC you should run nmake instead of 'make'.
          Try again doing the following:

          nmake dist-clean
          ./configure -developer-build -opensource -platform win32-msvc2013
          nmake
          

          adapt the -platform argument to the compiler you are using.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          Q 1 Reply Last reply
          1
          • raven-worxR raven-worx

            @QtVik said in NMAKE : fatal error U1073: don't know how to make '..\..\..\..\include\QtPlatformSupport\5.4.1\QtPlatformSupport\private\qgenericunixeventdispatcher_p.h':

            "Qt is now configured for building. Just run nmake."

            as it says, using MSVC you should run nmake instead of 'make'.
            Try again doing the following:

            nmake dist-clean
            ./configure -developer-build -opensource -platform win32-msvc2013
            nmake
            

            adapt the -platform argument to the compiler you are using.

            Q Offline
            Q Offline
            QtVik
            wrote on last edited by
            #5

            I did the 'nmake distclean', configured and ran nmake again.
            The compiler that I am using is visual studio 2010.
            But no luck with that, getting the same error :

            NMAKE : fatal error U1073: don't know how to make '........\include\QtPlatformSupport\5.4.1\QtPlatformSupport\private\qgenericunixeventdispatcher_p.h'
            Stop.
            NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' : return code '0x2'Stop.
            NMAKE : fatal error U1077: 'cd' : return code '0x2'Stop.
            NMAKE : fatal error U1077: 'cd' : return code '0x2'Stop.
            NMAKE : fatal error U1077: 'cd' : return code '0x2'Stop.
            NMAKE : fatal error U1077: 'cd' : return code '0x2'Stop.
            NMAKE : fatal error U1077: 'cd' : return code '0x2'Stop.

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              QtVik
              wrote on last edited by
              #6

              The problem got resolved !!!
              Issue was with the source code folder path length.
              After editing folder name it got build.
              Thank you so much @raven-worx for your help :)

              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