QtWebEngine build failed on gn bootstrap.py

  • Hi all, i am trying to build Qt 5.9.3 and build failed on bootstrap.py with: Building gn manually in a temporary
    directory for bootstrapping...
    Traceback (most recent call last):
    File "D:\Qt5.9\qt5\qtwebengine\src\3rdparty\chromium\tools\gn\bootstrap
    \bootstrap.py", line 763, in <module>
    File "D:\Qt5.9\qt5\qtwebengine\src\3rdparty\chromium\tools\gn\bootstrap
    \bootstrap.py", line 126, in main
    return run_build(build_dir, options)
    File "D:\Qt5.9\qt5\qtwebengine\src\3rdparty\chromium\tools\gn\bootstrap
    \bootstrap.py", line 73, in run_build
    build_gn_with_ninja_manually(tempdir, options)
    File "D:\Qt5.9\qt5\qtwebengine\src\3rdparty\chromium\tools\gn\bootstrap
    \bootstrap.py", line 191, in build_gn_with_ninja_manually
    File "D:\Qt5.9\qt5\qtwebengine\src\3rdparty\chromium\tools\gn\bootstrap
    \bootstrap.py", line 142, in write_compiled_message
    os.path.join(SRC_ROOT, source),
    File "D:\Qt5.9\qt5\qtwebengine\src\3rdparty\chromium\tools\gn\bootstrap
    \bootstrap.py", line 44, in check_call
    subprocess.check_call(cmd, cwd=GN_ROOT, **kwargs)
    File "C:\Python27\lib\subprocess.py", line 181, in check_call
    retcode = call(*popenargs, **kwargs)
    File "C:\Python27\lib\subprocess.py", line 168, in call
    return Popen(*popenargs, **kwargs).wait()
    File "C:\Python27\lib\subprocess.py", line 390, in init
    errread, errwrite)
    File "C:\Python27\lib\subprocess.py", line 640, in _execute_child
    WindowsError: [Error 2] The system cannot find the file specified
    Project ERROR: GN build error!
    NMAKE : fatal error U1077: '(' : return code '0x3'
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    NMAKE : fatal error U1077: 'cd' : return code '0x2'

    Any suggestions? My build configuration is:

    CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
    SET _ROOT=D:\Qt5.9\qt5
    SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
    SET PATH=C:\OpenSSL-Win32\bin;%PATH%
    SET INCLUDE=D:\Downloads\icu-59.1-vs2015\include;%INCLUDE%
    SET LIB=D:\Downloads\icu-59.1-vs2015\lib;%LIB%
    SET PATH=D:\Downloads\icu-59.1-vs2015\lib;%PATH%
    SET PATH=D:\Downloads\jom-1.1.2;%PATH%
    SET WindowsSDKVersion=10.0.16299.0
    SET PATH=%_ROOT%\qtrepotools\bin;%PATH%
    CALL configure -debug-and-release -confirm-license -shared -mp -ltcg -plugin-sql-sqlite -opengl desktop -openssl-runtime -I C:\OpenSSL-Win32\include -L C:\OpenSSL-Win32\lib -icu -I D:\Downloads\icu-59.1-vs2015\include -L D:\Downloads\icu-59.1-vs2015\lib -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -make-tool D:\Downloads\jom-1.1.2\jom.exe -nomake examples -prefix /Qt5.9.3_Custom -no-warnings-are-errors -force-debug-info -platform win32-msvc
    SET _ROOT=
    cmd /k

  • I have the same issue. Does anybody have any hint?
    @Dimitar-Negrevski Did you contact Qt support already?

  • My case is solved: The path generated for the python script was too long for Windows. After shortening the path WebEngine compiled for me.

  • @Elgerton I have the same issue. How do you shorten the file path?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.