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 QtWebEngine. UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 3: invalid start byte

Build QtWebEngine. UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 3: invalid start byte

Scheduled Pinned Locked Moved Solved QtWebEngine
3 Posts 1 Posters 230 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.
  • J Offline
    J Offline
    Jemand
    wrote on 26 Feb 2025, 22:13 last edited by
    #1

    Hi. I am getting an error while building QtWebEngine.
    Here is the build configuration:

    ..\configure -prefix C:\qt6_x64 -opensource -release -confirm-license -opengl desktop -nomake tests -nomake examples -skip qthttpserver -skip qtlocation -skip qtspeech -skip qtgrpc -skip qt3d -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtlottie -skip qtmqtt -skip qtnetworkauth -skip qtopcua -skip qtpositioning -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtsvg -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtquickeffectmaker -skip qtquicktimeline -skip qtquick3d -skip qtquick3dphysics -skip qtgraphs  -openssl-linked -- -DOPENSSL_ROOT_DIR="C:\Users\user\Desktop\Qt6x64\openssl-3.0.13-WIN64A\build" -DOPENSSL_INCLUDE_DIR="C:\Users\user\Desktop\Qt6x64\openssl-3.0.13-WIN64A\build\include" -DOPENSSL_USE_STATIC_LIBS=ON -DFFMPEG_DIR=C:\Users\user\Desktop\vcpkg\installed\x64-windows
    
    C:\qt6_x64\bin\qt-configure-module.bat ../qtwebengine && cmake --build . --parallel && cmake --install . --config Release && cmake --install . --config Debug
    

    Here is the error:

    [5570/29388] LINK root_store_tool.exe root_store_tool.exe.pdb
    FAILED: root_store_tool.exe root_store_tool.exe.pdb
    "C:/Program Files/Python312/python.exe" ../../../../../qtwebengine/src/3rdparty/chromium/build/toolchain/win/tool_wrapper.py link-wrapper environment.x64 False link.exe "/OUT:./root_store_tool.exe" /nologo  "/PDB:./root_store_tool.exe.pdb" "@./root_store_tool.exe.rsp"
    Traceback (most recent call last):
      File "C:\Users\user\Desktop\Qt6x64\qtwebengine\src\3rdparty\chromium\build\toolchain\win\tool_wrapper.py", line 198, in <module>
        sys.exit(main(sys.argv[1:]))
                 ^^^^^^^^^^^^^^^^^^
      File "C:\Users\user\Desktop\Qt6x64\qtwebengine\src\3rdparty\chromium\build\toolchain\win\tool_wrapper.py", line 27, in main
        exit_code = WinTool().Dispatch(args)
                    ^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\user\Desktop\Qt6x64\qtwebengine\src\3rdparty\chromium\build\toolchain\win\tool_wrapper.py", line 69, in Dispatch
        return getattr(self, method)(*args[1:])
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\user\Desktop\Qt6x64\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
    [5572/29388] LINK transport_security_state_generator.exe transport_security_state_generator.exe.pdb
    FAILED: transport_security_state_generator.exe transport_security_state_generator.exe.pdb
    "C:/Program Files/Python312/python.exe" ../../../../../qtwebengine/src/3rdparty/chromium/build/toolchain/win/tool_wrapper.py link-wrapper environment.x64 False link.exe "/OUT:./transport_security_state_generator.exe" /nologo  "/PDB:./transport_security_state_generator.exe.pdb" "@./transport_security_state_generator.exe.rsp"
    Traceback (most recent call last):
      File "C:\Users\user\Desktop\Qt6x64\qtwebengine\src\3rdparty\chromium\build\toolchain\win\tool_wrapper.py", line 198, in <module>
        sys.exit(main(sys.argv[1:]))
                 ^^^^^^^^^^^^^^^^^^
      File "C:\Users\user\Desktop\Qt6x64\qtwebengine\src\3rdparty\chromium\build\toolchain\win\tool_wrapper.py", line 27, in main
        exit_code = WinTool().Dispatch(args)
                    ^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\user\Desktop\Qt6x64\qtwebengine\src\3rdparty\chromium\build\toolchain\win\tool_wrapper.py", line 69, in Dispatch
        return getattr(self, method)(*args[1:])
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\user\Desktop\Qt6x64\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
    

    Please help me.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jemand
      wrote on 26 Feb 2025, 22:25 last edited by
      #2

      Building from sources Qt 6.8.2

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jemand
        wrote on 17 Mar 2025, 15:46 last edited by Jemand
        #3

        Problem solved : it is necessary to change active console code page to utf-8 with chcp 65001 command.

        1 Reply Last reply
        0
        • J Jemand has marked this topic as solved on 17 Mar 2025, 16:01

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved