Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build on CachyOS with Plasma 6.2.4. Build error. #171

Open
huestack opened this issue Dec 6, 2024 · 7 comments
Open

Cannot build on CachyOS with Plasma 6.2.4. Build error. #171

huestack opened this issue Dec 6, 2024 · 7 comments

Comments

@huestack
Copy link

huestack commented Dec 6, 2024

Hi,

I am trying to build and install Klassy in CachyOS with Plasma 6.2.4 and NVidia 565.77. Here is my system info:

Operating System: CachyOS Linux 
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.1
Kernel Version: 6.12.2-2-cachyos (64-bit)
Graphics Platform: Wayland

I have installed all dependencies, and run ./install.sh. But the build fail here:

-- Found clang-format version 18
-- The following OPTIONAL packages have been found:

 * KF5FrameworkIntegration (required version >= 5.102.0), KF5 Framework Integration, <https://projects.kde.org/projects/frameworks/frameworkintegration>
   Required to use KStyle convenience functionalities in style
   Required to use KStyle convenience functionalities in style
 * Qt5X11Extras
 * Qt5Network (required version >= 5.15.16)
 * Qt5Qml (required version >= 5.15.16)
 * Qt5QmlModels (required version >= 5.15.16)
 * Qt5Quick
 * Qt6DBusTools (required version >= 6.8.1)
 * Qt6DBus (required version >= 6.5.0)
 * Qt6WidgetsTools (required version >= 6.8.1)
 * OpenGL
 * Vulkan
 * KF6FrameworkIntegration (required version >= 6.2.0), KF6 Framework Integration, <https://projects.kde.org/projects/frameworks/frameworkintegration>
   Required to use KStyle convenience functionalities in style
 * Qt6Svg (required version >= 6.6.0)
 * Qt6Xml (required version >= 6.6.0)
 * Freetype
 * Fontconfig
 * Qt6CoreTools (required version >= 6.8.1)
 * Qt6QmlTools (required version >= 6.8.1)
 * PkgConfig
 * XKB (required version >= 0.5.0), XKB API common to servers and clients., <http://xkbcommon.org>
 * WrapVulkanHeaders
 * Qt6GuiTools (required version >= 6.8.1)
 * Qt5Core
 * Git

-- The following REQUIRED packages have been found:

 * ECM (required version >= 5.102.0)
 * Qt5DBus (required version >= 5.15.2)
 * Qt5Widgets (required version >= 5.15.2)
 * KF5CoreAddons (required version >= 5.102.0)
 * KF5Config (required version >= 5.102.0)
 * KF5ConfigWidgets (required version >= 5.102.0)
 * Qt5Gui (required version >= 5.15.2)
 * KF5GuiAddons (required version >= 5.102.0)
 * KF5I18n (required version >= 5.102.0)
 * KF5IconThemes (required version >= 5.102.0)
 * KF5WindowSystem (required version >= 5.102.0)
 * Qt5 (required version >= 5.15.2)
 * KF5Kirigami2 (required version >= 5.102.0)
 * KF5 (required version >= 5.102.0)
 * KF6KCMUtils (required version >= 6.2.0), Helps create configuration modules
   KCMUtils used for the configuration modules or the decoration and Qt Style
 * KF6CoreAddons (required version >= 6.2.0)
 * KF6ColorScheme (required version >= 6.2.0)
 * KF6Config (required version >= 6.2.0)
 * KF6GuiAddons (required version >= 6.2.0)
 * Gettext
 * KF6I18n (required version >= 6.2.0)
 * KF6IconThemes (required version >= 6.2.0)
 * KF6WindowSystem (required version >= 6.2.0)
 * KF6 (required version >= 6.2.0)
 * Qt6 (required version >= 6.6.0)
 * Qt6Quick (required version >= 6.5.0)
 * KF6KirigamiPlatform (required version >= 6.2.0)
 * KDecoration2

-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.

Am I doing something wrong or is there bug in install script? I tried installing from AUR, but same error occurred.

Also, I cannot install from OBS repository. Getting error like Maximum size reached and when I change XferCommand to wget I get key related error.

Thanks for this wonderful tool.

@Stranget0
Copy link

I am also having a similar error on my setup.

OS: Arch Linux x86_64
DE: KDE Plasma 6.2.4
WM: KWin (Wayland)
WM Theme: Breeze

My full log messages are these:

