Platform: ROCKCHIP
OS: Android 6.0
Kernel: 3.10.92
拿到一台新安装的编译用服务器, 版本是:
Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-30-generic x86_64)
开始build会遇到一些缺少package的error,小结如下。
Build Kernel:
Error 1:
build@build--machine:~/rk3288/kernel$ make rk3288-tb_8846.img
。..。..
LD vmlinux
SORTEX vmlinux
SYSMAP System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
LZO arch/arm/boot/compressed/piggy.lzo
/bin/sh: 1: lzop: not found
CC arch/arm/boot/compressed/misc.o
make[2]: *** [arch/arm/boot/compressed/piggy.lzo] Error 1
make[2]: *** Waiting for unfinished jobs.。..
make[2]: *** wait: No child processes. Stop.
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [zImage] Error 2
解决办法:
#sudo apt-get install lzop
Error 2:
build@build--machine:~/rk3288/kernel$ make rk3288-tb_8846.img
scripts/kconfig/conf --silentoldconfig Kconfig
^C
build@build--machine:~/rk3288/kernel$ make rk3288-tb_8846.img
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h‘ is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
GEN drivers/video/rockchip/screen/lcd.h
Kernel: arch/arm/boot/Image is ready
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make: *** [kernel.img] Error 127
#### make failed to build some targets (18 seconds) ####
解决办法:
安装64bit机子对32bit程序运行的支持。
#sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
另外,Android 5.1之后用的java环境是 openjdk-7,否则报错。
解决办法:
#sudo apt-get install openjdk-7-jdk
#PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH
Build Android:
Error1:
build@build--machine:~/rk3288/kernel$ make -j8
。..。..
Notice file: external/jarjar/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//framework/jarjar.jar.txt
Yacc: aidl 《= frameworks/base/tools/aidl/aidl_language_y.y
prebuilts/misc/linux-x86/bison/bison -d -o out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp frameworks/base/tools/aidl/aidl_language_y.y
Notice file: frameworks/base/tools/aidl/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//bin/aidl.txt
Lex: aidl 《= frameworks/base/tools/aidl/aidl_language_l.l
make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp] Broken pipe
make: *** Waiting for unfinished jobs.。..
flex-2.5.39: fatal internal error, exec of /usr/bin/m4 failed
frameworks/base/tools/aidl/aidl_language_l.l:55: warning, rule cannot be matched
make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Broken pipe
make: *** Deleting file `out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp’
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
解决办法:
#sudo apt-get install bison
Error2:
build@build--machine:~/rk3288/kernel$ make -j8
Copy: out/target/product/rk3288/system/etc/.allBlock
Copy: out/target/product/rk3288/system/etc/.videoBlock
Copy xml: out/target/product/rk3288/system/etc/GS8604.xml
/bin/bash: xmllint: command not found
make: *** [out/target/product/rk3288/system/etc/GS8604.xml] Error 127
make: *** Waiting for unfinished jobs.。..
preparing StaticLib: libc_common [including out/target/product/rk3288/obj/STATIC_LIBRARIES/libc_thread_atexit_impl_intermediates/libc_thread_atexit_impl.a]
preparing StaticLib: libc_common [including out/target/product/rk3288/obj/STATIC_LIBRARIES/libc_tzcode_intermediates/libc_tzcode.a]
target StaticLib: libc_common (out/target/product/rk3288/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a)
#### make failed to build some targets (12:49 (mm:ss)) ####
解决方法:
#sudo apt-get install libxml2-utils
Platform: ROCKCHIP
OS: Android 6.0
Kernel: 3.10.92
拿到一台新安装的编译用服务器, 版本是:
Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-30-generic x86_64)
开始build会遇到一些缺少package的error,小结如下。
Build Kernel:
Error 1:
build@build--machine:~/rk3288/kernel$ make rk3288-tb_8846.img
。..。..
LD vmlinux
SORTEX vmlinux
SYSMAP System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
LZO arch/arm/boot/compressed/piggy.lzo
/bin/sh: 1: lzop: not found
CC arch/arm/boot/compressed/misc.o
make[2]: *** [arch/arm/boot/compressed/piggy.lzo] Error 1
make[2]: *** Waiting for unfinished jobs.。..
make[2]: *** wait: No child processes. Stop.
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [zImage] Error 2
解决办法:
#sudo apt-get install lzop
Error 2:
build@build--machine:~/rk3288/kernel$ make rk3288-tb_8846.img
scripts/kconfig/conf --silentoldconfig Kconfig
^C
build@build--machine:~/rk3288/kernel$ make rk3288-tb_8846.img
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h‘ is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
GEN drivers/video/rockchip/screen/lcd.h
Kernel: arch/arm/boot/Image is ready
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make: *** [kernel.img] Error 127
#### make failed to build some targets (18 seconds) ####
解决办法:
安装64bit机子对32bit程序运行的支持。
#sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
另外,Android 5.1之后用的java环境是 openjdk-7,否则报错。
解决办法:
#sudo apt-get install openjdk-7-jdk
#PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH
Build Android:
Error1:
build@build--machine:~/rk3288/kernel$ make -j8
。..。..
Notice file: external/jarjar/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//framework/jarjar.jar.txt
Yacc: aidl 《= frameworks/base/tools/aidl/aidl_language_y.y
prebuilts/misc/linux-x86/bison/bison -d -o out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp frameworks/base/tools/aidl/aidl_language_y.y
Notice file: frameworks/base/tools/aidl/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//bin/aidl.txt
Lex: aidl 《= frameworks/base/tools/aidl/aidl_language_l.l
make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp] Broken pipe
make: *** Waiting for unfinished jobs.。..
flex-2.5.39: fatal internal error, exec of /usr/bin/m4 failed
frameworks/base/tools/aidl/aidl_language_l.l:55: warning, rule cannot be matched
make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Broken pipe
make: *** Deleting file `out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp’
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
解决办法:
#sudo apt-get install bison
Error2:
build@build--machine:~/rk3288/kernel$ make -j8
Copy: out/target/product/rk3288/system/etc/.allBlock
Copy: out/target/product/rk3288/system/etc/.videoBlock
Copy xml: out/target/product/rk3288/system/etc/GS8604.xml
/bin/bash: xmllint: command not found
make: *** [out/target/product/rk3288/system/etc/GS8604.xml] Error 127
make: *** Waiting for unfinished jobs.。..
preparing StaticLib: libc_common [including out/target/product/rk3288/obj/STATIC_LIBRARIES/libc_thread_atexit_impl_intermediates/libc_thread_atexit_impl.a]
preparing StaticLib: libc_common [including out/target/product/rk3288/obj/STATIC_LIBRARIES/libc_tzcode_intermediates/libc_tzcode.a]
target StaticLib: libc_common (out/target/product/rk3288/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a)
#### make failed to build some targets (12:49 (mm:ss)) ####
解决方法:
#sudo apt-get install libxml2-utils
举报