Build qt5.15.0 qtwebengine on SUSE SLE-15

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

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值