-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- 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
-- 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
-- Found KF5CoreAddons: /usr/lib/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found version "5.116.0")
-- Found KF5Config: /usr/lib/cmake/KF5Config/KF5ConfigConfig.cmake (found version "5.116.0")
-- Found KF5ConfigWidgets: /usr/lib/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake (found version "5.116.0")
-- Found KF5GuiAddons: /usr/lib/cmake/KF5GuiAddons/KF5GuiAddonsConfig.cmake (found version "5.116.0")
-- Found Gettext: /usr/bin/msgmerge (found version "0.22.5")
-- Found KF5I18n: /usr/lib/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.116.0")
-- Found KF5IconThemes: /usr/lib/cmake/KF5IconThemes/KF5IconThemesConfig.cmake (found version "5.116.0")
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/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 KF5WindowSystem: /usr/lib/cmake/KF5WindowSystem/KF5WindowSystemConfig.cmake (found version "5.116.0")
-- Found KF5: success (found suitable version "5.116.0", minimum required is "5.102.0") found components: CoreAddons Config ConfigWidgets GuiAddons I18n IconThemes WindowSystem
-- Found KF5Kirigami2: /usr/lib/cmake/KF5Kirigami2/KF5Kirigami2Config.cmake (found version "5.116.0")
-- Found KF5: success (found suitable version "5.116.0", minimum required is "5.102.0") found components: Kirigami2
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
CMake Error at /usr/lib/cmake/Qt6Qml/Qt6QmlFindQmlscInternal.cmake:33 (find_package):
  find_package called with invalid argument "6.2.breeze6.2.1"
Call Stack (most recent call first):
  /usr/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:153 (include)
  /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  /usr/lib/cmake/KF6Config/KF6ConfigConfig.cmake:53 (find_dependency)
  /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  /usr/lib/cmake/KF6ColorScheme/KF6ColorSchemeConfig.cmake:41 (find_dependency)
  /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  /usr/lib/cmake/KF6FrameworkIntegration/KF6FrameworkIntegrationConfig.cmake:38 (find_dependency)
  CMakeLists.txt:119 (find_package)
  CMakeLists.txt:199 (build_Qt6)


-- Found OpenGL: /usr/lib/libOpenGL.so
-- Found WrapOpenGL: TRUE
-- Found XKB: /usr/lib/libxkbcommon.so (found suitable version "1.7.0", minimum required is "0.5.0")
-- Found WrapVulkanHeaders: /usr/include
-- Found KF6CoreAddons: /usr/lib/cmake/KF6CoreAddons/KF6CoreAddonsConfig.cmake (found version "6.8.0")
-- Found KF6ColorScheme: /usr/lib/cmake/KF6ColorScheme/KF6ColorSchemeConfig.cmake (found version "6.8.0")
-- Found KF6Config: /usr/lib/cmake/KF6Config/KF6ConfigConfig.cmake (found version "6.8.0")
-- Found KF6GuiAddons: /usr/lib/cmake/KF6GuiAddons/KF6GuiAddonsConfig.cmake (found version "6.8.0")
-- Found KF6I18n: /usr/lib/cmake/KF6I18n/KF6I18nConfig.cmake (found version "6.8.0")
-- Found KF6IconThemes: /usr/lib/cmake/KF6IconThemes/KF6IconThemesConfig.cmake (found version "6.8.0")
-- Found KF6WindowSystem: /usr/lib/cmake/KF6WindowSystem/KF6WindowSystemConfig.cmake (found version "6.8.0")
-- Found KF6: success (found suitable version "6.8.0", minimum required is "6.2.0") found components: CoreAddons ColorScheme Config GuiAddons I18n IconThemes WindowSystem
CMake Warning (dev) at /usr/share/ECM/kde-modules/KDEClangFormat.cmake:107 (add_custom_command):
  Exactly one of PRE_BUILD, PRE_LINK, or POST_BUILD must be given.  Assuming
  POST_BUILD to preserve backward compatibility.

  Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
  Run "cmake --help-policy CMP0175" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
Call Stack (most recent call first):
  CMakeLists.txt:207 (kde_clang_format)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning at /usr/share/ECM/kde-modules/KDEGitCommitHooks.cmake:155 (message):
  No clang-format executable was found, skipping the formatting pre-commit
  hook
Call Stack (most recent call first):
  CMakeLists.txt:208 (kde_configure_git_pre_commit_hook)


-- The following OPTIONAL packages have been found:

 * KF5FrameworkIntegration (required version >= 5.102.0), KF5 Framework Integration, <https://projects.kde.org/projects/frameworks/frameworkintegration>
   Required to use KStyle convenience functionalities in style
   Required to use KStyle convenience functionalities in style
 * Qt5X11Extras
 * Qt5Network (required version >= 5.15.16)
 * Qt5Qml (required version >= 5.15.16)
 * Qt5QmlModels (required version >= 5.15.16)
 * Qt5Quick
 * Qt6DBusTools (required version >= 6.8.1)
 * Qt6DBus (required version >= 6.5.0)
 * Qt6WidgetsTools (required version >= 6.8.1)
 * OpenGL
 * Vulkan
 * KF6FrameworkIntegration (required version >= 6.2.0), KF6 Framework Integration, <https://projects.kde.org/projects/frameworks/frameworkintegration>
   Required to use KStyle convenience functionalities in style
 * Qt6Svg (required version >= 6.6.0)
 * Qt6Xml (required version >= 6.6.0)
 * Freetype
 * Fontconfig
 * Qt6CoreTools (required version >= 6.8.1)
 * Qt6QmlTools (required version >= 6.8.1)
 * PkgConfig
 * XKB (required version >= 0.5.0), XKB API common to servers and clients., <http://xkbcommon.org>
 * WrapVulkanHeaders
 * Qt6GuiTools (required version >= 6.8.1)
 * Qt5Core
 * Git

-- The following REQUIRED packages have been found:

 * ECM (required version >= 5.102.0)
 * Qt5DBus (required version >= 5.15.2)
 * Qt5Widgets (required version >= 5.15.2)
 * KF5CoreAddons (required version >= 5.102.0)
 * KF5Config (required version >= 5.102.0)
 * KF5ConfigWidgets (required version >= 5.102.0)
 * Qt5Gui (required version >= 5.15.2)
 * KF5GuiAddons (required version >= 5.102.0)
 * KF5I18n (required version >= 5.102.0)
 * KF5IconThemes (required version >= 5.102.0)
 * KF5WindowSystem (required version >= 5.102.0)
 * Qt5 (required version >= 5.15.2)
 * KF5Kirigami2 (required version >= 5.102.0)
 * KF5 (required version >= 5.102.0)
 * KF6KCMUtils (required version >= 6.2.0), Helps create configuration modules
   KCMUtils used for the configuration modules or the decoration and Qt Style
 * KF6CoreAddons (required version >= 6.2.0)
 * KF6ColorScheme (required version >= 6.2.0)
 * KF6Config (required version >= 6.2.0)
 * KF6GuiAddons (required version >= 6.2.0)
 * Gettext
 * KF6I18n (required version >= 6.2.0)
 * KF6IconThemes (required version >= 6.2.0)
 * KF6WindowSystem (required version >= 6.2.0)
 * KF6 (required version >= 6.2.0)
 * Qt6 (required version >= 6.6.0)
 * Qt6Quick (required version >= 6.5.0)
 * KF6KirigamiPlatform (required version >= 6.2.0)
 * KDecoration2

@captcapslock
Copy link

captcapslock commented Dec 9, 2024

same here, running...

  • OS: EndeavourOS x86_64
  • Kernel: Linux 6.12.1-arch1-1
  • DE: KDE Plasma 6.2.4
  • WM: KWin (Wayland)
  • WM Theme: Breeze

CMake Error at /usr/lib/cmake/Qt6Qml/Qt6QmlFindQmlscInternal.cmake:33 (find_package): find_package called with invalid argument "6.2.breeze6.2.1" Call Stack (most recent call first): /usr/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:153 (include) /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package) /usr/lib/cmake/KF6Config/KF6ConfigConfig.cmake:53 (find_dependency) /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package) /usr/lib/cmake/KF6ColorScheme/KF6ColorSchemeConfig.cmake:41 (find_dependency) /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package) /usr/lib/cmake/KF6FrameworkIntegration/KF6FrameworkIntegrationConfig.cmake:38 (find_dependency) CMakeLists.txt:119 (find_package) CMakeLists.txt:199 (build_Qt6)

@rocka
Copy link

rocka commented Dec 11, 2024

Maybe it's a Qt or KF6 issue? In the cmake call stack, is Qt6QmlFindQmlscInternal.cmake

https://github.com/qt/qtdeclarative/blob/b6d1cdcadb21a4b4db8e415ce5b00ee4b75b746b/src/qml/Qt6QmlFindQmlscInternal.cmake#L33

find_package(Qt6QmlCompilerPlusPrivateTools ${PROJECT_VERSION} QUIET CONFIG
    PATHS
            ${_qt_additional_host_packages_prefix_paths}
)

which uses ${PROJECT_VERSION} to find Qt6QmlCompilerPlusPrivateTools. But here, it's defined as

