Bug 392839 - Cannot install or compile any kmymoney version 5
Summary: Cannot install or compile any kmymoney version 5
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmymoney
Classification: Applications
Component: buildsystem (show other bugs)
Version: 5.0.1
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-07 18:01 UTC by Phil
Modified: 2018-04-08 12:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil 2018-04-07 18:01:44 UTC
Hello KMyMoney developers,

Try as I have, I cannot locate KMyMoney version 5 to install into my Linux Mint 18.x system based on Ubuntu 16.04 Xenial. I tried compiling versions 5.0.0 and 5.0.1, and they would not compile? Are there any available installation options, like an "AppImage", an up to date PPA, or Linux Deb files, etc... to install this?

My last compiling effort of KMyMoney ver 5.0.0 resulted in", same results in ver 5.0.1, in my Linux Mint KDE 18.3 based on Ubuntu 16.04 Xenial.


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

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

    LibAlkimia5Config.cmake
    libalkimia5-config.cmake

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

Best regards,
Phil (phd21)
phd21mint@gmail.com
Comment 1 Rex Dieter 2018-04-07 18:09:16 UTC
You need alkimia-7.0 (or newer),
https://download.kde.org/stable/alkimia/
Comment 2 Phil 2018-04-07 20:49:14 UTC
Hi Rex Dieter,

Thank you for your prompt reply. 

I had to download, compile, and install "alkimia-7.0", I used the newest one "alkimia-7.0.1". It did compile and install. Thank you.

I still got the same error with KMyMoney ver5.0.1, but version 5.0.0 got further. It now wanted the "KChart" from "Kdiagram" packages which is not available in my Linux Mint KDE 18.3 system's repositories with the Kubuntu backports ppa. So I went to that Kdiagram GitHub website, downloaded that, compiled and installed that too. This seemed to work and finished builiding with some comments below, but "sudo make install" failed. 

cmake .. -DCMAKE_INSTALL_PREFIX=/usr/
-- Boost version: 1.58.0
-- Found LibAlkimia: /usr/local/lib/x86_64-linux-gnu/cmake/LibAlkimia5-7.0/LibAlkimia5Config.cmake (found version "7.0.1")
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.11") 
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for pwd.h
-- Looking for pwd.h - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Looking for lmcons.h
-- Looking for lmcons.h - not found
-- Looking for process.h
-- Looking for process.h - not found
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- Checking for module 'libofx>=0.9.4'
--   Found libofx, version 0.9.10
-- Found LibOfx:                                                                
-- Performing Test LIBOFX_HAVE_CLIENTUID                                        
-- Performing Test LIBOFX_HAVE_CLIENTUID - Failed
CMake Warning at CMakeLists.txt:166 (find_package):
  By not providing "FindAQBANKING.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "AQBANKING", but CMake did not find one.

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

    AQBANKINGConfig.cmake
    aqbanking-config.cmake

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


-- Found Libical version 1.0
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success

-------- KMyMoney 5.0.0 --------

Configure results (user options):
--------------------------------------------
GpgME Encryption:                        yes

KDE PIM holidays:                        yes

KDE PIM addressbook:                     yes

OFX plugin:                              yes
  OFX supports CLIENTUID:                no

KBanking plugin:                         no

weboob plugin:                           yes

iCalendar export plugin:                 yes

SQLCipher plugin:                        no

QWebEngine:                              no

--------------------------------------------


Configure results (developer options):
--------------------------------------------
Qt-Designer library support:             no

Generate modeltest code:                 no

Generate API documentation with Doxygen: yes

Build type: RelWithDebInfo
-- Looking for dgettext
-- Looking for dgettext - found
-- Found Gettext: built in libc
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user69/kmymoney-5.0.0/build


"sudo make install" failed with:

[ 18%] Building CXX object kmymoney/models/CMakeFiles/models.dir/accountsmodel.cpp.o
/home/user69/kmymoney-5.0.0/kmymoney/models/accountsmodel.cpp: In instantiation of ‘AccountsModel::setColumnVisibility(eAccountsModel::Column, bool)::<lambda(auto:3&&, QStandardItem*)> [with auto:3 = AccountsModel::setColumnVisibility(eAccountsModel::Column, bool)::<lambda(auto:3&&, QStandardItem*)>&]’:
/home/user69/kmymoney-5.0.0/kmymoney/models/accountsmodel.cpp:719:53:   required from here
/home/user69/kmymoney-5.0.0/kmymoney/models/accountsmodel.cpp:712:34: internal compiler error: Segmentation fault
           childItem->removeColumn(ixCol);
                                  ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
kmymoney/models/CMakeFiles/models.dir/build.make:110: recipe for target 'kmymoney/models/CMakeFiles/models.dir/accountsmodel.cpp.o' failed
make[2]: *** [kmymoney/models/CMakeFiles/models.dir/accountsmodel.cpp.o] Error 1
CMakeFiles/Makefile2:4110: recipe for target 'kmymoney/models/CMakeFiles/models.dir/all' failed
make[1]: *** [kmymoney/models/CMakeFiles/models.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2


Do you or anyone else have any more suggestions?

Best regards,
Phil (phd21)
phd21mint@gmail.com
Comment 3 Michael Carpino 2018-04-07 21:03:06 UTC
Hi Phil,

I had a few issues with compiling and installing KMM 5.  Then I simply went to AUR repository and searched for KMM.  I found kmymoney-git and installed it.  It worked like a breeze from an install standpoint and now I'm running 5.0.2.  Hope this helps.  I've only been on Linux since January of this year and I don't really understand the risks of doing it this way but it worked for me.

Mike
Comment 4 Jack 2018-04-07 22:04:24 UTC
From Comment 3: As I understand, AUR is for ArchLinux.  I don't know if there is any reasonable way to use it for Mint.

From Comment 2: Did a simple "make" complete without error.  If so, I don't know why "make install" would still be compiling anything.  Anyway - "internal compiler error: Segmentation fault"  does not sound like a simple compilation error.  Does repeating the make fail in the same place consistently?  If not, I would suspect a problem with RAM and run a memtest.  If the failure is repeatable, let us know and we'll look deeper.

From Comment 1: Have you checked Clay Weber's PPA:
 https://launchpad.net/~claydoh
Comment 5 Rex Dieter 2018-04-07 22:44:43 UTC
Bugzilla isn't the place for stuff like this (it isn't a bug, it's simply queries on how best to build kmymoney).  I suggest kmymoney mailing list or irc, both referenced here:

http://kmymoney2.sourceforge.net/mailinglist.html


As for your last unfortunate failure, again, not a kde issue... your compiler crashed:

home/user69/kmymoney-5.0.0/kmymoney/models/accountsmodel.cpp:712:34: internal compiler error: Segmentation fault
           childItem->removeColumn(ixCol);
                                  ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
Comment 6 Phil 2018-04-08 00:48:49 UTC
Hi Michael Carpino,

Thanks for replying, but I do not know how or if it is possible to install Arch Linux packages in Ubuntu (Linux Mint).
Comment 7 Phil 2018-04-08 01:03:31 UTC
HI Jack,

Thanks for replying.

I do not know why "make install" did not work either?

I have been compiling and installing a lot of various software lately and most work just fine, including some related to this like "alkimia-7.0.1", "kDiagram", etc...

The newer versions of KMyMoney 5 wanted newer packages for "aqbanking", but I could not compile that because it wanted newer versions of "gwenhywfar" which would not compile in my system. I have each these already installed only they are slightly older versions. FYI: The GitHub for "aqbanking" did not have a "config" whereas the GitHub DE does?
 
> From Comment 1: Have you checked Clay Weber's PPA:
>  https://launchpad.net/~claydoh

The Clay Weber PPA only has versions up to 4.8 which does work in Ubuntu Xenial - Linux Mint 18.x.

This was in response to people in the Linux Mint forum wanting the newer KMyMoney ver 5, and I am one of them.

Thanks everyone for your help. But, I will wait to see if someone will kindly provide compiled binaries for Ubuntu 16.04 (Linux Mint 18.x or perhaps even a wonderful AppImage option, or Flak, or Snap, etc... I prefer to install it or use an AppImage. 

Best regards to all of you.
Phil (phd21)