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

Cmake error installing KMM 5.0.1

Tags: None
(comma "," separated)
msingler
Registered Member
Posts
6
Karma
0

Cmake error installing KMM 5.0.1

Sun Sep 16, 2018 8:45 pm
Can't find solution to this error:

$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:33 (find_package):
Could not find a package configuration file provided by "ECM" (requested
version 0.0.11) with any of the following names:

ECMConfig.cmake
ecm-config.cmake

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


I could not find a "ECM" package. Any help with this would be great! Thanks.




-- Configuring incomplete, errors occurred!
See also "/home/mitch/Build/kmymoney-5.0.1/CMakeFiles/CMakeOutput.log".
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS

Re: Cmake error installing KMM 5.0.1

Sun Sep 16, 2018 10:00 pm
Code: Select all
Could not find a package configuration file provided by "ECM" (requested
version 0.0.11) with any of the following names:

ECMConfig.cmake
ecm-config.cmake


You will have to find and install the package that provides one of the two files listed above.
One way is to use packages.ubuntu.com and user the search function there, but it can also be done from the command line tool apt-file
Code: Select all
sudo apt-file update
apt-file search ECMConfig.cmake

and/or
Code: Select all
apt-file search ecm-config.cmake


For example:
Code: Select all
claydoh@widget-Lenovo:~$ apt-file search ecm-config.cmake
claydoh@widget-Lenovo:~$ ECMConfig.cmake

claydoh@widget-Lenovo:~$ apt-file search ECMConfig.cmake
extra-cmake-modules: /usr/share/ECM/cmake/ECMConfig.cmake


After you have enabled source repos (from your other thread on the topic), and run
Code: Select all
sudo apt build-dep kmymoney


I think this list is the full dep list:
debhelper (>= 11), cmake, pkg-kde-tools (>= 0.15.16),
extra-cmake-modules,
qtbase5-dev,
qtdeclarative5-dev,
libqt5svg5-dev,
libkf5activities-dev,
libkf5akonadi-dev,
libkf5archive-dev,
libkf5completion-dev,
libkf5config-dev,
libkf5configwidgets-dev,
libkf5contacts-dev,
libkf5coreaddons-dev,
libkf5doctools-dev,
libkf5holidays-dev,
libkf5i18n-dev,
libkf5iconthemes-dev,
libkf5identitymanagement-dev,
libkf5itemmodels-dev,
libkf5itemviews-dev,
libkchart-dev,
libkf5kcmutils-dev,
libkf5kio-dev,
libkf5notifications-dev,
libkf5service-dev,
libkf5textwidgets-dev,
libkf5wallet-dev,
libkf5webkit-dev,
libkf5xmlgui-dev,
libaqbanking-dev (>= 5.6.1beta),
libgwenhywfar-core-dev, libgwengui-qt5-dev,
libgpgmepp-dev, libgpg-error-dev, libgpgme-dev,
libalkimia5-dev (>= 7.0),
libical-dev, libofx-dev, libgmp-dev,
pkg-config,
python-dev,
python-weboob,


You will find many of these packages will not be available in Ubuntu 16.04, or at least have versions too old for Kmymoney, and will have to be compiled first as well:
aqbanking, libgwenhywfar, libalkimia, ibgpgme at the very least.
These deps also require other deps to be installed as well, and it became too cumbersome for me to create packages for my PPA. The latest version I have for 16.04 is 4.8

Compiling the dependencies itself is not overly difficult, it is the packaging aspect that I could not overcome with my limited time and skill level, unfortunately.
It should be fairly easy for someone to make a snap, flatpak or appimage for, I'd wager. I have been thinking of trying this, if I find the time to get the desire to do so.


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

Re: Cmake error installing KMM 5.0.1

Sun Sep 16, 2018 10:30 pm
Great answer Claydoh!

Would it be better, as far as having deps readily available, if I updated to Ubuntu to 18.04?
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS
If you have 18.04, you don't have to compile it, as KMM 5.0.1 is already there :)
But yes, other than some of the compiler/tools needed, all (or most) of the deps are easily installed in 18.04 via running apt build-dep.


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


Bookmarks



Who is online

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