Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.8
-
None
-
-
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
- is duplicated by
-
QTBUG-126788 CMake Error at /usr/lib/llvm-14/lib/cmake/clang/ClangTargets.cmake:750 (message): The imported target "clangBasic" references the file "/usr/lib/llvm-14/lib/libclangBasic.a" but this file does not exist
- Closed