Qt6Coreconfig.cmake not found

Hello

Tumbleweed

When compiling the “applet” of WKDocker i get an error about Qt6Coreconfig.cmake not found.

x@grincheux:~/Documents/informatique/linux.app/wkdocker/WKDocker-master/applet/build> cmake ..
-- The CXX compiler identification is GNU 15.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Could NOT find Qt6Core (missing: Qt6Core_DIR)
CMake Error at CMakeLists.txt:13 (find_package):
Found package configuration file:

/usr/lib64/cmake/Qt6/Qt6Config.cmake

but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
FOUND. Reason given by package:

Failed to find required Qt component "Core".

Expected Config file at "/usr/lib64/cmake/Qt6Core/Qt6CoreConfig.cmake" does
NOT exist

what package to install ?

Thanks

Install qt6-base-devel. This will pull in more dependencies.
Also make sure that you have cmake-extra and kf6-extra-cmake-modules installed or you will encounter more compilation errors.

Applet compiles just fine here in VB test installation for replicating your issue.

Small typo in my reply. It is cmake-extras instead of cmake-extra

The 3 named (meta)packages will lead to successful configuration:

test@TWtestbox:~/Downloads/WKDocker-master/applet/build> cmake ..
-- The CXX compiler identification is GNU 15.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /usr/lib64/libOpenGL.so
-- Found WrapOpenGL: TRUE
-- Found WrapVulkanHeaders: /usr/include
-- Installing in the same prefix as Qt, adopting their path scheme.
-- Configuring done (0.7s)
-- Generating done (0.0s)
-- Build files have been written to: /home/test/Downloads/WKDocker-master/applet/build
test@TWtestbox:~/Downloads/WKDocker-master/applet/build>

Success.
Thank you very very much.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.