centos stream 编译sdk6.3.2 报 Add the installation prefix of “LLVM“ to ..... (find_package)

16 篇文章 0 订阅
 Could NOT find Qt6OpenGL (missing: Qt6OpenGL_DIR)
CMake Warning at qtbase/lib/cmake/Qt6/Qt6Config.cmake:263 (message):
  Failed to find Qt component "OpenGL".

  Expected Config file at
  "/home/dltc/sdk/qt-everywhere-src-6.3.0/qtbase/lib/cmake/Qt6OpenGL/Qt6OpenGLConfig.cmake"
  does NOT exist

Call Stack (most recent call first):
  qtdatavis3d/CMakeLists.txt:12 (find_package)


Skipping the build as the condition "TARGET Qt::OpenGL" is not met.
Configuring 'qttools'
CMake Error at /usr/lib64/cmake/clang/ClangConfig.cmake:9 (find_package):
  Could not find a package configuration file provided by "LLVM" with any of
  the following names:

    LLVMConfig.cmake
    llvm-config.cmake

  Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
  "LLVM_DIR" to a directory containing one of the above files.  If "LLVM"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  qttools/cmake/FindWrapLibClang.cmake:14 (find_package)
  qtbase/cmake/QtFindPackageHelpers.cmake:130 (find_package)
  qttools/configure.cmake:17 (qt_find_package)
  qtbase/cmake/QtFeature.cmake:573 (include)
  qttools/src/CMakeLists.txt:21 (qt_feature_evaluate_features)


-- Configuring incomplete, errors occurred!
See also "/home/dltc/sdk/qt-everywhere-src-6.3.0/CMakeFiles/CMakeOutput.log".
See also "/home/dltc/sdk/qt-everywhere-src-6.3.0/CMakeFiles/CMakeError.log".
CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:963 (message):
  CMake exited with code 1.


[root@localhost qt-everywhere-src-6.3.0]#

 

问题:再centos  stream9 上 编译 qt sdk 6.3.2  anywhere 时,./configure 总是报错,安装opengl相关,安装其他相关都不管用,一至报错

解决办法:

 根据提示“/usr/lib64/cmake/clang/ClangConfig.cmake:9 (find_package)”找到路径

/usr/lib64/cmake/clang/ClangConfig.cmake 进行如下操作:

注解:#find_package(LLVM REQUIRED CONFIG HINTS "${CLANG_INSTALL_PREFIX}/lib64/cmake/llvm")

将上面的这一行注解掉,保存就好了!,至于为什么还要观察中.....

[]

[执行中.....]

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值