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

    • Linux/Other display system
    • ae1eb394d (dev)

    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

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              jimis Dimitrios Apostolou
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes