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