set(PROJECT_VERSION "6.2.breeze6.2.1")

hence the error


It will build if you replace this line with:

set(PROJECT_VERSION "6.2.1")

but also comes with some warnings:

-- The following OPTIONAL packages have not been found:

 * Qt6QmlCompilerPlusPrivateTools (required version >= 6.2.1)
 * Vulkan

however those warnings are also present when building the original breeze package on Arch Linux currently, not sure whether it's expected

@formicant
Copy link

I had the same issue with aur/klassy 6.2.breeze6.2.1-3.
Yesterday, aur/klassy 6.2.breeze6.2.1-4 came out and it builds without issues.

@coffeinflash
Copy link

Thank you!
Building succeeded on openSUSE Tumbleweed with adding
"sed -i 's|set(PROJECT_VERSION "6.2.breeze6.2.1")|set(PROJECT_VERSION "6.2.1")|' CMakeLists.txt"
to the spec-file.
https://build.opensuse.org/package/show/home:Herbster0815/plasma6-theme-klassy

@captcapslock
Copy link

Maybe it's a Qt or KF6 issue? In the cmake call stack, is Qt6QmlFindQmlscInternal.cmake

https://github.com/qt/qtdeclarative/blob/b6d1cdcadb21a4b4db8e415ce5b00ee4b75b746b/src/qml/Qt6QmlFindQmlscInternal.cmake#L33

find_package(Qt6QmlCompilerPlusPrivateTools ${PROJECT_VERSION} QUIET CONFIG
    PATHS
            ${_qt_additional_host_packages_prefix_paths}
)

which uses ${PROJECT_VERSION} to find Qt6QmlCompilerPlusPrivateTools. But here, it's defined as

set(PROJECT_VERSION "6.2.breeze6.2.1")

hence the error

It will build if you replace this line with:

set(PROJECT_VERSION "6.2.1")

@rocka thank you. I actually had my eye on that line, not really knowing what Im doing and tried set(PROJECT_VERSION "6.2.breeze6.2.1-4") ` with no success :) thank you for your effort on the explanations.

@formicant also thanks to you for the heads up. reinstalling with aur/klassy 6.2.breeze6.2.1-4 also did it for me!

@TheUnknownHack3r
Copy link

Same issue here. I use CachyOS with Plasma 6.3.0.

-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- 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
-- 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
-- Installing in the same prefix as Qt, adopting their path scheme.
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /usr/lib/libOpenGL.so
-- Found WrapOpenGL: TRUE
-- Found XKB: /usr/lib/libxkbcommon.so (found suitable version "1.8.0", minimum required is "0.5.0")
-- Found WrapVulkanHeaders: /usr/include
-- Found KF6CoreAddons: /usr/lib/cmake/KF6CoreAddons/KF6CoreAddonsConfig.cmake (found version "6.10.0")
-- Found KF6ColorScheme: /usr/lib/cmake/KF6ColorScheme/KF6ColorSchemeConfig.cmake (found version "6.10.0")
-- Found KF6Config: /usr/lib/cmake/KF6Config/KF6ConfigConfig.cmake (found version "6.10.0")
-- Found KF6GuiAddons: /usr/lib/cmake/KF6GuiAddons/KF6GuiAddonsConfig.cmake (found version "6.10.0")
-- Found Gettext: /usr/bin/msgmerge (found version "0.23.1")
-- Found KF6I18n: /usr/lib/cmake/KF6I18n/KF6I18nConfig.cmake (found version "6.10.0")
-- Found KF6IconThemes: /usr/lib/cmake/KF6IconThemes/KF6IconThemesConfig.cmake (found version "6.10.0")
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/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/cmake/KF6WindowSystem/KF6WindowSystemConfig.cmake (found version "6.10.0")
-- Found KF6: success (found suitable version "6.10.0", minimum required is "6.2.0") found components: CoreAddons ColorScheme Config GuiAddons I18n IconThemes WindowSystem
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
CMake Error at CMakeLists.txt:171 (find_package):
  By not providing "FindKDecoration2.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "KDecoration2", but CMake did not find one.

  Could not find a package configuration file provided by "KDecoration2" with
  any of the following names:

    KDecoration2Config.cmake
    kdecoration2-config.cmake

  Add the installation prefix of "KDecoration2" to CMAKE_PREFIX_PATH or set
  "KDecoration2_DIR" to a directory containing one of the above files.  If
  "KDecoration2" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:202 (build_Qt6)


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'klassy-6.2.breeze6.2.1-4':
error: packages failed to build: klassy-6.2.breeze6.2.1-4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants