Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Build from source errors. QTWebengine (chromium)
Forum Updated to NodeBB v4.3 + New Features

Build from source errors. QTWebengine (chromium)

Scheduled Pinned Locked Moved Unsolved QtWebEngine
5 Posts 4 Posters 634 Views 3 Watching
  • 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.
  • P Offline
    P Offline
    Pedro Vicente
    wrote on 29 Mar 2024, 10:48 last edited by
    #1

    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.
    
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 29 Mar 2024, 11:33 last edited by
      #2

      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 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply 31 Mar 2024, 07:21
      0
      • S SGaist
        29 Mar 2024, 11:33

        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 ?

        P Offline
        P Offline
        Pedro Vicente
        wrote on 31 Mar 2024, 07:21 last edited by
        #3

        @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)

        C 1 Reply Last reply 31 Mar 2024, 08:47
        0
        • P Pedro Vicente
          31 Mar 2024, 07:21

          @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)

          C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 31 Mar 2024, 08:47 last edited by
          #4

          @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.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1
          • M Offline
            M Offline
            Mingxiang Xu
            wrote on 26 Jul 2024, 03:49 last edited by
            #5

            It's not related to Debug or Release. The error is caused by line endings. The parser expects unix instead of dos line endings.

            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