1、编译命令:
libtoolize
aclocal
automake --add-missing
autoreconf
./configure
make
make install
$ ./configure --prefix=/usr/local/apache2
$ make
$ make install
$ /usr/local/apache2/bin/apachectl start
#编译android运行模拟器 命令
export PATH=$PATH:~/android/android-2.3.3_r1/out/host/linux-x86/bin
export ANDROID_PRODUCT_OUT=~/android/android-2.3.3_r1/out/target/product/generic
emulator
emulator -kernel ./prebuilt/android-arm/kernel/kernel-qemu -sysdir ./out/target/product/generic -system system.img -data userdata.img -ramdisk ramdisk.img
emulator -kernel ./prebuilt/android-arm/kernel/kernel-qemu -system ./out/target/product/generic/system.img -data ./out/target/product/generic/userdata.img -ramdisk ./out/target/product/generic/ramdisk.img
2、编译openjdk脚本
LogFile=build_debug_version.`date +%Y-%m-%d_%H:%M:%S`.log
unset JAVA_HOME
export LANG=C
export ALT_JDK_IMPORT_PATH="/usr/bin/java"
export ANT_HOME="/root/java/apache-ant-1.9.2"
export ALLOW_DOWNLOADS=true
export ALT_BOOTDIR="/root/java/jdk1.7.0_17"
export ALT_JDK_IMPORT_PATH="/root/java/jdk1.7.0_17"
export ALLOW_DOWNLOADS=true
source jdk/make/jdk_generic_profile.sh
BUILD_HOTSPOT_JOBS=2
BUILD_JAXWS=false
BUILD_JAXP=false
BUILD_CORBA=false
#先做一下检查然后make
make sanity
unset JAVA_HOME
unset CLASSPATH
export LANG=C
export ALT_BOOTDIR="/root/java/jdk1.7.0_17"
export ALLOW_DOWNLOADS=true
#并行编译线程数
export HOTSPOT_BUILD_JOBS=6
export ALT_PARALLEL_COMPILE_JOBS=6
export SKIP_COMPARE_IMAGESS=true
export USE_PRECOMPILED_HEADER=true
export BUILD_LANGTOOLS=true
export BUILD_HOTSPOT=true
export BUILD_JDK=true
BUILD_DEPLOY=false
BUILD_INSTALL=false
#export ALT_OUTPUTDIR=""
export ALT_JDK_IMPORT_PATH="/usr/bin/java"
export ANT_HOME="/root/java/apache-ant-1.9.2"
export ALT_JDK_IMPORT_PATH="/root/java/jdk1.7.0_17"
source jdk/make/jdk_generic_profile.sh
make 2>&1 | tee $ALT_OUTPUTDIR/build.log