Compiling on Ubuntu fails at 97 , how to enable KBanking, AqBanking?

2019-09-19 Thread Timon
Hi,

some of you may have read my e-mails on the user mailing list...

I consulted the pages I could find ...
https://kmymoney.org/faq.php#question1
https://techbase.kde.org/Projects/KMyMoney#Installation

... and asked for help via the users mailing list.

Background information on the system:

timon@ubuntu18ge:/usr/local/src/kmm$ uname -a
Linux ubuntu18ge 4.15.0-64-generic #73-Ubuntu SMP Thu Sep 12 13:16:13
UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

timon@ubuntu18ge:/usr/local/src/kmm$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 18.04.3 LTS
Release:18.04
Codename:   bionic


I spent several hours hunting down dependencies, googling each one,
until I realized that 
sudo apt-get build-dep kmymoney
could be quite helpful. I edited the list of packages, because for PSD2
I need the latest aqbanking and libgwenhywfar and I installed both of
them from git, into the default prefix (/usr, IIRC) in the hope that
they would be discovered automatically.

Problems:

1. Build stops at 97 %, see log below. Weird, because this file is
provided by the install qtbase5-dev and is really at:
/usr/include/x86_64-linux-gnu/qt5/QtSql/qsqldriverplugin.h
Do I ned to do anything special to get that included properly?

2. At the beginning of the log it shows that KBanking is disabled, how
can I enable it?
Because aqbanking is crucial for me (latest aqbanking, because of
PSD2).

Which other information / file can I provide to make understanding this
easier?

Thank you!!

Timon


timon@ubuntu18ge:~$ cd /usr/local/src/kmm
timon@ubuntu18ge:/usr/local/src/kmm$ ./BuildKMM.sh 
Gtk-Message: 21:35:51.500: GtkDialog mapped without a transient parent. This is 
discouraged.
Cloning into '/usr/local/src/kmm/kmymoney-2019.09.19-21.35.50-GIT-5.0'...
remote: Counting objects: 68025, done.
remote: Compressing objects: 100% (21432/21432), done.
remote: Total 68025 (delta 56468), reused 56049 (delta 45938)
Receiving objects: 100% (68025/68025), 47.64 MiB | 3.29 MiB/s, done.
Resolving deltas: 100% (56468/56468), done.
-DCMAKE_INSTALL_PREFIX=/usr/ -DKDE_INSTALL_PLUGINDIR=/usr/lib64/qt5/plugins 
-DENABLE_UNFINISHEDFEATURES=ON

/usr/local/src/kmm/kmymoney-2019.09.19-21.35.50-GIT-5.0

cmake -DCMAKE_INSTALL_PREFIX=/usr/ 
-DKDE_INSTALL_PLUGINDIR=/usr/lib64/qt5/plugins -DENABLE_UNFINISHEDFEATURES=ON 
/usr/local/src/kmm/kmymoney-2019.09.19-21.35.50-GIT-5.0
-- The CXX compiler identification is GNU 7.4.0
-- 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
-- Installing in the same prefix as Qt, adopting their path scheme.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'sqlcipher'
--   Found sqlcipher, version 3.4
-- Found KF5Archive: 
/usr/lib/x86_64-linux-gnu/cmake/KF5Archive/KF5ArchiveConfig.cmake (found 
version "5.44.0") 
-- Found KF5CoreAddons: 
/usr/lib/x86_64-linux-gnu/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake (found 
version "5.44.0") 
-- Found KF5Config: 
/usr/lib/x86_64-linux-gnu/cmake/KF5Config/KF5ConfigConfig.cmake (found version 
"5.44.0") 
-- Found KF5ConfigWidgets: 
/usr/lib/x86_64-linux-gnu/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake 
(found version "5.44.0") 
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1") 
-- Found PythonInterp: /usr/bin/python (found version "2.7.15") 
-- Found KF5I18n: /usr/lib/x86_64-linux-gnu/cmake/KF5I18n/KF5I18nConfig.cmake 
(found version "5.44.0") 
-- Found KF5Completion: 
/usr/lib/x86_64-linux-gnu/cmake/KF5Completion/KF5CompletionConfig.cmake (found 
version "5.44.0") 
-- Found KF5KCMUtils: 
/usr/lib/x86_64-linux-gnu/cmake/KF5KCMUtils/KF5KCMUtilsConfig.cmake (found 
version "5.44.0") 
-- Found KF5ItemModels: 
/usr/lib/x86_64-linux-gnu/cmake/KF5ItemModels/KF5ItemModelsConfig.cmake (found 
version "5.44.0") 
-- Found KF5ItemViews: 
/usr/lib/x86_64-linux-gnu/cmake/KF5ItemViews/KF5ItemViewsConfig.cmake (found 
version "5.44.0") 
-- Found KF5Service: 
/usr/lib/x86_64-linux-gnu/cmake/KF5Service/KF5ServiceConfig.cmake (found 
version "5.44.0") 
-- Found KF5Wallet: 
/usr/lib/x86_64-linux-gnu/cmake/KF5Wallet/KF5WalletConfig.cmake (found version 
"5.44.0") 
-- Found KF5IconThemes: 
/usr/lib/x86_64-linux-gnu/cmake/KF5IconThemes/KF5IconThemesConfig.cmake (found 
version "5.44.0") 
-- Found KF5XmlGui: 
/usr/lib/x86_64-linux-gnu/cmake/KF5XmlGui/KF5XmlGuiConfig.cmake (found version 
"5.44.0") 
-- Found KF5TextWidgets: 
/usr/lib/x86_64-linux-gnu/cmake/KF5TextWidgets/KF5TextWidgetsConfig.cmake 
(found version "5.44.0") 
-- Found KF5Notifications: 
/usr/lib/x86_64-linux-gnu/cmake/KF5Notifications/KF5NotificationsConfig

