Compiling ICU4C for Unity Android

19 views
Skip to first unread message

Lucas García Mateu

unread,
Sep 11, 2025, 8:55:38 PMSep 11
to icu-support
Greetings,

For context I will explain the full extent to our intents with the ICU4C library, since there may be a better way to approach it overall.

We use Unity UI for building digital product for the Middle East. Unfortunatelly, the TextMeshPro text component doesn't feature support for RTL, so for Arabic we have built a modified version of the component which uses ICU4C for setting the text flow using the Unicode Bidirectional Algorithm.

Since Unity doesn't support C++ directly, this is achieved through a C++ wrapper which uses the binaries distributed by ICU, compiled to a native-plugin which is used by Unity through the Mono interop feature.

This approach works well in Windows, but of course not in Android. For following the same path we would have to build an Android native-plugin. Building the wrapper seems easy enough, Visual Studio features a template for Dynamic Shared Library (Android) and I could also read into the documentation of the Android NDK. However, I would also need the binaries for the ICU4C library, and that's what I need help with.

So far, since I don't find them among the released binaries, I've tried to compile them myself. After downloading the source code and compiling it for Windows I can't get around changing the configuration of the Visual Studio project to compile for Android. I have also tried CMake, but copy pasting AI scripts hasn't been of any use either.

How can I get the ".so" binaries compatible for Android I need? Is it possible to compile ICU4C to Android binaries without modifying the source code? If not, is there another feasable approach?

Thanks

Tanto este mensaje como todos los posibles documentos adjuntos al mismo, son confidenciales y están dirigidos exclusivamente a los destinatarios de los mismos. Por favor, si Usted no es uno de dichos destinatarios, notifíquenos este hecho y elimine el mensaje de su sistema. Queda prohibida la copia, difusión o revelación de su contenido a terceros sin el previo consentimiento por escrito de “SNGULAR.”. En caso contrario, vulnerará la legislación vigente. Sus datos figuran en un fichero automatizado propiedad de “SNGULAR.”. Si desea acceder a sus datos, rectificarlos, cancelarlos u oponerse a su tratamiento, diríjase a “SNGULAR.”, Calle Labastida 1, provincia de Madrid, con Código Postal 28034. Entendiendo por SNGULAR al grupo empresarial encabezado por Singular People S.A. y compuesto por todas sus filiales. Singular People S.A. y todas sus filiales mantienen un compromiso claro con el establecimiento y desarrollo de políticas que integren la igualdad de trato y oportunidades entre todas las personas. Por ello, impulsa medidas para lograr la igualdad efectiva y contribuir a la eliminación de cualquier discriminación, especialmente aquellas directa o indirectamente causadas por razón de género. Antes de imprimir este mensaje, por favor comprueba que es necesario hacerlo. 


The contents of this email, including any attachments, are confidential and are intended only for the person or entity to which it is addressed. If it was not addressed to you and you think you received it in error, please notify the sender and delete it from your computer. The use, copying, or distribution of the contents of this email, or any attachments hereto, to third parties without SNGULAR's consent or approval is strictly prohibited. Failing to comply with this rule could mean that you are violating the applicable laws and regulations. Your data is stored in an automated file owned by "SNGULAR.” If you want to access, modify, cancel or deny the treatment of your data, please contact "SNGULAR,” Calle Labastida 1, Madrid, Postal Code 28034 (Community of Madrid - Spain). SNGULAR is considered as the business group of the parent company Singular People S.A. and all its subsidiaries. Singular People S.A. and its subsidiaries are firmly committed to developing and implementing policies that promote equal rights and opportunities for all. To this end, the company promotes actions to ensure equality and, thus, contribute to eliminating any kind of discrimination, especially those directly or indirectly caused by gender. Please verify if it is necessary before printing this message.

Reply all
Reply to author
Forward
0 new messages