Is ofx import buildable in master?

Thomas Baumgart thb at net-bembel.de
Sat Apr 22 08:10:30 BST 2023


On Samstag, 22. April 2023 04:58:34 CEST Jack via KMyMoney-devel wrote:

> On 4/21/23 22:29, Jonatan Cloutier via KMyMoney-devel wrote:
> >
> > Hello,
> >
> > I've been using master for a while and importing transaction with a 
> > custom importer I built, so I haven't needed the ofx plugin in a 
> > while. I did disable it as the build was failing. But now I have an 
> > issue with my importer and would like to see if it happen with ofx as 
> > well.  Short story, building with ofx give this error:
> >
> > /build/kmymoney/plugins/ofx/import/ofximporter.cpp:In static member 
> > function 'static int OFXImporter::ofxAccountCallback(OfxAccountData, 
> > void*)':
> > /build/kmymoney/plugins/ofx/import/ofximporter.cpp:765:30:error: 
> > 'OFX_401K' is not a member of 'OfxAccountData'
> >  765 |         case OfxAccountData::OFX_401K:
> >      | ^~~~~~~~
> >
> > Doesn't seems to be a lib missing, I'd guess a change in data format 
> > that wasn't ported to the plugin, but it could also be a missing 
> > config in my build.
> >
> 
> I've been building from master with ofx import for a long time, with no 
> problems, most recently within the past day or so.  What version of 
> libofx do you have installed?  I've got 0.10.9.
> 
> Also, try from a completely clean build dir.  It doesn't seem likely, 
> but it's possible something is left over from an old build.

It seems that your libofx version is outdated. From the NEWS file, you
need at least 0.10.0 which has the following entry (among others):

        - added a new account type OfxAccountData::OFX_401K

Unfortunately, the KMyMoney build system does not check for the minimum
version required for libofx.

-- 

Regards

Thomas Baumgart

-------------------------------------------------------------
Q: Do you know the golden rule?
A: The rules are made by those who own the gold!
-- Frank Stornach
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 868 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20230422/bb7e22fc/attachment.sig>


More information about the KMyMoney-devel mailing list