Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. FAILED: when Qt build from source on Windows 11

FAILED: when Qt build from source on Windows 11

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 463 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.
  • N Offline
    N Offline
    Navadvipa Chandra das
    wrote on last edited by
    #1

    Hello, All!
    I compile Qt from the source texts and get this error:

    Примечание: включение файла:  C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\appmodel.h
    Примечание: включение файла:   C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\minappmodel.h
    Примечание: включение файла:   C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared\pshpack4.h
    Примечание: включение файла:   C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared\poppack.h
    Примечание: включение файла:   C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared\pshpack4.h
    Примечание: включение файла:   C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared\poppack.h
    [9944/29684] LINK(DLL) vulkan-1.dll vulkan-1.dll.lib vulkan-1.dll.pdb
    FAILED: vulkan-1.dll vulkan-1.dll.lib vulkan-1.dll.pdb 
    C:/Prg/Python311/python.exe ../../../../../../../qt6/qtwebengine/src/3rdparty/chromium/build/toolchain/win/tool_wrapper.py link-wrapper environment.x64 False link.exe /OUT:./vulkan-1.dll /nologo /IMPLIB:./vulkan-1.dll.lib /DLL /PDB:./vulkan-1.dll.pdb @./vulkan-1.dll.rsp
    Traceback (most recent call last):
      File "C:\QtSource\qt6\qtwebengine\src\3rdparty\chromium\build\toolchain\win\tool_wrapper.py", line 198, in <module>
        sys.exit(main(sys.argv[1:]))
                 ^^^^^^^^^^^^^^^^^^
      File "C:\QtSource\qt6\qtwebengine\src\3rdparty\chromium\build\toolchain\win\tool_wrapper.py", line 27, in main
        exit_code = WinTool().Dispatch(args)
                    ^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\QtSource\qt6\qtwebengine\src\3rdparty\chromium\build\toolchain\win\tool_wrapper.py", line 69, in Dispatch
    
        return getattr(self, method)(*args[1:])
    
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
      File "C:\QtSource\qt6\qtwebengine\src\3rdparty\chromium\build\toolchain\win\tool_wrapper.py", line 143, in ExecLinkWrapper
    
        line = line.decode('utf8')
    
               ^^^^^^^^^^^^^^^^^^^
    
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 3: invalid start byte
    
    [9945/29684] CXX obj/third_party/webrtc/api/audio_codecs/opus/audio_encoder_opus_config/audio_encoder_multi_channel_opus_config.obj
    
    Примечание: включение файла:        C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\assert.h
    Примечание: включение файла:      ../../../../../../../qt6/qtwebengine/src/3rdparty/chromium/third_party/libaom/source/libaom\av1/common/scale.h
    Примечание: включение файла:       ../../../../../../../qt6/qtwebengine/src/3rdparty/chromium/third_party/libaom/source/libaom\av1/common/convolve.h
    Примечание: включение файла:      ../../../../../../../qt6/qtwebengine/src/3rdparty/chromium/third_party/libaom/source/libaom\av1/common/tile_common.h
    Примечание: включение файла:       ../../../../../../../qt6/qtwebengine/src/3rdparty/chromium/third_party/libaom/source/libaom\aom_dsp/rect.h
    Примечание: включение файла:    ../../../../../../../qt6/qtwebengine/src/3rdparty/chromium/third_party/libaom/source/libaom\av1/common/restoration.h
    Примечание: включение файла:   ../../../../../../../qt6/qtwebengine/src/3rdparty/chromium/third_party/libaom/source/libaom\av1/common/cdef_block.h
    ninja: build stopped: subcommand failed.
    tudio_version=2022
    win_linker_timing=true
    windows_sdk_path="C:/Program Files (x86)/Windows Kits/10"
    windows_sdk_version="10.0.22621.0"
    -- GN Done. Made 16918 targets from 2824 files in 50919ms
    [9516/11783] Building CXX object qtgraphs\src\graphs\CMakeFiles\Graphs.dir\.rcc\qmlcache\Graphs_qml\designer\Bars3DSpecifics_qml.cpp.obj
    [9517/11783] Running ninja for QtWebEngineCore in C:/QtSource/ReleaseVS/Build/qtwebengine/src/core/Release/AMD64
    [9991/11783] Building CXX object qtopcua\src\plugins\opcua\open62541\CMakeFiles\QOpen62541Plugin.dir\__\__\__\3rdparty\open62541\open62541.c.obj
    cl: командная строка warning D9025: переопределение "/Zc:strictStrings" на "/Zc:strictStrings-"
    cl: командная строка warning D9025: переопределение "/permissive-" на "/permissive"
    [10616/11783] Automatic MOC for target SerialBus
    AutoMoc: C:/QtSource/qt6/qtserialbus/src/serialbus/qcanframeprocessor.h: note: No relevant classes found. No output generated.
    
    [11578/11783] Linking CXX shared module qtbase\qml\QtWebView\qtwebviewquickplugin.dll
    FAILED: qtwebengine/src/core/Release/AMD64/QtWebEngineCore.stamp qtwebengine/src/core/Release/AMD64/obj/tools/v8_context_snapshot/v8_context_snapshot.stamp qtwebengine/src/core/Release/AMD64/QtWebEngineCore C:/QtSource/ReleaseVS/Build/qtwebengine/src/core/Release/AMD64/QtWebEngineCore.stamp C:/QtSource/ReleaseVS/Build/qtwebengine/src/core/Release/AMD64/obj/tools/v8_context_snapshot/v8_context_snapshot.stamp C:/QtSource/ReleaseVS/Build/qtwebengine/src/core/Release/AMD64/QtWebEngineCore 
    cmd.exe /C "cd /D C:\QtSource\ReleaseVS\Build\qtwebengine\src\core && C:\Prg\Ninja\ninja.exe -C C:/QtSource/ReleaseVS/Build/qtwebengine/src/core/Release/AMD64 QtWebEngineCore"
    ninja: build stopped: subcommand failed.
    
    C:\QtSource\ReleaseVS\Build>cd C:/QtSource/ReleaseVS/Build 
    
    C:\QtSource\ReleaseVS\Build>cmake --install . 
    -- Install configuration: "Release"
    -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake
    -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfigVersion.cmake
    -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfigVersionImpl.cmake
    -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6BuildInternals/QtBuildInternalsExtra.cmake
    -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6BuildInternals/QtStandaloneTestTemplateProject
    -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6BuildInternals/QtStandaloneTestTemplateProject/CMakeLists.txt
    -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6BuildInternals/QtStandaloneTestTemplateProject/Main.cmake
    -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6/qt.toolchain.cmake
    -- Installing: C:/QtSource/ReleaseVS/Lib/bin/qt-cmake.bat
    -- Installing: C:/QtSource/ReleaseVS/Lib/bin/qt-cmake-create.bat
    -- Installing: C:/QtSource/ReleaseVS/Lib/bin/qt-cmake-private.bat
    -- Installing: C:/QtSource/ReleaseVS/Lib/bin/qt-configure-module.bat
    -- Installing: C:/QtSource/ReleaseVS/Lib/bin/qt-cmake-standalone-test.bat
    
    

    Here the word "FAILED:" occurs twice: .But nevertheless, Qt is installed, but there are problems with QtWebEngineCore. Jib,re dslftn Python. It is called by the command C:/Prg/Python311/python .exe .
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 3: invalid start byte
    According to the message, it can be understood that the incorrect string is in UTF 8 encoding. It's hard to believe that incorrect UTF-8 encoded strings can be stored in the Qt source texts for a long time. I ask for help!

    Then I successfully compile Qt Creator.

    What am I doing wrong? How do I successfully compile QtWebEngineCore ?
    With best regards, Navadvipa Chandra das.

    sierdzioS 1 Reply Last reply
    0
    • N Navadvipa Chandra das

      Hello, All!
      I compile Qt from the source texts and get this error:

      Примечание: включение файла:  C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\appmodel.h
      Примечание: включение файла:   C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um\minappmodel.h
      Примечание: включение файла:   C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared\pshpack4.h
      Примечание: включение файла:   C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared\poppack.h
      Примечание: включение файла:   C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared\pshpack4.h
      Примечание: включение файла:   C:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared\poppack.h
      [9944/29684] LINK(DLL) vulkan-1.dll vulkan-1.dll.lib vulkan-1.dll.pdb
      FAILED: vulkan-1.dll vulkan-1.dll.lib vulkan-1.dll.pdb 
      C:/Prg/Python311/python.exe ../../../../../../../qt6/qtwebengine/src/3rdparty/chromium/build/toolchain/win/tool_wrapper.py link-wrapper environment.x64 False link.exe /OUT:./vulkan-1.dll /nologo /IMPLIB:./vulkan-1.dll.lib /DLL /PDB:./vulkan-1.dll.pdb @./vulkan-1.dll.rsp
      Traceback (most recent call last):
        File "C:\QtSource\qt6\qtwebengine\src\3rdparty\chromium\build\toolchain\win\tool_wrapper.py", line 198, in <module>
          sys.exit(main(sys.argv[1:]))
                   ^^^^^^^^^^^^^^^^^^
        File "C:\QtSource\qt6\qtwebengine\src\3rdparty\chromium\build\toolchain\win\tool_wrapper.py", line 27, in main
          exit_code = WinTool().Dispatch(args)
                      ^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\QtSource\qt6\qtwebengine\src\3rdparty\chromium\build\toolchain\win\tool_wrapper.py", line 69, in Dispatch
      
          return getattr(self, method)(*args[1:])
      
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      
        File "C:\QtSource\qt6\qtwebengine\src\3rdparty\chromium\build\toolchain\win\tool_wrapper.py", line 143, in ExecLinkWrapper
      
          line = line.decode('utf8')
      
                 ^^^^^^^^^^^^^^^^^^^
      
      UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 3: invalid start byte
      
      [9945/29684] CXX obj/third_party/webrtc/api/audio_codecs/opus/audio_encoder_opus_config/audio_encoder_multi_channel_opus_config.obj
      
      Примечание: включение файла:        C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\assert.h
      Примечание: включение файла:      ../../../../../../../qt6/qtwebengine/src/3rdparty/chromium/third_party/libaom/source/libaom\av1/common/scale.h
      Примечание: включение файла:       ../../../../../../../qt6/qtwebengine/src/3rdparty/chromium/third_party/libaom/source/libaom\av1/common/convolve.h
      Примечание: включение файла:      ../../../../../../../qt6/qtwebengine/src/3rdparty/chromium/third_party/libaom/source/libaom\av1/common/tile_common.h
      Примечание: включение файла:       ../../../../../../../qt6/qtwebengine/src/3rdparty/chromium/third_party/libaom/source/libaom\aom_dsp/rect.h
      Примечание: включение файла:    ../../../../../../../qt6/qtwebengine/src/3rdparty/chromium/third_party/libaom/source/libaom\av1/common/restoration.h
      Примечание: включение файла:   ../../../../../../../qt6/qtwebengine/src/3rdparty/chromium/third_party/libaom/source/libaom\av1/common/cdef_block.h
      ninja: build stopped: subcommand failed.
      tudio_version=2022
      win_linker_timing=true
      windows_sdk_path="C:/Program Files (x86)/Windows Kits/10"
      windows_sdk_version="10.0.22621.0"
      -- GN Done. Made 16918 targets from 2824 files in 50919ms
      [9516/11783] Building CXX object qtgraphs\src\graphs\CMakeFiles\Graphs.dir\.rcc\qmlcache\Graphs_qml\designer\Bars3DSpecifics_qml.cpp.obj
      [9517/11783] Running ninja for QtWebEngineCore in C:/QtSource/ReleaseVS/Build/qtwebengine/src/core/Release/AMD64
      [9991/11783] Building CXX object qtopcua\src\plugins\opcua\open62541\CMakeFiles\QOpen62541Plugin.dir\__\__\__\3rdparty\open62541\open62541.c.obj
      cl: командная строка warning D9025: переопределение "/Zc:strictStrings" на "/Zc:strictStrings-"
      cl: командная строка warning D9025: переопределение "/permissive-" на "/permissive"
      [10616/11783] Automatic MOC for target SerialBus
      AutoMoc: C:/QtSource/qt6/qtserialbus/src/serialbus/qcanframeprocessor.h: note: No relevant classes found. No output generated.
      
      [11578/11783] Linking CXX shared module qtbase\qml\QtWebView\qtwebviewquickplugin.dll
      FAILED: qtwebengine/src/core/Release/AMD64/QtWebEngineCore.stamp qtwebengine/src/core/Release/AMD64/obj/tools/v8_context_snapshot/v8_context_snapshot.stamp qtwebengine/src/core/Release/AMD64/QtWebEngineCore C:/QtSource/ReleaseVS/Build/qtwebengine/src/core/Release/AMD64/QtWebEngineCore.stamp C:/QtSource/ReleaseVS/Build/qtwebengine/src/core/Release/AMD64/obj/tools/v8_context_snapshot/v8_context_snapshot.stamp C:/QtSource/ReleaseVS/Build/qtwebengine/src/core/Release/AMD64/QtWebEngineCore 
      cmd.exe /C "cd /D C:\QtSource\ReleaseVS\Build\qtwebengine\src\core && C:\Prg\Ninja\ninja.exe -C C:/QtSource/ReleaseVS/Build/qtwebengine/src/core/Release/AMD64 QtWebEngineCore"
      ninja: build stopped: subcommand failed.
      
      C:\QtSource\ReleaseVS\Build>cd C:/QtSource/ReleaseVS/Build 
      
      C:\QtSource\ReleaseVS\Build>cmake --install . 
      -- Install configuration: "Release"
      -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake
      -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfigVersion.cmake
      -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfigVersionImpl.cmake
      -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6BuildInternals/QtBuildInternalsExtra.cmake
      -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6BuildInternals/QtStandaloneTestTemplateProject
      -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6BuildInternals/QtStandaloneTestTemplateProject/CMakeLists.txt
      -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6BuildInternals/QtStandaloneTestTemplateProject/Main.cmake
      -- Installing: C:/QtSource/ReleaseVS/Lib/lib/cmake/Qt6/qt.toolchain.cmake
      -- Installing: C:/QtSource/ReleaseVS/Lib/bin/qt-cmake.bat
      -- Installing: C:/QtSource/ReleaseVS/Lib/bin/qt-cmake-create.bat
      -- Installing: C:/QtSource/ReleaseVS/Lib/bin/qt-cmake-private.bat
      -- Installing: C:/QtSource/ReleaseVS/Lib/bin/qt-configure-module.bat
      -- Installing: C:/QtSource/ReleaseVS/Lib/bin/qt-cmake-standalone-test.bat
      
      

      Here the word "FAILED:" occurs twice: .But nevertheless, Qt is installed, but there are problems with QtWebEngineCore. Jib,re dslftn Python. It is called by the command C:/Prg/Python311/python .exe .
      UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 3: invalid start byte
      According to the message, it can be understood that the incorrect string is in UTF 8 encoding. It's hard to believe that incorrect UTF-8 encoded strings can be stored in the Qt source texts for a long time. I ask for help!

      Then I successfully compile Qt Creator.

      What am I doing wrong? How do I successfully compile QtWebEngineCore ?
      With best regards, Navadvipa Chandra das.

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @Navadvipa-Chandra-das do you need web engine module? If not, just skip it (pass -skip qtwebengine to configure).

      Regarding encoding issues: did you download the Windows source package?

      Btw. you do know that Qt has an installer which you can use and then don't need to compile Qt nor Qt Creator at all?

      (Z(:^

      N 1 Reply Last reply
      1
      • sierdzioS sierdzio

        @Navadvipa-Chandra-das do you need web engine module? If not, just skip it (pass -skip qtwebengine to configure).

        Regarding encoding issues: did you download the Windows source package?

        Btw. you do know that Qt has an installer which you can use and then don't need to compile Qt nor Qt Creator at all?

        N Offline
        N Offline
        Navadvipa Chandra das
        wrote on last edited by
        #3

        Hello Sierdzio and All!

        I didn't get the source code from the package. I used the command.

        git clone git://code.qt.io/qt/qt5.git qt6
        perl init-repository

        I don't need QtWebEngine by itself, but I want to try to do something on WebAssembler, and for it I need Qt WebEngine.

        I know about the ready-made installer, but it's more interesting to assemble it yourself. In addition, I tried to fix the source code of the Qt library itself.

        With best regards, Navadvipa Chandra das.

        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