[Seek Help] 配置qt6,没成功
Tofloor
poster avatar
Lwh2008-Equinox
deepin
2024-04-21 21:11
Author

OS:Ubuntu 22.04

配置↓

./configure -confirm-license --prefix="/opt/usr" -opensource -plugin-sql-mysql -system-sqlite -system-harfbuzz -system-zlib -system-libpng -system-libjpeg -system-doubleconversion -system-pcre -openssl -no-rpath -verbose -optimized-qmake -dbus-linked -no-strip -no-separate-debug-info -qpa xcb -xcb -glib -icu -accessibility -nomake examples -nomake tests -no-directfb -no-use-gold-linker -opengl desktop

out↓

CMake Error at /usr/lib/llvm-11/lib/cmake/clang/ClangTargets.cmake:671 (message):

The imported target "clangBasic" references the file

"/usr/lib/llvm-11/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-11/lib/cmake/clang/ClangTargets.cmake"

but not all the files it references.

Call Stack (most recent call first):

/usr/lib/cmake/clang-11/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)

-- Configuring incomplete, errors occurred!

CMake Error at qtbase/cmake/QtProcessConfigureArgs.cma

安装依赖↓

sudo apt install clang* llvm* libpcre2-dev libdouble-conversion-dev libmysql-ocaml-dev libxkbcommon-x11-dev libsqlite3-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-render-util0-dev libxcb-xinerama0-dev libxinerama-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-render-util0-dev libxcb-xinerama0-dev libxinerama-dev libssl-dev libjpeg-dev firebird-dev libdbus-1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libharfbuzz-dev libpng-dev unixodbc-dev libpq-dev freetds-dev flite1-dev libspeechd-dev libudev-dev libzstd-dev libx11-xcb-dev libglu1-mesa-dev "^libxcb.*" build-essential libsystemd-dev libostree-dev -y

Reply Favorite View the author
All Replies
Lwh2008-Equinox
deepin
2024-04-21 21:52
#1

env:GitHub action。。。

Reply View the author
把一切操作变成GUI
deepin
Backbone of ecological co-construction group
2024-04-22 01:47
#2
sudo apt update
sudo apt install clang-tools clang-tools-11 libclang-common-11-dev libclang-11-dev libclang1-11 llvm-11-dev llvm-11-runtime llvm-common llvm-tools

Reply View the author