我有一个项目,它具有可以在android上运行的1.64版本。现在,我需要启用boost::locale
库,它依赖于/ICONV
库。 我下载https://github.com/pelya/libiconv-libicu-android,并成功编译。然后我添加列表如何为Android构建boost :: locale
(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只提供静态库。这很重要吗?
希望任何人都可以提供帮助,提前致谢。
我试过在32位android上编译iconv并且工作。但64位仍然失败,任何人都可以击中 –