why not make kdsingleapplication required in cmake?
-
Just wondering why not make it a requirement in cmake if it will be built anyway
https://github.com/strawberrymusicplayer/strawberry/blob/05381096aa47b04117254f09d5954c0b2ab801ff/CMakeLists.txt#L312 -
@jms
Because many linux distributions do not have KDSingleApplication yet, and we also require version 1.1.0 which was released in December. But the plan in the long run is to drop it from 3rdparty altogether. -
@jonas
ok
Thanks for you're explanation and your work -
@jonas I'm trying to build strawberry and getting a failure on finding KDSingleApplication-qt6Config.cmake so far I'm not finding the right package on Kubuntu 23.10 what dev package am I missing?
-
@rajm said in why not make kdsingleapplication required in cmake?:
KDSingleApplication
It's available in the upcoming Ubuntu Noble: https://packages.ubuntu.com/search?keywords=kdsingleapplication&searchon=names&suite=all§ion=all (but too old anyway).
But CMake should not fail, it should fallback to using 3rdparty/kdsingleapplication.
-
@jonas I'm getting (after deleting CMakeCache.txt)
By not providing "FindKDSingleApplication-qt6.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "KDSingleApplication-qt6", but CMake did not find one. Could not find a package configuration file provided by "KDSingleApplication-qt6" (requested version 1.1.0) with any of the following names: KDSingleApplication-qt6Config.cmake kdsingleapplication-qt6-config.cmake Add the installation prefix of "KDSingleApplication-qt6" to CMAKE_PREFIX_PATH or set "KDSingleApplication-qt6_DIR" to a directory containing one of the above files. If "KDSingleApplication-qt6" provides a separate development package or SDK, be sure it has been installed.and then
CMake Error at 3rdparty/kdsingleapplication/CMakeLists.txt:5 (add_library): Cannot find source file: KDSingleApplication/src/kdsingleapplication.cpp code_textUsing -DBUILD_WITH_QT6=ON
-
@rajm said in why not make kdsingleapplication required in cmake?:
3rdparty/kdsingleapplication
This suggests that
3rdparty/kdsingleapplicationis missing. Is the sources from git? In that case you need to clone the repository with submodules using:git clone --recursiveor usegit submodule update --init --recursiveif it is already cloned. -
@jonas Ah submodules - thanks for the pointer! cmake now works.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login