Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62342

Qt WebEngine build fails on non English system locale on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P4: Low
    • None
    • 5.9.1
    • WebEngine
    • None
    • vs2015+ openssl +icu+ +win10 64位 

    Description

      下载 http://mirrors.ustc.edu.cn/qtproject/archive/qt/5.9/5.9.1/qt-opensource-windows-x86-5.9.1.exe 安装,安装的时候勾选了源码,使用icu vs2015平台编译,编译qtwebengien模块的时候报错,并且错误信息与源码对应不上。

      使用的cnfigure如下:

      "E:\work\qt-make\Qt5.9.1\5.9.1\Src\configure.bat" -prefix E:\work\qt-make\qt_shared -debug -opensource -platform win32-msvc2015 -nomake examples -nomake tests -skip qtwebview -accessibility -plugin-sql-odbc -plugin-sql-sqlite -opengl dynamic   -qt-zlib -qt-pcre -icu -qt-libpng -qt-libjpeg -qt-freetype -qt-harfbuzz  -ssl -openssl -mp -I E:\work\qt-make\openssl_shared\include -L E:\work\qt-make\openssl_shared\lib

       错误提示信息为

      注意: 包含文件: ../../../../../Qt5.9.1/5.9.1/Src/qtwebengine/src/3rdparty/chromium\cc/base/cc_export.h
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(46): error C2059: 语法错误:"public"
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(48): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(48): error C2550: "cc::IndexRect": 构造函数初始值设定项列表只能在构造函数定义中使用
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(48): warning C4508: "cc::IndexRect": 函数应返回一个值;假定"void"返回类型
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(50): error C2588: "::~IndexRect": 非法的全局 析构函数
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(50): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(50): error C2610: "int cc::IndexRect(void)": 不是可默认为的特殊成员函数
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(52): error C2270: "left": 非成员函数上不允许修饰符
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(52): error C2065: "left_": 未声明的标识符
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(53): error C2270: "right": 非成员函数上不允许修饰符
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(53): error C2065: "right_": 未声明的标识符
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(54): error C2270: "top": 非成员函数上不允许修饰符
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(54): error C2065: "top_": 未声明的标识符
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(55): error C2270: "bottom": 非成员函数上不允许修饰符
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(55): error C2065: "bottom_": 未声明的标识符
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(58): error C2270: "num_indices_x": 非成员函数上不允许修饰符
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(58): error C2065: "right_": 未声明的标识符
      e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h(58): error C2065: "left_": 未声明的标识符

       

      奇怪的是我看了e:\work\qt-make\qt5.9.1\5.9.1\src\qtwebengine\src\3rdparty\chromium\cc\base\index_rect.h 46行是注释的内容,与提示的错误信息对应不上。

      Attachments

        1. 1.png
          1.png
          300 kB
        2. 2.png
          2.png
          83 kB
        3. index_rect.h
          5 kB
        4. log.txt
          181 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            maoliangwu peipei xu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes