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

qttools: compile error with system-wide litehtml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.9
    • Tools: Assistant
    • None
    • Linux/X11

    Description

      building assistant fails when litehtml is installed on ubuntu-24.04:

      FAILED: qttools/src/assistant/qlitehtml/src/CMakeFiles/qlitehtml.dir/container_qpainter.cpp.o 
      /usr/bin/ccache /usr/bin/clang++-18 -DQLITEHTML_STATIC_LIBRARY -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_JAVA_STYLE_ITERATORS -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -I/home/tim/build/build-qt6-dev-clang_18_qt_dev-Debug2/qttools/src/assistant/qlitehtml/src/qlitehtml_autogen/include -I/home/tim/dev/qt6-dev/qttools/src/assistant/qlitehtml/src -I/home/tim/build/build-qt6-dev-clang_18_qt_dev-Debug2/qtbase/include -I/home/tim/build/build-qt6-dev-clang_18_qt_dev-Debug2/qtbase/include/QtWidgets -I/home/tim/build/build-qt6-dev-clang_18_qt_dev-Debug2/qtbase/include/QtCore -I/home/tim/dev/qt6-dev/qtbase/mkspecs/linux-clang -I/home/tim/build/build-qt6-dev-clang_18_qt_dev-Debug2/qtbase/include/QtGui -g -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fcolor-diagnostics -w -fPIC -MD -MT qttools/src/assistant/qlitehtml/src/CMakeFiles/qlitehtml.dir/container_qpainter.cpp.o -MF qttools/src/assistant/qlitehtml/src/CMakeFiles/qlitehtml.dir/container_qpainter.cpp.o.d -o qttools/src/assistant/qlitehtml/src/CMakeFiles/qlitehtml.dir/container_qpainter.cpp.o -c /home/tim/dev/qt6-dev/qttools/src/assistant/qlitehtml/src/container_qpainter.cpp
      In file included from /home/tim/dev/qt6-dev/qttools/src/assistant/qlitehtml/src/container_qpainter.cpp:5:
      /home/tim/dev/qt6-dev/qttools/src/assistant/qlitehtml/src/container_qpainter_p.h:8:10: fatal error: 'litehtml.h' file not found
          8 | #include <litehtml.h>
            |          ^~~~~~~~~~~~
      1 error generated.
      ninja: build stopped: subcommand failed.
      

      reason is that litehtml.h is not installed into /usr/include/, but in /usr/include/litehtml/

      • there doesn't seem to be a way to opt-out the system-wide installed litehtml
      • qlitehtml has a newer version that provides QLITEHTML_USE_SYSTEM_LITEHTML, but (but updating i get a bunch of other compile errors)

      Attachments

        Issue Links

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

          Activity

            People

              jkobus Jarek Kobus
              timblechmann tim blechmann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes