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")
将上面的这一行注解掉,保存就好了!,至于为什么还要观察中.....
[]
[执行中.....]