patrickgold / icu4c-android Goto Github PK
View Code? Open in Web Editor NEWCross-compile ICU4C for Android NDK projects
License: Apache License 2.0
Cross-compile ICU4C for Android NDK projects
License: Apache License 2.0
Hi @patrickgold ,
I used the script cc-icu4c.sh for building static ICU files for x86 platform. I am able to generate .a files.
I have linked these libraries with my target using cmake command target_link_libraries().
But when I am accessing some methods in <unicode/unistr.h> I am getting linking error saying undefined symbol.
Can you help me, if I am missing something.
Hi,
When I use ndk23 to build static library, it's ok, but when build shard library, got the follow error:
tester@AAA:~/icu_android/icu4c-android$ ./cc-icu4c.sh build --arch=arm --library-type=shared
...
make[0]: Making all' in
stubdata'
make[1]: Entering directory '/home/tester/icu_android/icu4c-android/build/android/arm/stubdata'
LC_ALL=C /usr/bin/sed -f /home/tester/icu_android/icu4c-android/icu/icu4c/source/config/make2sh.sed < /home/tester/icu_android/icu4c-android/icu/icu4c/source/config/mh-linux | grep -v '#M#' | uniq >> config/icu-config
cat /home/tester/icu_android/icu4c-android/icu/icu4c/source/config/icu-config-bottom >> config/icu-config
(deps) /home/tester/icu_android/icu4c-android/icu/icu4c/source/stubdata/stubdata.cpp
chmod u-w config/icu-config
make[1]: Leaving directory '/home/tester/icu_android/icu4c-android/build/android/arm/config'
Note: rebuild with "make VERBOSE=1 " to show all compiler parameters.
make[1]: *** No rule to make target 'armv7a-linux-androideabi', needed by 'all-local'. Stop.
make[1]: Leaving directory '/home/tester/icu_android/icu4c-android/build/android/arm/stubdata'
make: *** [Makefile:153: all-recursive] Error 2
When I run the script on my machine, it will fail for checking whether the C compiler works... no
when building stuffs for host. But if I directly run the runConfigureICU
script in the icu4c source tree, everything is OK. This really confuse me, so I ask for help here.
NDK Version: 25.0.8775105
Android API Level: 21
ICU Version: 72.1 (I also tried 71.1)
Host OS: Arch Linux
Host Arch: x86_64
config.log: https://pb.envs.net/?14d04d4174197b2e#ABkjdgYmRtxqTG55NBZM21N2TGh6qAgjCHAHx16ygpa9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.