编译,并使用升压为Android NDK R10e [英] Compile and use boost for Android NDK R10e
问题描述
我如何编译和使用升压为Android NDK?我尝试了一切,我在网上发现,从提升为Android 以自己与文件的bjam编译它。不过,我没有成功。当我试着使用的bjam编译它,我收到以下错误:
How do I compile and use Boost for the Android NDK? I've tried everything I've found online, from Boost for Android to compiling it myself with the bjam file. However, I do not succeed. When I try compiling it with bjam, I get the following error:
error: toolset gcc initialization:
error: version 'androidR10e' requested but 'g++-androidR10e' not found and version '4.2.1' of default 'g++' does not match
error: initialized from /path/to/android-ndk-r10e/sources/boost/tools/build/v2/user-config.jam:86
拥有与Android NDK R10e没有人成功地使用升压?
Has anyone successfully used Boost with Android NDK R10e?
当我可以编译它,我应该怎么办我的Android应用项目使用它?
And when I can compile it, how should I do to use it in my Android app project?
推荐答案
我们设法编译它NDKr10d。它应该是NDKr10e相同。
该项目config.bjam应指向从NDK gcc编译器。我们是这样的:
We managed to compile it for NDKr10d. It should be the same for NDKr10e. The project-config.bjam should point to the gcc compiler from the NDK. Ours looks like this :
import option ;
using gcc : arm : D:\\android\\ndk\\toolchains\\arm-linux-androideabi-4.9\\prebuilt\\windows-x86_64\\bin\\arm-linux-androideabi-g++.exe ;
option.set keep-going : false ;
然后只需用B2编译,告诉路径Android包括:
Then just compile with b2, telling paths to android includes :
b2 --reconfigure <your options>
toolset=gcc-arm
include=<ndk folder>\sources\cxx-stl\gnu-libstdc++\4.9\include
include=<ndk folder>\sources\cxx-stl\gnu-libstdc++\4.9\libs\<target platform>\include
include=<ndk folder>\platforms\<android api version>\arch-arm\usr\include
install --libdir=stage\lib\<target platform>
我们即将搬到ndkr10e。你能否告诉我们,如果刺激仍与它的工作原理? :)
We're about to move to ndkr10e. Could you tell if boost still works with it ? :)
这篇关于编译,并使用升压为Android NDK R10e的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!