linux libQt6Core.so.6:未找到版本“Qt_6.6”

x759pob2  于 11个月前  发布在  Linux
关注(0)|答案(1)|浏览(486)

首先,如果我的英语不好,我道歉。
我有一台安装了两个操作系统的笔记本电脑,一个是Windows 11,另一个是Linux Mint 21. 2 Cinnamon 64位。
大约一年前,我用pyqt5写了一个桌面应用程序。最近,我试图更新和开发其中的一些功能。所以我尝试使用pyqt6。我忘了说我使用VSCODE
该程序与PYQT6有一些兼容性问题,但最后我设法在Windows 11中解决了它们。我想在Linux mint中执行代码。但我得到了一个错误:

ImportError: /home/yousef/.local/lib/python3.10/site-packages/PyQt6/Qt6/lib/libQt6Core.so.6: version `Qt_6.6' not found (required by /home/yousef/.local/lib/python3.10/site-packages/PyQt6/QtCharts.abi3.so)

字符串
我问chatgpt的帮助,它说你必须安装qt 6我尝试了很多次使用qt在线安装程序,但没有成功。aftre下载约600 MB或一次下载约2. 5 GB后,它给出了一个错误,它不能下载一些文件(我认为源代码文件,然后我尝试使用我从QT网站下载的qt 6源代码进行离线安装。在根据Chatgpt进行解压缩后,我做到了:

./configure -opensource -confirm-license -release -static
-static-runtime -no-feature-relocatable -prefix /opt/qt-6.6.1


之后:

make -j4


但当它是约84%的错误来了.有没有空间离开的源代码文件夹是超过50 GB,所以我不得不停止使用candle +z的过程,删除该文件夹复制qt-everywhere-src-6.6.1.tar.xz到另一个驱动器,解压缩文件,然后:

./configure -opensource -confirm-license -release -static
-static-runtime -no-feature-relocatable -prefix /opt/qt-6.6.1


但现在它给出了这个错误:

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.  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:674 (include)   qttools/src/CMakeLists.txt:18 (qt_feature_evaluate_features)

-- Configuring incomplete, errors occurred! See also "/media/yousef/Programming/qt-everywhere-src-6.6.1/CMakeFiles/CMakeOutput.log". See also "/media/yousef/Programming/qt-everywhere-src-6.6.1/CMakeFiles/CMakeError.log". CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:1040 (message):   CMake exited with code 1.


我现在该怎么办??对不起,如果它太长,但我想也许你需要这些信息

roqulrg3

roqulrg31#

似乎有一个错误或与在线qt安装的东西.今天我再次尝试通过QT6在线安装和QT6安装成功.现在我的应用程序的作品.

相关问题