CMake does not find Package KF5CompletionConfig.cmake

Hello,
I tried to compile smb4k5 from the official download page at sourcefourge.
However, I get the following error, when trying to compile according to the Readme.md file:

CMake Error at CMakeLists.txt:36 (find_package):
By not providing “FindKF5Completion.cmake” in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
“KF5Completion”, but CMake did not find one.

According to yast KF5Completion5 is installed.

I am on Tumbleweed with the newest updates.

There are many other packages that are not found, but also packages that are found like:
KF5ConfigWidgets

Looking into the installed directories, I cannot find any difference in the packages.

Thanks,
Johannes

Why?
The latest version is available in the KDE:Extra repository, also for Tumbleweed:
http://software.opensuse.org//download.html?project=KDE%3AExtra&package=smb4k

CMake Error at CMakeLists.txt:36 (find_package):
By not providing “FindKF5Completion.cmake” in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
“KF5Completion”, but CMake did not find one.

zypper wp "cmake(KF5Completion)"
Das Kommando 'what-provides' wurde durch 'search --provides --match-exact' ersetzt.
Siehe 'help search' für alle verfügbaren Optionen.
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...

S | Name              | Zusammenfassung                                | Typ  
--+-------------------+------------------------------------------------+------
i | kcompletion-devel | Provides widgets with advanced completion su-> | Paket

According to yast KF5Completion5 is installed.

You need to install the corresponding -devel packages if you want to compile software.

Hello,
thanks for the info.
Actually I have installed it already from your software.opensuse.org repository… :slight_smile:

The reason I couldn’t see the -develop package was, that I was looking for KF5completon and not for kcompletion…

Sorry to ask, but is there a way to install all k*-devel packages without selecting every single one?

Thanks
Johannes

You mean home:wolfi323:branches:KDE:Frameworks5?
I wouldn’t recommend to use that for one package alone.
This repo is special in that it installs all files to /opt/kf5/, which may cause problems if you don’t actually use Plasma5 from my repo too.

Better install the standard version from KDE:Extra.

Sorry to ask, but is there a way to install all k*-devel packages without selecting every single one?

There is a “KDE Frameworks Development” pattern.
You can install that in YaST via “View”->“Patterns”, or using zypper:

sudo zypper in patterns-openSUSE-devel_kde_frameworks

It’s also possible to install all build dependencies of a particular package via:

sudo zypper si -d smb4k

But that would also need KDE:Extra, as the smb4k package in Tumbleweed is still KDE4 based. (we cannot submit a newer version as we would need to remove the mount helper, as the security team doesn’t like it)