Cmake Error in installing Latte Dock

Installing latte from source code

sh install.sh
CMake Warning (dev) at CMakeLists.txt:1 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:39 (find_package):
  By not providing "FindLibTaskManager.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "LibTaskManager", but CMake did not find one.

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

    LibTaskManagerConfig.cmake
    libtaskmanager-config.cmake

  Add the installation prefix of "LibTaskManager" to CMAKE_PREFIX_PATH or set
  "LibTaskManager_DIR" to a directory containing one of the above files.  If
  "LibTaskManager" provides a separate development package or SDK, be sure it
  has been installed.

1 Like

Hi @arnav404js , welcome to the forum. Could you please provide some links to what “latte dock” is?

From this message, it seems like you need to install some dependencies before installing latte doc—something called libtaskmanager which should provide the cmake file FindLibTaskManager.cmake.

Also, please always note the version of Fedora you are using and exactly what steps you have run. That helps people reproduce the error, which is necessary for them to be able to debug it.

See more here: Welcome to Ask Fedora! Please read me first!

Fedora Linux 38
KDE Plasma Version: 5.27.7
Kernal Version: 6.4.14-200.fc38.x86_64 (64-bit)
Graphical Platform: Wayland

I use all these Commands to install Latte dock.

git clone https://github.com/KDE/latte-dock.git
sudo dnf install cmake extra-cmake-modules qt5-qtdeclarative-devel qt5-qtx11extras-devel kf5-kiconthemes-devel kf5-plasma-devel kf5-kwindowsystem-devel kf5-kdeclarative-devel kf5-kxmlgui-devel kf5-kactivities-devel gcc-c++ gcc xcb-util-devel kf5-kwayland-devel git gettext kf5-karchive-devel kf5-knotifications-devel libSM-devel kf5-kcrash-devel kf5-knewstuff-devel kf5-kdbusaddons-devel kf5-kxmlgui-devel kf5-kglobalaccel-devel kf5-kio-devel kf5-kguiaddons-devel kf5-kirigami2-devel kf5-kirigami-devel kf5-ki18n kf5-ki18n-devel
sh install.sh

got error after sh install.sh

error -

CMake Warning (dev) at CMakeLists.txt:1 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:39 (find_package):
  By not providing "FindLibTaskManager.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "LibTaskManager", but CMake did not find one.

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

    LibTaskManagerConfig.cmake
    libtaskmanager-config.cmake

  Add the installation prefix of "LibTaskManager" to CMAKE_PREFIX_PATH or set
  "LibTaskManager_DIR" to a directory containing one of the above files.  If
  "LibTaskManager" provides a separate development package or SDK, be sure it
  has been installed.
1 Like

You’re still missing a build dependency.

It’s already packaged for Fedora, so the Fedora package has the development requirements listed also. Try:

sudo dnf builddep latte-dock

They’re listed here:

https://src.fedoraproject.org/rpms/latte-dock/blob/rawhide/f/latte-dock.spec

I think plasma-workspace-devel provides libtaskmanager:

PS: are you trying to build a development version? Otherwise you can use the Fedora package:

sudo dnf install latte-dock
1 Like
sudo dnf builddep latte-dock

This Command shows that their is nothing to do.

I installed ‘plasma-workspace-devel’ package but it didn’t resolve the problem.

sh install.sh

Their’s a new error

CMake Warning (dev) at CMakeLists.txt:1 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
  By not providing "FindKF5ItemModels.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "KF5ItemModels", but CMake did not find one.

  Could not find a package configuration file provided by "KF5ItemModels"
  (requested version 5.102.0) with any of the following names:

    KF5ItemModelsConfig.cmake
    kf5itemmodels-config.cmake

  Add the installation prefix of "KF5ItemModels" to CMAKE_PREFIX_PATH or set
  "KF5ItemModels_DIR" to a directory containing one of the above files.  If
  "KF5ItemModels" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  /usr/lib64/cmake/LibTaskManager/LibTaskManagerConfig.cmake:41 (find_dependency)
  CMakeLists.txt:39 (find_package)


-- Configuring incomplete, errors occurred!

Their are some bugs in Latte dock of Fedora package

It did actually—it was able to find libtaskmanager. Now it’s looking for the next dependency. That’s just how dependency resolution works :slight_smile:

To find what package provides the cmake file for KF5ItemModels, try:

sudo dnf whatprovides '*/KF5ItemModels*.cmake'

then install this package. If a new error turns up after this, follow the same process until you’ve installed all the build requirements for latte-dock.

Have you filed a bug to let the maintainer know? All of this would probably be a lot easier for them, since they’d know exactly how to build it from source.

1 Like
sudo dnf whatprovides '*/KF5ItemModels*.cmake'

I install all the next dependencies

But now it sh install.sh gives

CMake Warning (dev) at CMakeLists.txt:1 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find QtWaylandScanner (missing: QtWaylandScanner_EXECUTABLE)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/ECM/find-modules/FindQtWaylandScanner.cmake:87 (find_package_handle_standard_args)
  CMakeLists.txt:65 (find_package)

after that I run sudo dnf whatprovides '*QtWaylandScanner*'

Last metadata expiration check: 0:01:52 ago on Wednesday 13 September 2023 01:14:06 AM.
extra-cmake-modules-5.104.0-1.fc38.noarch : Additional modules for CMake build system
Repo        : fedora
Matched from:
Other       : *QtWaylandScanner*

extra-cmake-modules-5.109.0-1.fc38.noarch : Additional modules for CMake build system
Repo        : @System
Matched from:
Other       : *QtWaylandScanner*

extra-cmake-modules-5.109.0-1.fc38.noarch : Additional modules for CMake build system
Repo        : updates
Matched from:
Other       : *QtWaylandScanner*

extra-cmake-modules is already installed, so i reinstall that. But it doesn’t resolve the error.

Actually latte-dock is no longer being maintained. I read the article, it says that it’s better to install latte dock from the github.

I think the location of the executable is different so Cmake can’t find it. A quick search brought me to this issue:

Try the workaround given in the first comment and see if that works? The path in the workaround seems to be the correct location of the qtwaylandscanner executable.

Ah, that’s unfortunate :frowning:

1 Like

Thanks issue resolved :blush:
I install this package qt5-qtwayland-devel

and install some more dependency using

sudo dnf whatprovides ' '
1 Like