在编译过程中出现错误信息包含以下内容:
usr/share/pc-bios/bios.bin ………… tools/lib/pc-bios/bios.bin
usr/share/pc-bios/vgabios-cirrus.bin ………… tools/lib/pc-bios/vgabios-cirrus.bin
说明在路径:~/Android_Src/out/host/linux-x86/usr/share下找不到pc-bios文件夹,并不是在本机系统目录/usr/share……下找不到该文件夹,本机系统这个目录下的确没有的。
解决方法为:
复制:~/Android_Src/prebuilt/common下的pc-bios文件夹到以下目录:~/Android_Src/out/host/linux-x86/usr/share即可解决,命令行输入:
$cp ~/Android_Src/prebuilt/common/pc-bios ~/Android_Src/out/host/linux-x86/usr/share (测试未通过)
$cp ~/Android_Src/prebuilt/common/pc-bios ~/Android_Src/usr/share (测试OK)
在编译的过程中又出现如下提示:
……………………
Docs droiddoc: out/target/common/docs/online-sdk
htmlDir not a directory: out/target/common/docs/gen
DroidDoc took 105 sec. to write docs to out/target/common/docs/online-sdk
Package SDK: out/host/linux-x86/sdk/android-sdk_eng.neo_linux-x86.zip
sdk/build/tools.atree:134: couldn't locate source file: framework/ddmlib-tests.jar
sdk/build/tools.atree:135: couldn't locate source file: framework/ninepatch-tests.jar
sdk/build/tools.atree:136: couldn't locate source file: framework/common-tests.jar
sdk/build/tools.atree:138: couldn't locate source file: framework/sdkuilib-tests.jar
make: *** [out/host/linux-x86/sdk/android-sdk_eng.root_linux-x86.zip] Error 44
大概的意思在framework目录下找不到ddmlib-tests.jar ninepath-tests.jar common-tests.jar sdkuilib-tests.jar这几个文件,有一点要说明的是这里的framework目录指的是:~/Android_Src/out/host/linux-x86/framework 这个目录,你可以在这里找到以下几个文件common.jar ddmlib.jar ninepatch.jar sdkuilib.jar,然后将它们分别复制一份,并重命名,命名的原则很简单,就是在原有的名字后面跟上-tests即可。
接下来继续编译,没有其他错误的话,命令行会出现以下提示:
Docs droiddoc: out/target/common/docs/online-sdk
htmlDir not a directory: out/target/common/docs/gen
DroidDoc took 90 sec. to write docs to out/target/common/docs/online-sdk
Package SDK: out/host/linux-x86/sdk/android-sdk_eng.neo_linux-x86.zip
xxx@xxx:~/Android_Src$
这说明sdk编译也已经完成。