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. Building Qt 5.15.8 from source with qwebengine - jom error 2
Forum Updated to NodeBB v4.3 + New Features

Building Qt 5.15.8 from source with qwebengine - jom error 2

Scheduled Pinned Locked Moved Solved Installation and Deployment
8 Posts 3 Posters 672 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.
  • D Offline
    D Offline
    desun_evan
    wrote on last edited by
    #1

    I am trying to build qt 5.15.8 from source.

    Using configure with this web engine flag

    configure -webengine-proprietary-codecs

    with Visual Studio 2017 Developer Command Prompt v15.0

    I am calling vcvarsall.bat with

    @echo off
    
    REM Set up \Microsoft Visual Studio 2015, where <arch> is \c amd64, \c x86, etc.
    CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" amd64
    
    REM Edit this location to point to the source code of Qt
    SET _ROOT=C:\qt_source
    
    SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
    
    SET _ROOT=
    
    REM Keeps the command line open when this script is run.
    cmd /k
    

    Inside C:\qt_source\

    qt5vars.bat
    

    During build I am getting this jom error after calling jom...

    jom: C:\qt_source\qtbase\src\Makefile [sub-corelib-make_first] Error 2
    jom: C:\qt_source\qtbase\Makefile [sub-src-make_first] Error 2
    jom: C:\qt_source\Makefile [module-qtbase-make_first] Error 2
    

    Then the build stops.

    What is happening here? I get a similar error with
    nmake

    jsulmJ 1 Reply Last reply
    0
    • D desun_evan

      @jsulm said in Building Qt 5.15.8 from source with qwebengine - jom error 2:

      @desun_evan said in Building Qt 5.15.8 from source with qwebengine - jom error 2:

      'cmd' is not recognized as an internal or external command,

      It should be cmd.exe, not cmd

      This is what I get when I use nmake after configuring Qt, how might I change cmd to cmd.exe if this is just a step in the nmake execution?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #6

      @desun_evan

      @jsulm said in Building Qt 5.15.8 from source with qwebengine - jom error 2:

      'cmd' is not recognized as an internal or external command,

      It should be cmd.exe, not cmd

      It should not be necessary to specify cmd.exe, cmd should work fine.

      The only way you could/should be able to get this error message is if your PATH environment variable is empty or otherwise does not include your C:\Windows\System32 directory. You can test this by opening a Command Prompt, typing set PATH= and then trying to execute cmd. I do not know why this is your case but you must investigate.

      jsulmJ D 2 Replies Last reply
      2
      • D desun_evan

        I am trying to build qt 5.15.8 from source.

        Using configure with this web engine flag

        configure -webengine-proprietary-codecs

        with Visual Studio 2017 Developer Command Prompt v15.0

        I am calling vcvarsall.bat with

        @echo off
        
        REM Set up \Microsoft Visual Studio 2015, where <arch> is \c amd64, \c x86, etc.
        CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" amd64
        
        REM Edit this location to point to the source code of Qt
        SET _ROOT=C:\qt_source
        
        SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
        
        SET _ROOT=
        
        REM Keeps the command line open when this script is run.
        cmd /k
        

        Inside C:\qt_source\

        qt5vars.bat
        

        During build I am getting this jom error after calling jom...

        jom: C:\qt_source\qtbase\src\Makefile [sub-corelib-make_first] Error 2
        jom: C:\qt_source\qtbase\Makefile [sub-src-make_first] Error 2
        jom: C:\qt_source\Makefile [module-qtbase-make_first] Error 2
        

        Then the build stops.

        What is happening here? I get a similar error with
        nmake

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @desun_evan Please post the actual error. It must be before the lines you posted.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        D 1 Reply Last reply
        0
        • jsulmJ jsulm

          @desun_evan Please post the actual error. It must be before the lines you posted.

          D Offline
          D Offline
          desun_evan
          wrote on last edited by
          #3

          @jsulm

          I ran nmake this time...

          cmd /c C:\qt_source\qtbase\src\corelib\mimetypes\mime\generate.bat mimetypes\mime\packages\freedesktop.org.xml > .rcc\debug\qmimeprovider_database.cpp
          'cmd' is not recognized as an internal or external command,
          operable program or batch file.
          NMAKE : fatal error U1077: 'cmd' : return code '0x1'
          Stop.
          NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\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.
          
          jsulmJ 1 Reply Last reply
          0
          • D desun_evan

            @jsulm

            I ran nmake this time...

            cmd /c C:\qt_source\qtbase\src\corelib\mimetypes\mime\generate.bat mimetypes\mime\packages\freedesktop.org.xml > .rcc\debug\qmimeprovider_database.cpp
            'cmd' is not recognized as an internal or external command,
            operable program or batch file.
            NMAKE : fatal error U1077: 'cmd' : return code '0x1'
            Stop.
            NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\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.
            
            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @desun_evan said in Building Qt 5.15.8 from source with qwebengine - jom error 2:

            'cmd' is not recognized as an internal or external command,

            It should be cmd.exe, not cmd

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            D 1 Reply Last reply
            0
            • jsulmJ jsulm

              @desun_evan said in Building Qt 5.15.8 from source with qwebengine - jom error 2:

              'cmd' is not recognized as an internal or external command,

              It should be cmd.exe, not cmd

              D Offline
              D Offline
              desun_evan
              wrote on last edited by
              #5

              @jsulm said in Building Qt 5.15.8 from source with qwebengine - jom error 2:

              @desun_evan said in Building Qt 5.15.8 from source with qwebengine - jom error 2:

              'cmd' is not recognized as an internal or external command,

              It should be cmd.exe, not cmd

              This is what I get when I use nmake after configuring Qt, how might I change cmd to cmd.exe if this is just a step in the nmake execution?

              JonBJ 1 Reply Last reply
              0
              • D desun_evan

                @jsulm said in Building Qt 5.15.8 from source with qwebengine - jom error 2:

                @desun_evan said in Building Qt 5.15.8 from source with qwebengine - jom error 2:

                'cmd' is not recognized as an internal or external command,

                It should be cmd.exe, not cmd

                This is what I get when I use nmake after configuring Qt, how might I change cmd to cmd.exe if this is just a step in the nmake execution?

                JonBJ Offline
                JonBJ Offline
                JonB
                wrote on last edited by JonB
                #6

                @desun_evan

                @jsulm said in Building Qt 5.15.8 from source with qwebengine - jom error 2:

                'cmd' is not recognized as an internal or external command,

                It should be cmd.exe, not cmd

                It should not be necessary to specify cmd.exe, cmd should work fine.

                The only way you could/should be able to get this error message is if your PATH environment variable is empty or otherwise does not include your C:\Windows\System32 directory. You can test this by opening a Command Prompt, typing set PATH= and then trying to execute cmd. I do not know why this is your case but you must investigate.

                jsulmJ D 2 Replies Last reply
                2
                • JonBJ JonB

                  @desun_evan

                  @jsulm said in Building Qt 5.15.8 from source with qwebengine - jom error 2:

                  'cmd' is not recognized as an internal or external command,

                  It should be cmd.exe, not cmd

                  It should not be necessary to specify cmd.exe, cmd should work fine.

                  The only way you could/should be able to get this error message is if your PATH environment variable is empty or otherwise does not include your C:\Windows\System32 directory. You can test this by opening a Command Prompt, typing set PATH= and then trying to execute cmd. I do not know why this is your case but you must investigate.

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #7

                  @JonB You're right cmd should also work. Most probably broken PATH.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • JonBJ JonB

                    @desun_evan

                    @jsulm said in Building Qt 5.15.8 from source with qwebengine - jom error 2:

                    'cmd' is not recognized as an internal or external command,

                    It should be cmd.exe, not cmd

                    It should not be necessary to specify cmd.exe, cmd should work fine.

                    The only way you could/should be able to get this error message is if your PATH environment variable is empty or otherwise does not include your C:\Windows\System32 directory. You can test this by opening a Command Prompt, typing set PATH= and then trying to execute cmd. I do not know why this is your case but you must investigate.

                    D Offline
                    D Offline
                    desun_evan
                    wrote on last edited by
                    #8

                    @JonB I believe this was a path issue, thank you.

                    1 Reply Last reply
                    0
                    • D desun_evan has marked this topic as solved on

                    • Login

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