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

Installer-packaged "lupdate -clang-parser" fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.1.0 RC
    • Tools: Linguist
    • None
    • All

    Description

      lupdate's clang parser needs CLANG_RESOURCE_DIR which contains header
      files that are read when building the AST. Qt doesn't ship clang
      headers nor libraries. lupdate and qdoc are linking libclang
      statically.

      Qt Creator, on the other hand, ships libclang, including
      CLANG_RESOURCE_DIR. One idea was to locate and use that directory. However, the
      versions of libclang for Qt and Qt Creator differ. Especially when
      using an older Qt (6.0.x built with libclang 10) with a current Qt
      Creator built with libclang 11.

      All this points to: we need to ship libclang with Qt.

      That shipped libclang version could be built dynamically and shared
      between qdoc and lupdate.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes