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

kmymoney v5 install

Tags: None
(comma "," separated)
User avatar
gking
Registered Member
Posts
29
Karma
1
OS

kmymoney v5 install

Sat Feb 10, 2018 5:08 am
I am trying to install KMM v5 on a fresh install of Linux Mint 18.3 KDE. The build-dep step seems to be missing a lot of development libraries. After poking around on the forum i found some info that got me part way to installation but now the cmake command fails with the following error:

>cmake .. -DCMAKE_INSTALL_PREFIX=/usr
.
.
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

I can't seem to find that library anywhere.
sudo apt-get install LibAlkimia5
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package LibAlkimia5

The library seems to be installed but without the required .cmake files;
locate libalkimia5
/usr/share/doc/libalkimia5
/usr/share/doc/libalkimia5/changelog.Debian.gz
/usr/share/doc/libalkimia5/copyright
/var/cache/apt/archives/libalkimia5_5.0.0-2ubuntu1~ppa1_i386.deb
/var/lib/dpkg/info/libalkimia5.list
/var/lib/dpkg/info/libalkimia5.md5sums
/var/lib/dpkg/info/libalkimia5.shlibs
/var/lib/dpkg/info/libalkimia5.triggers

Any help getting KMM v5 installed is greatly appreciated.
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: kmymoney v5 install

Sat Feb 10, 2018 7:03 am
KMyMoney 5.0.0 requires LibAlkimia5 version 7.0 (you seem to have version 5.0 here). In case your distro does not have this version (it was released about a month ago) please remove the installed version and find the source on the KDE servers. The GPG signature is also on available on on the KDE servers.

Hope that helps.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
abhi007cruise
Registered Member
Posts
15
Karma
0

Re: kmymoney v5 install

Sat Feb 10, 2018 11:55 am
Hello there,

Are we going to get windows (.exe format) version. Please advise.
User avatar
gking
Registered Member
Posts
29
Karma
1
OS

Re: kmymoney v5 install

Sun Feb 11, 2018 10:36 pm
Thanks for the advice. I got the cmake step to complete after installing alkimia and kdiagram (Kchart) packages.

Now in the make step I get the following error:
Code: Select all
[ 19%] Building CXX object kmymoney/models/CMakeFiles/models.dir/accountsmodel.cpp.o
/home/wgking/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/wgking/kmymoney-5.0.0/kmymoney/models/accountsmodel.cpp:719:53:   required from here
/home/wgking/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:4078: 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

wgking@SYLVIAKDE ~/kmymoney-5.0.0/build $ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.6) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

wgking@SYLVIAKDE ~/kmymoney-5.0.0/build $

[/code]
It looks like Kmymoney broke the compiler. Should I be using a different gcc version than 5.4.0.20160609
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: kmymoney v5 install

Mon Feb 12, 2018 7:26 am
I am using clang 3.8.0 to compile due to an even older gcc on my system (5.3.1) which chokes on other constructs.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
User avatar
gking
Registered Member
Posts
29
Karma
1
OS

Re: kmymoney v5 install

Wed Feb 14, 2018 5:22 am
Ok, so I am not a developer so I am probably over my head here but I got further and am now stumped again.

I installed clang:
Code: Select all
wgking@SYLVIAKDE ~/kmymoney-5.0.0/build $ clang --version
clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)
Target: i686-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin


I updated the defaults to clang

Code: Select all
wgking@SYLVIAKDE ~/kmymoney-5.0.0/build $ sudo update-alternatives --config c++
There are 2 choices for the alternative c++ (providing /usr/bin/c++).

  Selection    Path              Priority   Status
------------------------------------------------------------
* 0            /usr/bin/g++       20        auto mode
  1            /usr/bin/clang++   10        manual mode
  2            /usr/bin/g++       20        manual mode

Press <enter> to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/bin/clang++ to provide /usr/bin/c++ (c++) in manual mode
wgking@SYLVIAKDE ~/kmymoney-5.0.0/build $


Deleted/recreated the kmymoney build directory, reran cmake successfully this time.

The install now dies at the link stage with:
Code: Select all
.
.
.
[ 59%] Automatic moc for target newuserwizard
[ 59%] Built target newuserwizard_automoc
[ 60%] Built target newuserwizard
[ 60%] Linking CXX executable kmymoney
/usr/bin/ld: cannot find -lGpgmepp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
kmymoney/CMakeFiles/kmymoney.dir/build.make:272: recipe for target 'kmymoney/kmymoney' failed
make[2]: *** [kmymoney/kmymoney] Error 1
CMakeFiles/Makefile2:1095: recipe for target 'kmymoney/CMakeFiles/kmymoney.dir/all' failed
make[1]: *** [kmymoney/CMakeFiles/kmymoney.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
wgking@SYLVIAKDE ~/kmymoney-5.0.0/build $

The Gpgmepp library is installed. I created a symlink as suggested somewhere but make still fails with same error.
Code: Select all
wgking@SYLVIAKDE ~/kmymoney-5.0.0/build $ ls -la /usr/lib/i386-linux-gnu/Gpgmepp.so
lrwxrwxrwx 1 root root 16 Feb 13 21:32 /usr/lib/i386-linux-gnu/Gpgmepp.so -> libKF5Gpgmepp.so
wgking@SYLVIAKDE ~/kmymoney-5.0.0/build $

I think I am close to getting a working copy, but would appreciated advice getting over the current hurdle.
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: kmymoney v5 install

Wed Feb 14, 2018 6:18 am
The file you found is the runtime library. You probably also need to install the accompanying -dev package for that library.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
User avatar
gking
Registered Member
Posts
29
Karma
1
OS

Re: kmymoney v5 install

Wed Feb 14, 2018 9:33 pm
Success! I have a running copy on Linux Mint 18.3 KDE 32 bit running in a HyperV VM right now.

Now the real testing begins.

Thanks so much for all your help.


Bookmarks



Who is online

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