Installation failed: CMake Error at CMakeLists.txt:25 (find_package): FindKDecoration2.cmake
Closed this issue · 4 comments
I'm unable to install the project. There's no binary in Void Linux's (my distro's) repo, and building from source fails with the following message:
Lightly/build on master [?] via △ v3.21.1
❯ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_TESTING=OFF ..
Installing in /usr. Run /home/guzio/Downloads/Lightly/build/prefix.sh to set the environment for lightly.
CMake Error at CMakeLists.txt:25 (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.
-- Configuring incomplete, errors occurred!
See also "/home/guzio/Downloads/Lightly/build/CMakeFiles/CMakeOutput.log".
Now, I know it sounds like a missing dependency, but it's not. I copied packages from Arch (the only one that had all the packages under the same names in Void's repo), and as you can see, I now have them installed:
Lightly/build on master [?] via △ v3.21.1 took 5s
❯ sudo xbps-install -Sv cmake extra-cmake-modules kdecoration qt5-declarative qt5-x11extras
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/nonfree/x86_64-repodata' ...
Package `cmake' already installed.
Package `extra-cmake-modules' already installed.
Package `kdecoration' already installed.
Package `qt5-declarative' already installed.
Package `qt5-x11extras' already installed.
I did some research and it turns out some people had problems with outdated packages, but I fully updated every package (sudo xbps-install -Svuy;flatpak update --force-remove --assumeyes --noninteractive --verbose
is the command on Void (+Flatpak, but that probably was unnecessary)), and the error is still there. I also tried running prefix.sh
as the error message suggested, but to no avail. So, that leaves me here. There wasn't anything else here on GitHub that would be useful, and googling the error only leads to some unrelated "Package not found" errors (like this Pi Camera one from StackOverflow). The only thing I can do is provide some more info by cleaning the build
folder and posting the full (failed) build log:
Lightly/build on master took 2s
❯ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_TESTING=OFF ..
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.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
-- No qmake Qt5 binary found. Can't check QT_INSTALL_PREFIX
Installing in /usr. Run /home/guzio/Downloads/Lightly/build/prefix.sh to set the environment for lightly.
-- 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
CMake Error at CMakeLists.txt:25 (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.
-- Configuring incomplete, errors occurred!
See also "/home/guzio/Downloads/Lightly/build/CMakeFiles/CMakeOutput.log".
...and giving you the U-Name and NeoFetch output:
Lightly/build on master [?] via △ v3.21.1
❯ uname -a
Linux GuzioPad 5.11.21_1 #1 SMP 1621006888 x86_64 GNU/Linux
Lightly/build on master [?] via △ v3.21.1
6% ❯ neofetch
__.;=====;.__ guzio@GuzioPad
_.=+==++=++=+=+===;. --------------
-=+++=+===+=+=+++++=_ OS: Void Linux x86_64
. -=:`` `--==+=++==. Model: (censored for privacy)
_vi, ` --+=++++: Uptime: 3 hours, 47 mins
.uvnvi. _._ -==+==+. Resolution: 1920x1080
.vvnvnI` .;==|==;. :|=||=|. Terminal: yakuake
+QmQQmpvvnv; _yYsyQQWUUQQQm #QmQ#:QQQWUV$QQm. Memory: (censored for privacy)
-QQWQWpvvowZ?.wQQQE==<QWWQ/QWQW.QQWW(: jQWQE Disk (/): (censored for privacy)
-$QQQQmmU' jQQQ@+=<QWQQ)mQQQ.mQQQC+;jWQQ@'
-$WQ8YnI: QWQQwgQQWV`mWQQ.jQWQQgyyWW@!
-1vvnvv. `~+++` ++|+++
+vnvnnv, `-|===
+vnvnvns. . :=-
-Invnvvnsi..___..=sv=. `
+Invnvnvnnnnnnnnvvnn;.
~|Invnvnvvnvvvnnv}+`
-~|{*l}*|~
I accidentally left a command I copied from the terminal in the title. Whoops!
did you actually get the problem fixed?
Never mind installing devel packages on void fixed the problem
Having this issue, but can't install kdecoration-devel because of "unresolved dependencies". Reinstalled kdecoration and it persists