Link to compile output included: Compiling on Ubuntu fails at 97 , how to enable KBanking, AqBanking?

2019-09-19 Thread Timon
Hi,

some of you may have read my e-mails on the user mailing list...

I consulted the pages I could find ...
https://kmymoney.org/faq.php#question1
https://techbase.kde.org/Projects/KMyMoney#Installation

... and asked for help via the users mailing list.

Background information on the system:

timon@ubuntu18ge:/usr/local/src/kmm$ uname -a
Linux ubuntu18ge 4.15.0-64-generic #73-Ubuntu SMP Thu Sep 12 13:16:13
UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

timon@ubuntu18ge:/usr/local/src/kmm$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 18.04.3 LTS
Release:18.04
Codename:   bionic


I spent several hours hunting down dependencies, googling each one,
until I realized that 
sudo apt-get build-dep kmymoney
could be quite helpful. I edited the list of packages, because for PSD2
I need the latest aqbanking and libgwenhywfar and I installed both of
them from git, into the default prefix (/usr, IIRC) in the hope that
they would be discovered automatically.

My first E-Mail did not get through, maybe because of it's size with
the log included, so I uploaded the compile output here:
https://fiddike.com/static/compile-output-kmymoney_190919.txt

Problems:

1. Build stops at 97 %, see log below. Weird, because this file is
provided by the install qtbase5-dev and is really at:
/usr/include/x86_64-linux-gnu/qt5/QtSql/qsqldriverplugin.h
Do I ned to do anything special to get that included properly?

2. At the beginning of the log it shows that KBanking is disabled, how
can I enable it?
Because aqbanking is crucial for me (latest aqbanking, because of
PSD2).

Which other information / file can I provide to make understanding this
easier?

Thank you!!

Timon




Re: Compiling on Ubuntu fails at 97 , how to enable KBanking, AqBanking?

2019-09-20 Thread Timon
Hi Brendan,

on Ubuntu it's in both of these:

timon@ubuntu18-imac:~$ apt-file search qsqldriverplugin.h
libqt4-dev: /usr/include/qt4/Qt/qsqldriverplugin.h
libqt4-dev: /usr/include/qt4/QtSql/qsqldriverplugin.h
qtbase5-dev: /usr/include/x86_64-linux-gnu/qt5/QtSql/qsqldriverplugin.h

Both qtbase5-dev and libqt4-dev are already installed ...

But I decided to leave this question open at the moment das Thomas
suggestion "-DENABLE_SQLCIPHER=OFF" did the trick and KMM compiles now.

It as was also very easy to do using the .conf file in your set of
script. I f ind these very useful. Have you considered putting them up
on Github or some other public git service (bitbucket, gitlab etc.)?

Cheers,

Timon

