【问题标题】:Does log4cplus library supporting c++_shared runtime library for Androidlog4cplus 库是否支持 Android 的 c++_shared 运行时库
【发布时间】:2017-03-25 19:30:24
【问题描述】:

我正在为 android 编译 log4cplus 库,它需要 c++ 运行时 STL 库。根据

https://github.com/log4cplus/log4cplus/blob/master/android/android.toolchain.cmake

行号:835-837如下:

if( BUILD_WITH_ANDROID_NDK )
  if( NOT "${ANDROID_STL}" MATCHES "^(none|system|system_re|gabi\\+\\+_static|gabi\\+\\+_shared|stlport_static|stlport_shared|gnustl_static|gnustl_shared)$")
  message( FATAL_ERROR "ANDROID_STL is set to invalid value \"${ANDROID_STL}\".

不支持c++_shared & c++_static 运行时库,如何在log4cplus for Android中添加这两个库支持?

【问题讨论】:

  • 随时尝试从github.com/taka-no-me/android-cmake 更新android.toolchain.cmake 并尝试一下。我是log4cplus的维护者,对Android开发一窍不通。让我知道你是否成功以及如何成功。

标签: android c++ logging shared-libraries log4cplus


【解决方案1】:

请将android.toolchain.cmake 文件替换为one from OpenCV。我稍后会更新 log4cplus 副本。

【讨论】:

  • 面临大量错误:: - #error 未实现 - 错误:'::iswblank' 尚未声明
  • 我正在使用 android-ndk-r9d 获得原生支持
  • @Nishant:我不知道。
猜你喜欢
  • 2020-06-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-03-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多