Building Qt 5.15.8 from source with qwebengine - jom error 2
-
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
-
@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?
@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 yourC:\Windows\System32
directory. You can test this by opening a Command Prompt, typingset PATH=
and then trying to executecmd
. I do not know why this is your case but you must investigate. -
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
@desun_evan Please post the actual error. It must be before the lines you posted.
-
@desun_evan Please post the actual error. It must be before the lines you posted.
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.
-
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.
@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
-
@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
@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?
-
@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?
@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 yourC:\Windows\System32
directory. You can test this by opening a Command Prompt, typingset PATH=
and then trying to executecmd
. I do not know why this is your case but you must investigate. -
@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 yourC:\Windows\System32
directory. You can test this by opening a Command Prompt, typingset PATH=
and then trying to executecmd
. I do not know why this is your case but you must investigate. -
@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 yourC:\Windows\System32
directory. You can test this by opening a Command Prompt, typingset PATH=
and then trying to executecmd
. I do not know why this is your case but you must investigate.@JonB I believe this was a path issue, thank you.
-