This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Compile KMymoney from git source

Tags: None
(comma "," separated)
fcesar
Registered Member
Posts
2
Karma
0

Compile KMymoney from git source

Sat Apr 22, 2017 9:22 pm
Hy,

So I'm using Debian 8.7 and trying to compile a development version of KMM. This would be different from my current stable binary version, obtained from Debian repos (v. 4.6.6).

I'm following the instructions at github: https://github.com/KDE/kmymoney

I installed the required dependencies with
Code: Select all
aptitude build-dep kmymoney
and tried
Code: Select all
cmake -D CMAKE_BUILD_TYPE=Debugfull ..
and got the following error

Code: Select all
-- Could not set up the appstream test. appstreamcli is missing.
CMake Error at CMakeLists.txt:36 (find_package):
  Could not find a configuration file for package "Qt5" that is compatible
  with requested version "5.6".

  The following configuration files were considered but not accepted:

    /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake, version: 5.3.2



-- Configuring incomplete, errors occurred!
See also "/home/me/develop/source/kmymoney/Debug/CMakeFiles/CMakeOutput.log".


So, I installed Qt5.6 from Qt https://www.qt.io/download-open-source/#section-2, as trying to compile it from source didn't seem to generate the missing *.cmake files.

After that I ran
Code: Select all
CMAKE_PREFIX_PATH=/opt/Qt5.6.2/5.6/gcc_64/lib/cmake/ cmake -DCMAKE_BUILD_TYPE=Debugfull ..

And got the following error:

Code: Select all
CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5Archive"
  (requested version 5.2) with any of the following names:

    KF5ArchiveConfig.cmake
    kf5archive-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5CoreAddons"
  (requested version 5.2) with any of the following names:

    KF5CoreAddonsConfig.cmake
    kf5coreaddons-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5Config"
  (requested version 5.2) with any of the following names:

    KF5ConfigConfig.cmake
    kf5config-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5ConfigWidgets"
  (requested version 5.2) with any of the following names:

    KF5ConfigWidgetsConfig.cmake
    kf5configwidgets-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5I18n"
  (requested version 5.2) with any of the following names:

    KF5I18nConfig.cmake
    kf5i18n-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5KHtml"
  (requested version 5.2) with any of the following names:

    KF5KHtmlConfig.cmake
    kf5khtml-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5Completion"
  (requested version 5.2) with any of the following names:

    KF5CompletionConfig.cmake
    kf5completion-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5KCMUtils"
  (requested version 5.2) with any of the following names:

    KF5KCMUtilsConfig.cmake
    kf5kcmutils-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5ItemModels"
  (requested version 5.2) 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):
  CMakeLists.txt:37 (find_package)


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5ItemViews"
  (requested version 5.2) with any of the following names:

    KF5ItemViewsConfig.cmake
    kf5itemviews-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5Service"
  (requested version 5.2) with any of the following names:

    KF5ServiceConfig.cmake
    kf5service-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5Wallet"
  (requested version 5.2) with any of the following names:

    KF5WalletConfig.cmake
    kf5wallet-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5IconThemes"
  (requested version 5.2) with any of the following names:

    KF5IconThemesConfig.cmake
    kf5iconthemes-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5XmlGui"
  (requested version 5.2) with any of the following names:

    KF5XmlGuiConfig.cmake
    kf5xmlgui-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5TextWidgets"
  (requested version 5.2) with any of the following names:

    KF5TextWidgetsConfig.cmake
    kf5textwidgets-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5Notifications"
  (requested version 5.2) with any of the following names:

    KF5NotificationsConfig.cmake
    kf5notifications-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5KIO" (requested
  version 5.2) with any of the following names:

    KF5KIOConfig.cmake
    kf5kio-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5DocTools"
  (requested version 5.2) with any of the following names:

    KF5DocToolsConfig.cmake
    kf5doctools-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5Holidays"
  (requested version 5.2) with any of the following names:

    KF5HolidaysConfig.cmake
    kf5holidays-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5Contacts"
  (requested version 5.2) with any of the following names:

    KF5ContactsConfig.cmake
    kf5contacts-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5Akonadi"
  (requested version 5.2) with any of the following names:

    KF5AkonadiConfig.cmake
    kf5akonadi-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by
  "KF5IdentityManagement" (requested version 5.2) with any of the following
  names:

    KF5IdentityManagementConfig.cmake
    kf5identitymanagement-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5Activities"
  (requested version 5.2) with any of the following names:

    KF5ActivitiesConfig.cmake
    kf5activities-config.cmake

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


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package):
  Could not find a package configuration file provided by "KF5Kross"
  (requested version 5.2) with any of the following names:

    KF5KrossConfig.cmake
    kf5kross-config.cmake

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


CMake Error at /usr/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find KF5 (missing: Archive CoreAddons Config ConfigWidgets I18n
  KHtml Completion KCMUtils ItemModels ItemViews Service Wallet IconThemes
  XmlGui TextWidgets Notifications KIO) (Required is at least version "5.2")
Call Stack (most recent call first):
  /usr/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/share/ECM/find-modules/FindKF5.cmake:110 (find_package_handle_standard_args)
  CMakeLists.txt:37 (find_package)


I figure I'm missing the right version of the KDE 5 Framework...
Anything I else I need to install? Is there a better way to build KMM? Will I be able to have both development and stable version running?

I've been at this for a couple of hours so I figured I should get some help.

Appreciated help.
Thanks
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS

Re: Compile KMymoney from git source

Sun Apr 23, 2017 12:30 am
You can use apt-file, or the search function on packages.debian.org, to find which package provides the missing *.cmake files. There likely is one that will pull in most if not all of these needed -dev packages, but I do not know which one it is.

I have not looked at the kf5 version of KMM in quite some time, but I found a list I created last year that might help some:

Code: Select all
extra-cmake-modules qt5-qmake libqca-qt5-2-dev libgl1-mesa-dev libglu1-mesa-dev libqt5svg5-dev libkf5config-dev, kio-dev kross-dev libkf5activities-dev libkf5wallet-dev libkf5archive-dev libkf5khtml-dev libkf5kcmutils-dev  libkf5itemmodels-dev kdoctools-dev libkf5holidays-dev libkf5gpgmepp-dev libkf5contacts-dev libkf5akonadi-dev libkf5identitymanagement-dev libalkimia-dev libgwengui-qt5-dev libqt5svg5-dev libalkimia-dev


These are (K)Ubuntu packages, but iirc they should be the same or similar for Debian


claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
fcesar
Registered Member
Posts
2
Karma
0

Re: Compile KMymoney from git source

Sun Apr 23, 2017 12:49 pm
In the current Debian version (8, named "Jessie") there is no package with kf5 in the name. From what I figure (https://packages.debian.org/search?suite=all&searchon=names&keywords=kf5) that will change in the next version.

But until then, what would be the recommended development environment?
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS
You would need to have a Plasma 5 setup to build KMM from git master.
You might be able to compile KMM 4.8 in Stable as it is still KDE 4, but you likely will also have to compile some of the dependencies, such as aqbanking, libalkimia, and gwenhywfar


claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot]