[sword-devel] Sword library: Compiler errors with newer version of ICU (63) on Ubuntu 19.04

Greg Hellings greg.hellings at gmail.com
Sat Jun 15 16:29:41 EDT 2019


There are patches already in SVN head for building with CMake that set the
appropriate compiler flag for this. It's necessary for anything after ICU 61

On Sat, Jun 15, 2019, 13:33 Tobias Klein <contact at tklein.info> wrote:

> Hi,
>
> While building Ezra Project packages for Ubuntu 19.04 including a
> statically linked version of Sword I ran into compile time problems. The
> problems were related to the ICU library.
>
> I'm using libicu-dev (ICU 63):
> https://packages.ubuntu.com/disco/libicu-dev
>
> The errors are all the same and caused by UnicodeString type that cannot
> be identified as a type.
>
> Example:
>
> In file included from
> /tmp/node-sword-interface-git/sword/src/mgr/swmgr.cpp:108:
> /tmp/node-sword-interface-git/sword/include/utf8transliterator.h:53:2:
> error: 'UnicodeString' does not name a type
>    UnicodeString resource;
>
> The issue can be fixed by prepending a "icu::" namespace identifier in
> front of the UnicodeString (like icu::UnicodeString) or by just adding
> statement in the beginning "using namespace icu;".
> I've been patching my Sword checkout using the "using namespace icu;"
> fix in the corresponding files, see attached patch.
>
> This does not cause problems with an earlier ICU version (like 60.2 on
> Ubuntu 18.04 LTS), so it may just be included in the Sword sources?
>
> Best regards,
> Tobias
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20190615/1d9c1ad3/attachment.html>


More information about the sword-devel mailing list