What we need:
Boost(http://switch.dl.sourceforge.net/project/boost/boost/1.56.0/boost_1_56_0.7z)
A compiler (Visual C++ 2010)
Android NDK(http://dl.google.com/android/ndk/android-ndk32-r10b-windows-x86.zip)

Download and extract Boost (ex: D:\boost; you can extract only boost, libs, tools subdirs and the files in the main dir).



Download and unzip Android NDK (ex: D:\android-ndk-r10b).




Go to Boost_dir\tools\build\src and create a new file,

user-config.jam


Open that file with a text editor and add:

importos;androidNDKRoot=D:/android-ndk-r10;usinggcc:android:$(androidNDKRoot)/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-g++:<compileflags>--sysroot=$(androidNDKRoot)/platforms/android-9/arch-arm<compileflags>-mthumb<compileflags>-Os<compileflags>-fno-strict-aliasing<compileflags>-O2<compileflags>-DNDEBUG<compileflags>-g<compileflags>-lstdc++<compileflags>-I$(androidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.8/include<compileflags>-I$(androidNDKRoot)/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi/include<compileflags>-D__GLIBC__<compileflags>-D__arm__<archiver>$(androidNDKRoot)/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-ar<ranlib>$(androidNDKRoot)/toolchains/arm-linux-androideabi-4.8/prebuilt/windows/bin/arm-linux-androideabi-ranlib;


Save and close that file.

Open Visual Studio Command Prompt.

Go to boost dir (cd D:\boost).

Execute:

bootstrap




Execute:

b2^--without-python^--prefix=.\out\^--build-dir=.\build^variant=release^link=staticruntime-link=static^toolset=gcc-androidtarget-os=linux^threading=multi--stagedir=androidstage


If everything went well, you will have the libs in "android" folder.

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. android实现字体闪烁动画的方法
  2. android用户界面之按钮(Button)教程实例
  3. Android(安卓)SDK开发包国内下载地址
  4. JS与Android WebView的简单交互 + WebVie
  5. 读取android手机流量信息
  6. 《Android和PHP最佳实践》官方站
  7. 2112-7-18 android切屏动画overridePendi
  8. 如何去掉状态栏和内容视图之间的黑色阴影
  9. android、apple PUSH 异同比较
  10. 使用afinal 中的finalhttp和finalbitmap