longyue 发表于 2016-7-25 17:27:02

Firefly-RK3288如何编译SDK

各位前辈,我第一次用android,已经按照Wiki上的说明 ( http://wiki.t-firefly.com/index.php/Firefly-RK3288/Build_android_lollipop ),编译好了内核,和android的镜像文件,可是如何编译给windows下eclipse用的SDK呢?
在sdk的doc下有一个文档,我按照上面的说明:
$ . build/envsetup.sh
$ lunch sdk-eng
$ make sdk
结果编译出现错误:

frameworks/base/core/res/res/xml/storage_list_box.xml:47: error: Error: No resource found that matches the given name (at 'storageDescription' with value '@string/storage_nand_flash').

target thumb C: libcrypto <= external/openssl/crypto/pkcs12/p12_kiss.c
target thumb C: libcrypto <= external/openssl/crypto/pkcs12/p12_mutl.c
target thumb C: libcrypto <= external/openssl/crypto/pkcs12/p12_npas.c
make: *** 错误 1
make: *** 正在删除文件“out/target/common/obj/APPS/framework-res_intermediates/package-export.apk”
make: *** 正在等待未完成的任务....
1 warning generated.

#### make failed to build some targets (01:18 (mm:ss)) ####


这SDK该如何编译,还请各位前辈指教,或给点思路,谢谢了

longyue 发表于 2016-7-27 10:03:43

自问自答吧

编译SDK时,不要用. build/envsetup.sh
而是用编译image的方法,先运行 . build.sh, 这里面会设置JAVA的环境变量,然后再lunch sdk-eng, make sdk,就能编译了

然后编译SDK的过程中又遇到了另外一个问题,不知是否有人有遇到过:

Install: out/host/linux-x86/bin/atree
Install: out/host/linux-x86/bin/line_endings
Converting font: DroidSansMono.ttf
Converting font: Lohit-Odia.ttf
Lohit-Odia.ttf is not a valid font
Traceback (most recent call last):
File "frameworks/base/tools/layoutlib/rename_font/build_font_single.py", line 208, in <module>
    main(sys.argv)
File "frameworks/base/tools/layoutlib/rename_font/build_font_single.py", line 77, in main
    convert_font(input_path, dest_path)
File "frameworks/base/tools/layoutlib/rename_font/build_font_single.py", line 96, in convert_font
    update_tag(name, get_font_info(name))
File "frameworks/base/tools/layoutlib/rename_font/build_font_single.py", line 144, in get_font_info
    font.version = get_version(namerecord.text)
File "frameworks/base/tools/layoutlib/rename_font/build_font_single.py", line 200, in get_version
    raise InvalidFontException('mal-formed font version')
__main__.InvalidFontException: mal-formed font version
make: *** 错误 1

另外插句题外话,验证码也太难识别了吧。。。。

1282925159 发表于 2016-8-24 16:03:16

longyue 发表于 2016-7-27 10:03
自问自答吧

编译SDK时,不要用. build/envsetup.sh


楼主,你解决了吗?

houzi_shen 发表于 2016-9-20 10:17:32

longyue 发表于 2016-7-27 10:03
自问自答吧

编译SDK时,不要用. build/envsetup.sh


我现在也碰到一样的问题,请问楼主解决了吗?怎么解决的?

houzi_shen 发表于 2016-9-20 10:18:46

1282925159 发表于 2016-8-24 16:03
楼主,你解决了吗?

你也碰到一样的问题吗?怎么解决的?

qliu00 发表于 2016-10-29 22:00:02

1.把frameworks/base/core/res/res/xml/storage_list_box.xml里面的47行,改成storage_internal;
2.另外,https://sourceforge.net/p/kiwix/kiwix/ci/199ab9c26662ebccfdb92d4cc8b2a4a95144c5fd/tree/android/assets/fonts/Lohit-Odia.ttf 可以重新下载Lohit-Odia.ttf,这个是你的第二个错误;
******************************************************************************************************


此外,建议你编译步骤:
1.    source build.sh
2.    lunch后选择9
3.    make -j4
页: [1]
查看完整版本: Firefly-RK3288如何编译SDK