[sword-devel] ICU build fix

munns at uwalumni.com munns at uwalumni.com
Fri Oct 6 19:07:28 MST 2006

Hello everyone,

I believe I have a solution for the problems building sword-1.5.9 with ICU.
Tests were failing to build properly.  The attached patch solved the compile
errors in Unicode streams for me, maybe it will for everyone else hopefully
including Fedora Core users.

A good test to see your "true" ICU version is to type "icu-config --version" at
the command line.  That is what the configure script is using, no matter what
your package is named.  Mine reported "3.4.1".

The key for recent ICU versions is to make sure that icu-config is called with
--ldflags-icuio, not --ldflags-ustdio.  The version check was broken, and
failed to set up ICU_IOLIBS correctly.

The attached patch is more complex than absolutely necessary, since you could
just check that the first part of the version number is 3 or greater, but I
wanted to build a script that was capable of doing version checking against an
arbitrary version identifier (must be numerical).

Hope this helps,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-configure-ac-to-allow-icu-3-4-1-build.patch
Type: text/x-patch
Size: 1726 bytes
Desc: not available
Url : http://www.crosswire.org/pipermail/sword-devel/attachments/20061006/1b1478e5/attachment.bin 

More information about the sword-devel mailing list