Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29169

Build failure with system litehtml 0.7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 13.0.0-beta2
    • Qt Creator 10.0.1
    • All Other Issues
    • None
    • * NixOS
      * system litehtml 0.7
    • Linux/X11
    • 7071977bd (master), 65fcb9b74 (13.0)

    Description

      When I try to build with the newly released litehtml 0.7 I get errors:

      FAILED: src/libs/qlitehtml/src/CMakeFiles/qlitehtml.dir/container_qpainter.cpp.o 
      /nix/store/08hlkqf5i2fv58a4vr2y0708wj1b0ind-clang-wrapper-14.0.6/bin/clang++ -DQLITEHTML_LIBRARY -DQT_CORE_LIB -DQT_CREATOR -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_JAVA_STYLE_ITERATORS -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DRELATIVE_DATA_PATH=\"../share/qtcreator\" -DRELATIVE_DOC_PATH=\"../share/doc/qtcreator\" -DRELATIVE_LIBEXEC_PATH=\"../libexec/qtcreator\" -DRELATIVE_PLUGIN_PATH=\"../lib/qtcreator/plugins\" -Dqlitehtml_EXPORTS -I/build/qt-creator-opensource-src-10.0.1/build/src/libs/qlitehtml/src -I/build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src -I/build/qt-creator-opensource-src-10.0.1/build/src/libs/qlitehtml/src/qlitehtml_autogen/include -isystem /nix/store/akcfah8446z0awnpkbxdlszm46avnppk-qtbase-6.5.0/include/QtWidgets -isystem /nix/store/akcfah8446z0awnpkbxdlszm46avnppk-qtbase-6.5.0/include/QtCore -isystem /nix/store/akcfah8446z0awnpkbxdlszm46avnppk-qtbase-6.5.0/mkspecs/linux-g++ -isystem /nix/store/akcfah8446z0awnpkbxdlszm46avnppk-qtbase-6.5.0/include/QtGui -isystem /nix/store/whxjzv79whhqwfccy9c9lsy9xy5l3s69-litehtml-0.7/include/litehtml -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fPIC -std=c++17 -MD -MT src/libs/qlitehtml/src/CMakeFiles/qlitehtml.dir/container_qpainter.cpp.o -MF src/libs/qlitehtml/src/CMakeFiles/qlitehtml.dir/container_qpainter.cpp.o.d -o src/libs/qlitehtml/src/CMakeFiles/qlitehtml.dir/container_qpainter.cpp.o -c /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter.cpp
      In file included from /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter.cpp:5:
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:61:52: error: no type named 'tchar_t' in namespace 'litehtml'
          litehtml::uint_ptr create_font(const litehtml::tchar_t *faceName,
                                               ~~~~~~~~~~^
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:68:36: error: no type named 'tchar_t' in namespace 'litehtml'
          int text_width(const litehtml::tchar_t *text, litehtml::uint_ptr hFont) override;
                               ~~~~~~~~~~^
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:70:36: error: no type named 'tchar_t' in namespace 'litehtml'
                         const litehtml::tchar_t *text,
                               ~~~~~~~~~~^
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:76:21: error: no type named 'tchar_t' in namespace 'litehtml'
          const litehtml::tchar_t *get_default_font_name() const override;
                ~~~~~~~~~~^
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:78:37: error: no type named 'tchar_t' in namespace 'litehtml'
          void load_image(const litehtml::tchar_t *src,
                                ~~~~~~~~~~^
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:79:37: error: no type named 'tchar_t' in namespace 'litehtml'
                          const litehtml::tchar_t *baseurl,
                                ~~~~~~~~~~^
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:81:41: error: no type named 'tchar_t' in namespace 'litehtml'
          void get_image_size(const litehtml::tchar_t *src,
                                    ~~~~~~~~~~^
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:82:41: error: no type named 'tchar_t' in namespace 'litehtml'
                              const litehtml::tchar_t *baseurl,
                                    ~~~~~~~~~~^
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:84:88: error: non-virtual member function marked 'override' hides virtual member function
          void draw_background(litehtml::uint_ptr hdc, const litehtml::background_paint &bg) override;
                                                                                             ^
      /nix/store/whxjzv79whhqwfccy9c9lsy9xy5l3s69-litehtml-0.7/include/litehtml/document_container.h:44:19: note: hidden overloaded virtual function 'litehtml::document_container::draw_background' declared here: type mismatch at 2nd parameter ('const std::vector<litehtml::background_paint> &' vs 'const litehtml::background_paint &')
                      virtual void                            draw_background(litehtml::uint_ptr hdc, const std::vector<litehtml::background_paint>& bg) = 0;
                                                              ^
      In file included from /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter.cpp:5:
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:89:38: error: no type named 'tchar_t' in namespace 'litehtml'
          void set_caption(const litehtml::tchar_t *caption) override;
                                 ~~~~~~~~~~^
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:90:39: error: no type named 'tchar_t' in namespace 'litehtml'
          void set_base_url(const litehtml::tchar_t *base_url) override;
                                  ~~~~~~~~~~^
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:93:42: error: no type named 'tchar_t' in namespace 'litehtml'
          void on_anchor_click(const litehtml::tchar_t *url, const litehtml::element::ptr &el) override;
                                     ~~~~~~~~~~^
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:94:37: error: no type named 'tchar_t' in namespace 'litehtml'
          void set_cursor(const litehtml::tchar_t *cursor) override;
                                ~~~~~~~~~~^
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:95:35: error: no type named 'tstring' in namespace 'litehtml'; did you mean 'string'?
          void transform_text(litehtml::tstring &text, litehtml::text_transform tt) override;
                              ~~~~~~~~~~^~~~~~~
                                        string
      /nix/store/whxjzv79whhqwfccy9c9lsy9xy5l3s69-litehtml-0.7/include/litehtml/os_types.h:9:13: note: 'string' declared here
              using std::string;
                         ^
      In file included from /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter.cpp:5:
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:96:31: error: no type named 'tstring' in namespace 'litehtml'; did you mean 'string'?
          void import_css(litehtml::tstring &text,
                          ~~~~~~~~~~^~~~~~~
                                    string
      /nix/store/whxjzv79whhqwfccy9c9lsy9xy5l3s69-litehtml-0.7/include/litehtml/os_types.h:9:13: note: 'string' declared here
              using std::string;
                         ^
      In file included from /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter.cpp:5:
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:97:37: error: no type named 'tstring' in namespace 'litehtml'; did you mean 'string'?
                          const litehtml::tstring &url,
                                ~~~~~~~~~~^~~~~~~
                                          string
      /nix/store/whxjzv79whhqwfccy9c9lsy9xy5l3s69-litehtml-0.7/include/litehtml/os_types.h:9:13: note: 'string' declared here
              using std::string;
                         ^
      In file included from /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter.cpp:5:
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:98:31: error: no type named 'tstring' in namespace 'litehtml'; did you mean 'string'?
                          litehtml::tstring &baseurl) override;
                          ~~~~~~~~~~^~~~~~~
                                    string
      /nix/store/whxjzv79whhqwfccy9c9lsy9xy5l3s69-litehtml-0.7/include/litehtml/os_types.h:9:13: note: 'string' declared here
              using std::string;
                         ^
      In file included from /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter.cpp:5:
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:102:33: error: non-virtual member function marked 'override' hides virtual member function
                        bool valid_y) override;
                                      ^
      /nix/store/whxjzv79whhqwfccy9c9lsy9xy5l3s69-litehtml-0.7/include/litehtml/document_container.h:54:19: note: hidden overloaded virtual function 'litehtml::document_container::set_clip' declared here: different number of parameters (2 vs 4)
                      virtual void                            set_clip(const litehtml::position& pos, const litehtml::border_radiuses& bdr_radius) = 0;
                                                              ^
      In file included from /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter.cpp:5:
      /build/qt-creator-opensource-src-10.0.1/src/libs/qlitehtml/src/container_qpainter_p.h:105:71: error: no type named 'tchar_t' in namespace 'litehtml'
          std::shared_ptr<litehtml::element> create_element(const litehtml::tchar_t *tag_name,
                                                                  ~~~~~~~~~~^
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      20 errors generated.
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              con Eike Ziller
              fgaz Francesco Gazzetta
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes