win32: building libofx

Christian Stimming stimming at tuhh.de
Tue Feb 6 09:21:26 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've been trying to build libofx on windows/mingw and it seems I've been
mostly successful.

OpenSP is OpenSP-1.5.2.tar.gz from
http://sourceforge.net/project/showfiles.php?group_id=2115&package_id=2869
 ; it seems the package is not prepared for a win32-build with mingw,
only with MSVC. However, by applying the attached patch the relevant
source files are built on win32/mingw as well and the result was a
libosp-5.dll shared library, which is all I wanted.

For libofx I've used libofx-0.8.3.tar.gz from
http://sourceforge.net/project/showfiles.php?group_id=61170 ; as you can
see in the attached patch, the LDFLAGS needed an extra -no-undefined
*and* one source file uses mkstemp() which is unavailable on
windows/mingw. mktemp() without the "s" is available in mingw, although
the usage of mktemp() is usually strongly discouraged. However, in this
particular case mkstemp seems to be used erroneously anyway and its
usage rather corresponds to how mktemp should be used. So for the
windows port it should be totally fine to just replace this by mktemp
here. Eventually, the original code should be fixed in order to use
mkstemp correctly. A similar usage of mkstemp plus workarounds for
windows/mingw was found here
http://lists.mplayerhq.hu/pipermail/mplayer-cygwin/2006-March/002581.html

With opensp and libofx installed, I was able to compile aqbanking with
ofxdirectconnect (functioning code only in SVN, not yet released).
Gnucash with --enable-ofx will follow soon.

Regards,

Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRciO5mXAi+BfhivFAQJh9AP/dDPvqNRVQNQ8AfMdP4S9B1fsvofiEond
16p9n/75WuvPxRgOD35K1mrd7/J19AEaiUXSSj/Z8PZKaHBrBheSc109sZbOTcYZ
Q6hHoA0Iuy+++UKKq05folVGbB1rmZv0Xd6hyfMzOmAmEf342K/4T7JZIS5Qnjtj
xCaVCo3UtF4=
=CB2E
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: OpenSP-win32.patch
Url: http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20070206/4d701a00/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libofx-win32.patch
Url: http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20070206/4d701a00/attachment-0001.pl 


More information about the gnucash-devel mailing list