On Thu, 2019-09-19 at 15:51 -0600, Brendan Coupe wrote:
> So close... I have no idea what is wrong, probably a dependency that
> you are missing. I think you may be the first person to use my
> scripts. Have you tried compiling front he master branch of the
> latest
> release to make sure it's not a 5.0 branch issue?
> 
> I'm on Fedora 30 and when I search for installed packages with "sql"
> in the name I get:
> 
> kf5-akonadi-server-mysql.x86_64
> mono-data-sqlite.x86_64
> mysql-selinux.noarch
> postgresql-jdbc.noarch
> qt5-qtbase-mysql.x86_64
> sqlcipher.x86_64
> sqlite.x86_64
> sqlite-libs.x86_64
> 
> I think this is the relevant part of your error:
> 
> Scanning dependencies of target qsqlcipher_autogen
> [ 95%] Automatic MOC for target qsqlcipher
> [ 95%] Built target qsqlcipher_autogen
> Scanning dependencies of target qsqlcipher
> [ 95%] Building CXX object
> kmymoney/plugins/sqlcipher/CMakeFiles/qsqlcipher.dir/smain.cpp.o
> /usr/local/src/kmm/kmymoney-2019.09.19-21.35.50-GIT-
> 5.0/kmymoney/plugins/sqlcipher/smain.cpp:40:10:
> fatal error: qsqldriverplugin.h: No such file or directory
>  #include 
> 
> 
> 
> 
> Brendan Coupe

-- 

Viele Grüße
 
Timon Fiddike
 
--
0170 / 913 51 74
 
https://agile.coach





Re: Compiling on Ubuntu fails at 97 , how to enable KBanking, AqBanking?

2019-09-20 Thread Timon
Hi Jack,

on Ubuntu it's very similar, the file is in both of these:

timon@ubuntu18-imac:~$ apt-file search qsqldriverplugin.h
libqt4-dev: /usr/include/qt4/Qt/qsqldriverplugin.h
libqt4-dev: /usr/include/qt4/QtSql/qsqldriverplugin.h
qtbase5-dev: /usr/include/x86_64-linux-gnu/qt5/QtSql/qsqldriverplugin.h

Both qtbase5-dev and libqt4-dev are already installed ...

But I decided to leave this question open at the moment as Thomas
suggestion "-DENABLE_SQLCIPHER=OFF" did the trick and KMM compiles now.

Now KMyMoney compiles, but then Gwen fails. There was a discussion
about a very similar looking error in this list a couple of years ago,
involving a Jack- that might be you? See Thread "KMM compiles now, Gwen
fails? ...".

Cheers,

Timon

-- 

Viele Grüße
 
Timon Fiddike
 
--
https://agile.coach


On Thu, 2019-09-19 at 18:10 -0400, Jack wrote:
> On 2019.09.19 17:51, Brendan Coupe wrote:
> > So close... I have no idea what is wrong, probably a dependency
> > that
> > you are missing. I think you may be the first person to use my
> > scripts. Have you tried compiling front he master branch of the
> > latest
> > release to make sure it's not a 5.0 branch issue?
> > 
> > I'm on Fedora 30 and when I search for installed packages with
> > "sql"
> > in the name I get:
> > 
> > kf5-akonadi-server-mysql.x86_64
> > mono-data-sqlite.x86_64
> > mysql-selinux.noarch
> > postgresql-jdbc.noarch
> > qt5-qtbase-mysql.x86_64
> > sqlcipher.x86_64
> > sqlite.x86_64
> > sqlite-libs.x86_64
> > 
> > I think this is the relevant part of your error:
> > 
> > Scanning dependencies of target qsqlcipher_autogen
> > [ 95%] Automatic MOC for target qsqlcipher
> > [ 95%] Built target qsqlcipher_autogen
> > Scanning dependencies of target qsqlcipher
> > [ 95%] Building CXX object
> > kmymoney/plugins/sqlcipher/CMakeFiles/qsqlcipher.dir/smain.cpp.o
> > /usr/local/src/kmm/kmymoney-2019.09.19-21.35.50-GIT-
> > 5.0/kmymoney/plugins/sqlcipher/smain.cpp:40:10:
> > fatal error: qsqldriverplugin.h: No such file or directory
> >  #include 
> 
> On my Gentoo box, that file belongs to a package called qtsql.  On
> my  
> Artix LInux box, it's in qt5-base.  Not sure about Ubuntu.
> 
> Jack



Re: Compiling on Ubuntu fails at 97 , how to enable KBanking, AqBanking?

2019-09-20 Thread Timon
Hi Thomas,

On Fri, 2019-09-20 at 20:17 +0200, Thomas Baumgart wrote:
> Timon,
> 
> On Freitag, 20. September 2019 19:47:41 CEST Timon wrote:
> 
> > Hi Jack,
> > 
> > on Ubuntu it's very similar, the file is in both of these:
> > 
> > timon@ubuntu18-imac:~$ apt-file search qsqldriverplugin.h
> > libqt4-dev: /usr/include/qt4/Qt/qsqldriverplugin.h
> > libqt4-dev: /usr/include/qt4/QtSql/qsqldriverplugin.h
> > qtbase5-dev: /usr/include/x86_64-linux-
> > gnu/qt5/QtSql/qsqldriverplugin.h
> > 
> > Both qtbase5-dev and libqt4-dev are already installed ...
> > 
> > But I decided to leave this question open at the moment as Thomas
> > suggestion "-DENABLE_SQLCIPHER=OFF" did the trick and KMM compiles
> > now.
> > 
> > Now KMyMoney compiles, but then Gwen fails. There was a discussion
> > about a very similar looking error in this list a couple of years
> > ago,
> > involving a Jack- that might be you? See Thread "KMM compiles now,
> > Gwen fails? ...".
> 
> Please keep in mind that you need to build and install gwenhywfar,
> then build and install aqbanking and then configure (cmake), build
> and install kmymoney. Otherwise this might not work properly.

Thank you for pointing that out! I'm aware that for achieving my main
goald of havin KMyMoney actually work with the latest AqBanking and get
information from banks after PSD 2 I have to proceed exactly as you
described.

Nevertheless, as I've been on this for several hours, spread over
several days, I also want to celebrate the small successes on the  way
(e.g. building KMyMoney without AqBanking) ...  

And I saw your other mail - will try that in a moment.

Thank you!
 
Timon

--
https://fiddike.com




Compiles, yeah! was: Re: KMM compiles now, Gwen fails? was: Re: Compiling on Ubuntu fails at 97 , how to enable KBanking, AqBanking?

2019-09-20 Thread Timon
Hi Thomas,

> > yeah! Everything compiles now :-)

TL;DR

For anyone on Ubuntu:

(Concerning dependencies see previous posts ...)

> > 
> > ... but, sadly:
> > configure: WARNING: unrecognized options: --with-qt5-qmake, --with-
> > qt5-moc
> > 
> > ... and then it just leads to the same error as before, see
> > attached
> > file "compile_output_gwen_2.txt".txt
> > 
> > Any ideas?
> 
> I ran into the same problem recently here on openSUSE. The line
> 
>   o qt5dialogbox.moc qt5dialogbox.hpp
> 
> which should actually be
> 
>   moc -o qt5dialogbox.moc qt5dialogbox.hpp
> 
> shows, when some variables are not set correctly. 
> 
> What is the output of "which moc" on your system? I am pretty sure it
> does not find anything. 

$ which moc
/usr/bin/moc
$ moc -v
Qt Meta Object Compiler version 63 (Qt 4.8.7)

Hah, so that should be 5.x instead, right?

> What is the output of "which moc-qt5"? Does that show the qt5
> version?

$ which moc-qt5
$

Alright, hot trail I guess.

>  If any of this is the case (as for me) it helped here to prepend
> 
>   /usr/lib64/qt5/bin/
> 
> to the PATH variable. 

$ ls /usr/lib64/qt5/bin/
ls: cannot access '/usr/lib64/qt5/bin/': No such file or directory

However: /usr/lib/qt5/bin/ exists and contains "moc" :-)

$ /usr/lib/qt5/bin/moc -v
moc 5.9.5

So let's adapt your proposed

export PATH=/usr/lib/qt5/bin/:$PATH

> This now looks like this for me:
> 
> /usr/lib64/qt5/bin:/home/thb/bin:/usr/local/bin:/usr/bin:/bin

PATH="/usr/lib/qt5/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/b
in:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"

> and running simply "moc" starts the Qt5 version

$ moc -v
moc 5.9.5

Looks good, so:

>  and aqbanking/gwenhywfar builds.

Let's immediately try:

I'll document this a bit, even the parts that work. The next person on
Ubuntu might find this useful ...

$ export PATH=/usr/lib/qt5/bin/:$PATH
$ moc -v
moc 5.9.5

