kwin-effects-cube icon indicating copy to clipboard operation
kwin-effects-cube copied to clipboard

Cmake fails on Plasma 6 Beta 2

Open matinlotfali opened this issue 2 years ago • 3 comments

Running cmake for kwin-effects-cube fails with the errors below in Plasma 6 Dev 2. I am the maintainer of KDE-Rounded-Corners kwin effects and it looks like I still can't move to plasma 6. Right?

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- 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
-- Installing in the same prefix as Qt, adopting their path scheme.
-- Setting build type to 'Debug' as none was specified.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE  
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Found WrapOpenGL: TRUE  
-- Found XKB: /usr/lib/x86_64-linux-gnu/libxkbcommon.so (found suitable version "1.4.0", minimum required is "0.5.0") 
-- Found WrapVulkanHeaders: /usr/include  
-- Found KF6Config: /usr/lib/x86_64-linux-gnu/cmake/KF6Config/KF6ConfigConfig.cmake (found version "5.248.0") 
-- Found KF6ConfigWidgets: /usr/lib/x86_64-linux-gnu/cmake/KF6ConfigWidgets/KF6ConfigWidgetsConfig.cmake (found version "5.248.0") 
-- Found KF6CoreAddons: /usr/lib/x86_64-linux-gnu/cmake/KF6CoreAddons/KF6CoreAddonsConfig.cmake (found version "5.248.0") 
-- Found KF6GlobalAccel: /usr/lib/x86_64-linux-gnu/cmake/KF6GlobalAccel/KF6GlobalAccelConfig.cmake (found version "5.248.0") 
-- Found Gettext: /usr/bin/msgmerge (found version "0.21") 
-- Found KF6I18n: /usr/lib/x86_64-linux-gnu/cmake/KF6I18n/KF6I18nConfig.cmake (found version "5.248.0") 
-- Could NOT find KF6KCMUtils (missing: KF6KCMUtils_DIR)
-- Could NOT find KF6KCMUtils: found neither KF6KCMUtilsConfig.cmake nor kf6kcmutils-config.cmake 
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found KF6WindowSystem: /usr/lib/x86_64-linux-gnu/cmake/KF6WindowSystem/KF6WindowSystemConfig.cmake (found version "5.248.0") 
-- Found KF6XmlGui: /usr/lib/x86_64-linux-gnu/cmake/KF6XmlGui/KF6XmlGuiConfig.cmake (found version "5.248.0") 
CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find KF6 (missing: KCMUtils) (found suitable version "5.248.0",
  minimum required is "5.240.0")
Call Stack (most recent call first):
  /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/ECM/find-modules/FindKF6.cmake:93 (find_package_handle_standard_args)
  CMakeLists.txt:26 (find_package)


-- Configuring incomplete, errors occurred!

matinlotfali avatar Dec 25 '23 04:12 matinlotfali

The cube effect is included in Plasma 6. I'll archive this repo.

zzag avatar Dec 26 '23 13:12 zzag

I use your repos to read and learn. That is why I tried to build it.

Now by archiving you stop me from learning how to build for plasma 6.

matinlotfali avatar Dec 26 '23 16:12 matinlotfali

I'm not stopping you or anything.. I'm just saying that the cube effect has been upstreamed to kdeplasma-addons and there's no point to fix compilation issues here.

As for your build issue, it looks like you need to install kcmutils. But even with that sorted out, you would need to adjust to some changes in kwin, which are not described anywhere yet. Change find_package(KWinEffects) to find_package(KWin) and adjust header includes, e.g. #include <kwineffects.h> -> #include <effect/effect.h> + #include<effect/effecthandler.h>

zzag avatar Dec 26 '23 19:12 zzag