Aster_Build and Run

来源:互联网 发布:交通大学网络继续学院 编辑:程序博客网 时间:2024/05/16 14:44

NOTE: the instructions are valid for GNU/Linux at the moment.

Prerequisites for Building ASTER

  • specify environment variable JAVA_HOME, for example:
    echo 'export JAVA_HOME=/usr/lib/jvm/java-6-sun' >> ~/.bashrc
  • ASTER is built upon MonkeyRunner, which is shipped in Android Open Source Project. To get the latest MonkeyRunner, please follow the instructions:Downloading the Source Tree.
  • Assume $HOME/AOSP is the the directory containing all the files obtained through 'repo sync'
  • You need OpenCV 2.3

Get Source

  • The version control system is GIT:
    git clone http://code.google.com/p/aster

Build

  • Prepare MonkeyRunner for the first time
    cd $HOME/AOSPTARGET_PRODUCT=generic make monkeyrunner
    Alternatively, if you already configured/build Android by 'source build/envsetup.sh', use the faster method
    cd $HOME/AOSP/sdk/monkeyrunner && mm
  • Speficy framework path into local.properties for the first time
    cd asterecho 'framework.dir=$HOME/AOSP/out/host/linux-x86/framework' > local.properties
  • Finally, build it:
    ant compile

Run ASTER

ant distdist/aster

原创粉丝点击