我有一个项目,它的 boost 1.64 可以在 android 上运行。现在,我需要启用boost::locale
依赖于ICU
/ ICONV
libs 的库。我下载了https://github.com/pelya/libiconv-libicu-android,并成功编译。然后我添加列表
(APPEND BOOST_FLAGS boost.locale.icu=on -sICU_PATH=MY_PATH/libiconv-libicu-android-master/armeabi-v7a -sICONV_PATH=MY_PATH/libiconv-libicu-android-master/armeabi-v7a)
到我的 cmake 文件。但不幸的是,升压日志仍然告诉我:
Performing configuration checks
- 32-bit : no (cached)
- 64-bit : yes (cached)
- arm : yes (cached)
构建 Boost C++ 库。
- symlinks supported : yes (cached)
- zlib : yes (cached)
- iconv (libc) : no (cached)
- iconv (separate) : no (cached)
- icu : no (cached)
- icu (lib64) : no (cached)
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- Boost.Locale needs either iconv or ICU library to be built.
- has_icu builds : no (cached)
从boost::locale
官方文档中,我发现似乎 ICU 库是共享库,但 libiconv-libicu-android 只提供静态库。有关系吗?
希望任何人都可以提供帮助,在此先感谢。