How to build boost for android as shared library with c++11 support

后端 未结 2 1402
生来不讨喜
生来不讨喜 2020-12-30 04:13

I am trying to build boost_1.60.0 (as shared library) for android with c++11 support. I am using the latest ndk (currently android-ndk-r10e). The build host is Windows-10. <

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-30 04:23

    A relevant information is here (Boost for Android), where they have been able to successfully build the shared libraries, but it seems that the resulting files have a version suffix which android can't handle. Also one can't just rename the binary because the file name is hardcoded in it. One way out, as per the last post, is to set the variable version_type to none (version_type=none) in the linux section of file. In your case, the build setup could be a little different, but it may be worthwhile to take a look at the changes they made at that discussion.

提交回复
热议问题