$ cd /usr/local/src/
$ rm -rf gwenhywfar
$ git clone https://git.aquamaniac.de/git/gwenhywfar
$ autoconf
$ autoconf
$ autoreconf -i
$ ./configure --prefix=/usr/local --with-guis=qt5 --enable-system-
certs 
$ make
$ sudo make install

Yeah, that worked just fine :-D

> Older versions of aqbanking allowed to override the name of the
> binary to use for qmake/moc/uic with the variables like you tried but
> that is not available anymore (except for qmake).

I understand.

O.K., now let's immediately build AqBanking as well, with the options
you mentioned:

$ cd /usr/local/src/aqbanking
$ sudo make uninstall
$ cd /usr/local/src/
$ rm -rf aqbanking
$ git clone https://git.aquamaniac.de/git/aqbanking
$ cd aqbanking
$ export ACLOCAL_FLAGS="-I /usr/local/share/aclocal"
$ make -fMakefile.cvs
$ ./configure --prefix=/usr/local --enable-full-doc 
$ export LD_LIBRARY_PATH=/usr/local/lib
$ make
$ sudo make install

export PATH=/usr/local/bin/:$PATH

And aqbanking-config works as expected.

Today is my lucky day 8-) Or just the last in a long enough series with
quite a bit of help ... whatever, let's continue:

KMyMoney: cmake .. -DENABLE_SQLCIPHER=OFF
-DENABLE_UNFINISHEDFEATURES=ON -DCMAKE_INSTALL_PREFIX=/usr
-DKDE_INSTALL_PLUGINDIR=/usr/lib64/qt5/plugins 

Hmm, apart from the SQLCIPHER=OFF these are in Brendans script config
already.
But wait: /usr/lib64/qt5/plugins does not exist.

https://kmymoney.kde.narkive.com/Ohn3fBue/unable-to-create-investment
=> In Ubuntu 18.04 it's /usr/lib/x86_64-linux-gnu/qt5/plugins

So set that in the script config and:

cd /usr/local/src/kmm
./BuildKMM.sh
./InstallKMM.sh

And yesss, it compiles and installs :-D

> Hope that helps.

Yes, this helped a great deal!!

I need to get to bed asap and will be out most of the weekend, might
get the chance to run it on Sunday. Either way:

For now, I'm very happy with the milestone achieved!

Thank you Thomas, Brendan, Jack!

Timon

-- 

Viele Grüße
 
Timon Fiddike
 
--
https://agile.coach




Donations to KDE, was: Re: KMyMoney 5.0.7 released

2019-10-05 Thread Timon
Hello everybody,

thank you for KMyMoney 5.0.7 and all the versions before!!

I just sent a donation to KDE as proposed by Thomas.

Easiest option worldwide is Paypal:
https://kde.org/community/donations/index.php

Many other options exists, e.g. also SEPA Bank Transfer (Überweisung):
https://kde.org/community/donations/others.php

For anyone in Germany: KDE is "gemeinnützig", which means you reduce your 
income tax by donating:
https://ev.kde.org/donations-taxes-de.php

Cheers,

Timon


-- 

Viele Grüße
 
Timon Fiddike
 
--
0170 / 913 51 74
 
https://fiddike.com


On Sun, 2019-09-22 at 14:40 +0200, Thomas Baumgart wrote:
> Hi all,
> 
> The KMyMoney development team is proud to present version 5.0.7 of
> its open source Personal Finance Manager.
> 
> A bit more background and details about this release as well as some
> important information for our German users using the online banking
> features can be found on my blog on
> 
>   https://blog.bembel.net/2019/09/kmymoney-5-0-7-released/
> 
> Please feel free to visit and read.
> 
> 
> Regards
> 
> Thomas
> 



[kmymoney] [Bug 394366] "OK" button is missing in report configuration

2018-06-17 Thread Timon Fiddike
https://bugs.kde.org/show_bug.cgi?id=394366

Timon Fiddike  changed:

   What|Removed |Added

 CC||timon-kmymo...@fiddike.com

--- Comment #3 from Timon Fiddike  ---
Same problem here. Wanted to submit a bug report, then found this one.

Clicking "Find" indeed saves the changes made to the report.

I'm thankful for the workaround. Without this report I would not have guessed
it ...

-- 
You are receiving this mail because:
You are the assignee for the bug.