qt6.7.1 configure error on cmake on ubuntu 24.04
I build qt6.7.1, it commit a error on configure, it called cmake functions at last. Is there some idea for this error? the configure command is below
../src/qt-everywhere-src-6.7.1/configure -prefix ${HOME}/qt6/prefix/qt-everywhere-src-6.7.1 -platform linux-g++ -device linux-generic-g++
the result is below
CMake Error at /usr/lib/llvm-18/lib/cmake/clang/ClangTargets.cmake:833 (message):
The imported target "clangBasic" references the file
"/usr/lib/llvm-18/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-18/lib/cmake/clang/ClangTargets.cmake"
but not all the files it references.
Call Stack (most recent call first):
/usr/lib/cmake/clang-18/ClangConfig.cmake:20 (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:678 (include)
qttools/src/CMakeLists.txt:18 (qt_feature_evaluate_features)
the cmake version is below
cmake version 3.28.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
Edited by 王泽锋