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

libclang is supposed to be optional dependency, but I can't turn it off

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8
    • None
    • Linux/Other display system

    Description

      I want to build Qt using the Clang compiler, but without a dependency to libclang. Thus I haven't installed libclang-dev.
      I configure the supermodule qt5.git with:

      configure -debug -linker lld -developer-build -make examples -- -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
      

      I also tried a bunch of:

      --no-feature-{qdoc,clangcpp,clang}

      but with no success.

      I always get errors like the following:

      CMake Error at /usr/lib/llvm-14/lib/cmake/clang/ClangTargets.cmake:756 (message):
        The imported target "clangBasic" references the file
      
           "/usr/lib/llvm-14/lib/libclangBasic.a"
      
        but this file does not exist.  Possible reasons include:
      
        * The file was deleted, renamed, or moved to another location.
      
        * An install or uninstall procedure did not complete successfully.
      
        * The installation package was faulty and contained
      
           "/usr/lib/llvm-14/lib/cmake/clang/ClangTargets.cmake"
      
        but not all the files it references.
      
      Call Stack (most recent call first):
        /usr/lib/cmake/clang-14/ClangConfig.cmake:19 (include)
        qttools/cmake/FindWrapLibClang.cmake:17 (find_package)
        qtbase/cmake/QtFindPackageHelpers.cmake:156 (find_package)
        qttools/configure.cmake:20 (qt_find_package)
        qtbase/cmake/QtFeature.cmake:676 (include)
        qttools/src/CMakeLists.txt:18 (qt_feature_evaluate_features)
      

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            jimis Dimitrios Apostolou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes