1. 目的。
qt4升级qt5之后,QString::toDouble方法不依赖于locale,导致很多欧洲国家(e.g.Germany,使用,作为小数点)转换有问题。 因此修改qt库,在QString::toDouble中直接调用QLocale的toDouble方法。仅仅编译qtbase (libQt5Core.so.5.15.0 不行,提示Qt5WebEngineCore), 以此也需要编译qtwebengine。
2. 准备环境。
2.1 查看README
因为Src/qtwebengine下没有README文件,所以,查看Src下的README文件,给出:
System requirements
------------------
- Perl 5.8 or later //当前版本为v5.26.1
- Python 2.7 or later // 当前版本为v2.7.17
- C++ compiler supporting the C++11 standard // 当前支持
For other platform specific requirements,
please see section “Setting up your machine” on:
http://wiki.qt.io/Get_The_Source
根据 README提示,进入https://doc.qt.io/qt-5/linux-requirements.html, 按照文档要求,检查以下依赖库是否全部安装(包含但不限于):
libxcb 1.11 libXrender libxcb-render libxcb-render-util libxcb-shape libxcb-randr libxcb-xfixes libxcb-sync libxcb-shm libxcb-icccm libxcb-keysyms libxcb-image libxkbcommon libxkbcommon-x11 libfontconfig libfreetype libXext libX11 libxcb libX11-xcb libSM libICE libglib-2.0 libpthread
libatspi opengl flite1-dev libspeechd-dev speech-dispatcher
关于 Qt WebEngine Dependencies https://doc.qt.io/qt-5/qtwebengine-platform-notes.html.
On all platforms, the following tools are required at build time:
Python 2.7.5 or later. Python 3 is not supported.
Bison, Flex
GPerf
Node.js for a full