[Kmymoney] Importing OFX Transactions a day behind

Ian Anderson iancarol at ps.gen.nz
Tue Dec 7 11:36:10 CET 2010


Dear Felipe
I have also suffered the date problem that you mentioned and received
kind assistance from Thomas Baumgart to help me solve it and other
problems. (I thought you had to be in New Zealand and ahead of the world
for this problem to happen!) Our correspondence should be in the mailing
list archives about this. I tried to record all the steps needed to
compile LibOFX and I hope they are correct from the notes I made. Please
excuse me if you know all this stuff already. I didn't.

You have to compile LibOFX with the latest versions of some of its
component files. Notably the file ofx_utilities.cpp which contains the
date bug(s).  Thomas corrected this bug on Feb 4th 2010 so it is quite
unlikely that your Linux distribution will be up to date. It is not up
to date in Ubuntu 10.04 for instance. 

If you go to
http://libofx.cvs.sourceforge.net/viewvc/libofx/libofx/lib/ofx_utilities.cpp?view=log

(bookmark this page!)

you can see the latest versions of ofx_utilities.cpp  I corrected my
problem by using Revision 1.13, but I see there is now a recent revision
to 1.15, and it would probably be best to use that.

You need to download that file (I suggest you make a folder for it)

Now you need to get libofx by going to

http://libofx.sourceforge.net/?ref=darwinports.com

You click on Changelog page or Download/Changelog to download the tar
file Libofx ver 0.9.1 (dated 9-2-2009)  This version is the one supplied
with Ubuntu 10.04 for instance and possibly many other distributions.
It does not contain the fixes but you will be sorting that out next.

Now you extract the tar to another folder (I double clicked on it) and
got it into the home directory of Ubuntu)  You end up with all the
component folders and other files contained in LIBOFX in a folder. If
you look at the Repositories on that first source forge page above, you
can see the structure of LIBOFX by going back through lib to libofx, (on
the top line) and you can see that these are the same folders and files
as you have in your extracted tar.

Now if you click on the Lib folder in the extracted tar you will see
ofx_utilities.cpp  You copy and past your downloaded Ver 1.15
ofx_utilities.cpp over the top of the one in the extracted lib folder.  

Now you need to compile LibOFX. (You can check the READ Me file but from
memory I don't recall anything important)  I think I removed LibOFX from
Ubuntu, or did I leave it and get it overwritten ?  It may not matter

My notes read 
1)open a terminal  (type dir to show directories and where to go)
2)cd until you reach the folder containing the extracted Libofx-0.9.1
folders (which now has the pasted Ver 1.15 ofx_utilities.cpp in it)
3)type  ./configure  (sometimes options have to go in with -- option
after the configure ) you may get a list, but I don't think there is
anything needed in this case)

NB If you are missing dependencies to go with LIBOFX you will have to
install them and start again. You will get told what you need if they
are not there.

Once configure is happy and finishes

4)type make (just the one word  make)

In my case this ran on and stopped and told me of files that were in
error in LibOFX.  On each occasion I had to go back to source forge and
get the appropriate latest version of the file and download it into that
first folder I made, and then cut and paste it over the equivalent file
in the extracted tar just as I did with ofx_utilities.cpp (That is why
you bookmarked the page so you can go back to it and back into the
repository structure to get the latest versions for your compiler.)

You start all over again and  ./configure and make are retyped after
each cut and paste and the compile carries on further until the next
error tells you what file is at fault and then you go back and get it
and paste it in in the same fashion. Gradually your compile advances
until finally it goes through completely.  You could be lucky and it
could go all the way first time. I had to get 4 other files in lib, 2
files in ofxconnect and 1 file in ofxdump to get it to finish. 

Once it has finished successfully

5) type    sudo make install 
In Ubuntu you need your password which does not show when you type it
in, but is actioned on. In other linux distributions the command could
be different I don't know!

This puts all the correct parts of LibOFX into the various folders of
the distribution (Ubuntu etc ) in the right places. 

In my case I then had to compile Kmymoney 4.5 at this point because I
was upgrading from Kmymoney 1.05 and KDE 3 which is another story. I
guess this is not necessary if you already have Kmymoney 4.5 installed
and it just uses your new improved LibOFX

I found this site helpful about compiling although it was on the complex
side.

http://www.tuxradar.com/content/compile-source-code-and-solve-problems

I hope this helps.   Regards Ian Anderson








More information about the KMyMoney mailing list