android 8.0 展讯平台系统编译问题点
編譯系統(tǒng)異常點(diǎn)
1. 如何編譯參考郵件
?? ??? ?1. 解壓 idh.code.tgz 得到 idh.code 文件夾
?? ??? ?2. 解壓 conf-sharkle.tar.gz 得到 device 文件夾
?? ??? ?3. 將 device/sprd 文件夾拷貝到 idh.code/device 文件夾下,
?? ??? ?4. 按照安卓正常編譯
注:?? ??? ?
?? ??? ?1. ?? ?proprietories-sl8541e_1h10_gofu_osea-user.zip 或者 proprietories-sl8541e_1h10_gofu_osea-userdebug.zip 必須存在
?? ??? ?2. ?lunch 選擇 sl8541e_1h10_gofu_osea 或者 sl8541e_1h10_gofu_osea-userdebug?
?? ??? ?3. ?解壓對(duì)應(yīng)的 proprietories-sl8541e_1h10_gofu_osea-user.zip 或者 proprietories-sl8541e_1h10_gofu_osea-userdebug.zip (根據(jù)lunch 選擇使用哪個(gè)文件夾中的文件) ,將其中的 sml.bin 和 tos.bin 倆個(gè)文件放到 idh.code/out/target/product/${BOARD_NAME} 下
?? ??? ?4. ?進(jìn)行 make 操作?? ??? ?
2. pack 打包
?? ??? ?閱讀 pac_script3.rar 中的 readme 文檔
3. 編譯問(wèn)題及解決
3.1?
?? ?[ ?0% 719/76023] Lex: applypatch <= bootable/recovery/edify/lexer.ll
?? ?FAILED: out/target/product/sl8541e_1h10_go/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp?
?? ?/bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/target/product/sl8541e_1h10_go/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp bootable/recovery/edify/lexer.ll"
?? ?flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
?? ?Aborted (core dumped)
?? ?
?? ?解決:?? ?
?? ??? ?export LC_ALL=C?
?? ??? ?
3.2?
?? ?FAILED: out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex?
?? ?/bin/bash out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex.rsp
?? ?Out of memory error (version 1.3-rc7 'Douarn' (445000 d7be3910514558d6715ce455ce0861ae2f56925a by android-jack-team@google.com)).
?? ?GC overhead limit exceeded.
?? ?Try increasing heap size with java option '-Xmx<size>'.
?? ?解決:?
?? ??? ??? ??? ?
?? ??? ?export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx10240m" ?? ?
?? ??? ?./prebuilts/sdk/tools/jack-admin kill-server
?? ??? ?./prebuilts/sdk/tools/jack-admin start-server?? ??? ?
?? ??? ?
3.3?
?? ??? ?FAILED: out/target/common/docs/api-stubs-timestamp?
?? ??? ?/bin/bash out/target/common/docs/api-stubs-timestamp.rsp
?? ??? ?OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000bdc80000, 87556096, 0) failed; error='Cannot allocate memory' (errno=12)
?? ??? ?#
?? ??? ?# There is insufficient memory for the Java Runtime Environment to continue.
?? ??? ?# Native memory allocation (mmap) failed to map 87556096 bytes for committing reserved memory.
?? ??? ?# An error report file with more information is saved as:
?? ?解決:
?? ??? ?mkdir /swapfile
?? ? ?cd /swapfile
?? ??? ?sudo dd if=/dev/zero of=swap bs=1024 count=10000000?? ??? ?# 10g 交換空間
?? ??? ?sudo mkswap -f ?swap
?? ??? ?sudo swapon swap?? ??? ?# 啟動(dòng)交換空間
?? ??? ?
3.4 ?? ??? ?
?? ? #### ?no out/target/product/sl8541e_1h10_go/sml-sign.bin, pls check ####?
?? ? #### ?no out/target/product/sl8541e_1h10_go/tos-sign.bin, pls check ####?? ?
?? ?解決:
?? ??? ? 查找 sml.bin tos.bin 文件,并將其放到 out/target/product/ 目錄下。
?? ??? ??
?? ?
?? ??? ?
?? ??? ?
注:
?? ? 1. 在筆記本或虛擬機(jī)中進(jìn)行編譯時(shí),make 前先進(jìn)行3.1,3.2 的配置
?? ? ?? ??? ??? ?
?? ? ?? ??? ??? ?
4. 燒錄
?? ?1. 驅(qū)動(dòng)安裝
?? ??? ? 解壓 ?MODEM 下 CP0 中的 FM_BASE_17B_Release_W18.47.2_9832e_CUSTOMER.rar ,安裝 Tools 中的 drivers(可 安裝 Drivers 文件夾下的驅(qū)動(dòng))
?? ??? ?
?? ? ?? ??? ??? ?
?? ??
3.4 jack-server端口沖突
?? ?解決:
?? ?1).改端口號(hào)
?? ?~/.jack-server/config.properties
?? ?~/.jack-settings
?? ?兩個(gè)文件的SERVER_PORT_SERVICE和SERVER_PORT_ADMIN要一致
?? ?2).改權(quán)限(要注意.jack-server文件夾里面每個(gè)文件和文件夾的權(quán)限)
?? ?chmod 700 ~/.jack-server
?? ?chmod 600 ~/.jack-server/client.jks
?? ?chmod 600 ~/.jack-server/client.pem
?? ?chmod 600 ~/.jack-server/launcher.jar
?? ?chmod 600 ~/.jack-server/server-1.jar
?? ?chmod 600 ~/.jack-server/server.jks
?? ?chmod 600 ~/.jack-server/server.pem
?? ?chmod 600 ~/.jack-server/config.properties
?? ?chmod 775 ~/.jack-server/jack
?? ?chmod 764 ~/.jack-server/jack/jack-1546930398112-0.jar
?? ?chmod 775 ~/.jack-server/logs
?? ?chmod 764 ~/.jack-server/logs/outputs.txt
?
總結(jié)
以上是生活随笔為你收集整理的android 8.0 展讯平台系统编译问题点的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: python话费充值_用Python方法
- 下一篇: 300000000元!短融网获C轮融资,