从 GITHUB 上拉别人一个boost工程
https://github.com/moritz-wundke/Boost-for-Android
编译需要MinGW(Min GNU for Window)
下载了MinGW 下载器
http://www.mingw.org/wiki/MSYS
然后将bin路径加入到path环境变量中
C:\msys\1.0\bin
Mingw 运行ls 提示有报错
couldn't reserve space for cygwin's heap
下载rebase工具
开始设置为0x76000000 sh 又抱错
rebase -b 0x50000000 C:\msys\1.0\bin\msys-1.0.dll
执行boost 编译
build-android.bat G:\androidndkr9
Detected Android NDK version
Undefined or not supported Android NDK version!
找个r10版本呢
build-android.bat --boost=1.49.0 G:\android-ndk-r10
Building boost version: 1.49.0
Detected Android NDK version 10
Undefined or not supported Android NDK version!
修改Boost-for-Android-master\build-android.sh
报
Please install wget or curl on this machine
通过mingw-get install msys-wget下载wget 相关文件,因为自己单独下载的msys,还需要把默认下载的dll拷贝到C:\msys\1.0\bin
wget可以使用了,却从sourceforge上无法下载,Bad file number
手动下载boost 1.49.0
https://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.tar.bz2/download
继续运行编译脚本
tar: Error exit delayed from previous errors
./build-android.sh: line 412: ./bjam: No such file or directory
Failed to build Boost.Build engine
手动解压to be continued.....
运行脚本 提示缺少mspdb60.dll 下载一个放入system32
依然Failed to build Boost.Build engine
============================================================
将相关代码转移到ubuntu上进行编译,bjam顺利生成,
继续编译需要
git clone https://github.com/pelya/libiconv-libicu-android.git
手动下载 解压build
configure: error: in `/home/lindongtao/BOOST/Boost-for-Android-master/libiconv-libicu-android-master/armeabi/libiconv-1.14':
configure: error: C compiler cannot create executables
gcc -V -qversion 等检查报错,修改configure 发现configure 是自动生成的,又陷入一个大坑中
=============================================================
有空试试这个
http://blog.csdn.net/ly131420/article/details/46648125
大部分库编译出来了 有几个库报错
...failed updating 3 targets...
...skipped 6 targets...
...updated 520 targets...
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。