Build from source errors. QTWebengine (chromium)
-
Building QT from source
System Windows 11, Visual Studio 22,
qt-everywhere-src-6.6.3
https://download.qt.io/archive/qt/6.6/6.6.3/single/
using on a VS shell
configure.bat -debug -prefix "c:\qt_install"
compile errors are
C:\qt-everywhere\qt-everywhere-src-6.6.3\qtwebengine\src\3rdparty\chromium\build\write_build_date_header.py:19: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC). date = datetime.datetime.utcfromtimestamp(int(args.timestamp)) [114/28339] ACTION //chrome/browser/extensions/api:api_reg...n_bundle_generator_registration(//build/toolchain/win:x64) FAILED: gen/chrome/browser/extensions/api/generated_api_registration.cc gen/chrome/browser/extensions/api/generated_api_registration.h C:/Python312/python.exe ../../../3rdparty/chromium/tools/json_schema_compiler/compiler.py --root=../../../3rdparty/chromium/ --destdir=gen --namespace=extensions::api::%(namespace)s --bundle-name=Chrome --generator=cpp-bundle-registration --impl-dir=chrome/browser/extensions/api --include-rules=extensions/common/api:extensions::api::%(namespace)s ../../../3rdparty/chromium/chrome/common/extensions/api/enterprise_hardware_platform.idl ../../../3rdparty/chromium/chrome/common/extensions/api/webrtc_logging_private.idl ../../../3rdparty/chromium/chrome\common\extensions\api\enterprise_hardware_platform.idl(5) : Unexpected EoF reached after ^ 'canning error. Illegal character ' ../../../3rdparty/chromium/chrome\common\extensions\api\webrtc_logging_private.idl(5) : Unexpected EoF reached after ^ 'canning error. Illegal character ' Traceback (most recent call last): File "C:\qt-everywhere\qt-everywhere-src-6.6.3\qtwebengine\src\3rdparty\chromium\tools\json_schema_compiler\compiler.py", line 209, in <module> result = GenerateSchema(opts.generator, file_paths, opts.root, opts.destdir, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\qt-everywhere\qt-everywhere-src-6.6.3\qtwebengine\src\3rdparty\chromium\tools\json_schema_compiler\compiler.py", line 96, in GenerateSchema type_generator = CppTypeGenerator(api_model, ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\qt-everywhere\qt-everywhere-src-6.6.3\qtwebengine\src\3rdparty\chromium\tools\json_schema_compiler\cpp_type_generator.py", line 35, in __init__ self._default_namespace = list(model.namespaces.values())[0] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ IndexError: list index out of range [131/28339] CXX obj/base/allocator/partition_allocator/partition_alloc/memory_reclaimer.obj ninja: build stopped: subcommand failed. [5333/11720] Building CXX object qtdeclarative\src\qml\CMakeFiles\Qml.dir\jsruntime\qv4context.cpp.obj FAILED: qtwebengine/src/core/Debug/AMD64/QtWebEngineCore.stamp qtwebengine/src/core/Debug/AMD64/obj/tools/v8_context_snapshot/v8_context_snapshot.stamp qtwebengine/src/core/Debug/AMD64/QtWebEngineCore C:/qt-everywhere/qt-everywhere-src-6.6.3/qtwebengine/src/core/Debug/AMD64/QtWebEngineCore.stamp C:/qt-everywhere/qt-everywhere-src-6.6.3/qtwebengine/src/core/Debug/AMD64/obj/tools/v8_context_snapshot/v8_context_snapshot.stamp C:/qt-everywhere/qt-everywhere-src-6.6.3/qtwebengine/src/core/Debug/AMD64/QtWebEngineCore cmd.exe /C "cd /D C:\qt-everywhere\qt-everywhere-src-6.6.3\qtwebengine\src\core && C:\Windows\System32\ninja.exe -C C:/qt-everywhere/qt-everywhere-src-6.6.3/qtwebengine/src/core/Debug/AMD64 QtWebEngineCore" [5351/11720] Automatic MOC for target OpcUa ninja: build stopped: subcommand failed.
-
Hi,
Which version of the archive did you download ? It should be the zip file since you are on Windows.
Next, do you really need the webengine module built ? Especially in debug mode ? That's one of the thorniest module to build so if you don't need it, just let it out. It take quite a lot of time and space to build and even more in debug mode.
One more thing: use out of source builds. In case of issues, it's way easier to nuke the build folder and start fresh.
Out of curiosity, why do you need your own debug build of Qt ?
-
@SGaist said in Build from source errors. QTWebengine (chromium):
Out of curiosity, why do you need your own debug build of Qt ?
I always use debug versions with complete source code in all work that I do (C++ development).
I reported this error, because it seems like a bug, this is a basic Windows build with a -debug flag, it should have been tested somehow before release (yes, I used the zip from the download site)
-
@Pedro-Vicente said in Build from source errors. QTWebengine (chromium):
I always use debug versions with complete source code in all work that I do (C++ development).
You can install all with the online installer.
-
It's not related to Debug or Release. The error is caused by line endings. The parser expects unix instead of dos line endings.