您好,登錄后才能下訂單哦!
從 GITHUB 上拉別人一個(gè)boost工程
https://github.com/moritz-wundke/Boost-for-Android
編譯需要MinGW(Min GNU for Window)
下載了MinGW 下載器
http://www.mingw.org/wiki/MSYS
然后將bin路徑加入到path環(huán)境變量中
C:\msys\1.0\bin
Mingw 運(yùn)行l(wèi)s 提示有報(bào)錯(cuò)
couldn't reserve space for cygwin's heap
下載rebase工具
開始設(shè)置為0x76000000 sh 又抱錯(cuò)
rebase -b 0x50000000 C:\msys\1.0\bin\msys-1.0.dll
執(zhí)行boost 編譯
build-android.bat G:\androidndkr9
Detected Android NDK version
Undefined or not supported Android NDK version!
找個(gè)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
報(bào)
Please install wget or curl on this machine
通過mingw-get install msys-wget下載wget 相關(guān)文件,因?yàn)樽约簡为?dú)下載的msys,還需要把默認(rèn)下載的dll拷貝到C:\msys\1.0\bin
wget可以使用了,卻從sourceforge上無法下載,Bad file number
手動(dòng)下載boost 1.49.0
https://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.tar.bz2/download
繼續(xù)運(yùn)行編譯腳本
tar: Error exit delayed from previous errors
./build-android.sh: line 412: ./bjam: No such file or directory
Failed to build Boost.Build engine
手動(dòng)解壓to be continued.....
運(yùn)行腳本 提示缺少mspdb60.dll 下載一個(gè)放入system32
依然Failed to build Boost.Build engine
============================================================
將相關(guān)代碼轉(zhuǎn)移到ubuntu上進(jìn)行編譯,bjam順利生成,
繼續(xù)編譯需要
git clone https://github.com/pelya/libiconv-libicu-android.git
手動(dòng)下載 解壓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 等檢查報(bào)錯(cuò),修改configure 發(fā)現(xiàn)configure 是自動(dòng)生成的,又陷入一個(gè)大坑中
=============================================================
有空試試這個(gè)
http://blog.csdn.net/ly131420/article/details/46648125
大部分庫編譯出來了 有幾個(gè)庫報(bào)錯(cuò)
...failed updating 3 targets...
...skipped 6 targets...
...updated 520 targets...
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。