linux 编译命令备注

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



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值