有两台服务器R710和R720,hudson配置带710上,源码在720上,现在需要将源码的集成构建配置到hudson上。在R720中,Ubuntu 12.04,已经安装了JDK1.6, 并且java -version可以显示出版本信息。sdk和jdk配置在/etc/profile中,自带的相关gcc工具配置在~/.bashrc中。方法:
1.在720中配置源码的构建脚本build_source.sh
2.在710中通过ssh_R720.sh连接720中,执行build_source.sh:
ssh Lily@172.100.21.22 "/home/LiLei/Source/build_source.sh"
出现问题:
1.编译android时,仍然提示没有JDK,这是为什么??
lemon@lemon-linuxPC:~/bin$ java -versionjava version "1.6.0_43"
Java(TM) SE Runtime Environment (build 1.6.0_43-b01)
Java HotSpot(TM) Server VM (build 20.14-b01, mixed mode)
lemon@lemon-linuxPC:~/bin/work_ljf_android$ sudo make
build/core/config.mk:268: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com。 停止。
解决方法:
在ssh_R720.sh中source /etc/profile: ssh Lily@172.100.21.22 "source /etc/profile;export;/home/LiLei/Source/build_source.sh"
2.找不到arm-none-linux-gnueabi-gcc /bin/sh: 1: arm-none-linux-gnueabi-gcc: not found解决方法:
arm-none-linux-gnueabi-gcc在amlogic中。 在build_Source.sh中AML_TOOLS=/home/LiLei/amlogicexport PATH=$PATH:$AML_TOOLS/amlogic-kernel-gcc/bin:$AML_TOOLS/amlogic-uboot-gcc/bin:$AML_TOOLS/arc2.3-p0/elf32-4.2.1/bin:$AML_TOOLS/arc2.3-p0/uclibc-4.2.1/bin