build flutter

now writing

This is memo when I tried to install into ubuntu on vmware fusion.

Environment

  • ubuntu-ja-14.04-desktop-amd64.iso(ISOイメージ) (md5sum: f5edb84f00b9fcd1d059f04901eea7c5)

  • date

    • 2015/10/25

  • vmware setting

    • maybe, need storage 30GB, assign 60GB to use mojo build env too.

    • assign 2core and 4GB MEMORY

Result

  • ok:

    can make flutter shell for android

    and make example app apk.

[1] Install Curl and git and JDK

[1-1]

  • sudo apt-get install git

  • sudo apt-get install curl

  • sudo apt-get install emacs

[1-2] install jdk

http://tecadmin.net/install-oracle-java-8-jdk-8-ubuntu-via-ppa/

  • sudo add-apt-repository ppa:webupd8team/java

  • sudo apt-get update

  • sudo apt-get install oracle-java8-installer

[2] Install depot_tools

[2-1] clone depot_tools form git repository

[2-2] set path

export PATH=`pwd`/depot_tools:"$PATH"

[3] Checkout code

[3-1]

  • emacs .gclien

    solutions = [
    {
    "managed": False,
    "name": "src",
    "url": "https://github.com/flutter/engine.git",
    "custom_deps": {},
    "deps_file": "DEPS",
    "safesync_url": "",
    },
    ]
    target_os = ["android"]
  • gclient sync

  • cd src

[4] Build and Run mojo on Linux ./build/install-build-deps.sh ./sky/tools/gn ninja -C out/Debug ./out/Debug/sky_shell --package-root=./examples/hello_world/packages ./examples/hello_world/lib/main.dart

[5] Build and Run on Android

[5-1] set android path

  • source build/android/envsetup.sh

  • export PATH="$PATH":$MOJO_DIR/src/third_party/android_tools/sdk/platform-tools

[5-2]

  • ./tools/android/download_android_tools.py

  • sudo ./build/install-build-deps-android.sh

  • ./sky/tools/gn --android

  • ninja -C out/android_Debug

  • ./sky/tools/shelldb start out/android_Debug/ examples/hello_world/lib/main.dart

[Memo]

kill a process that use a particula port

  • sudo netstat -lpn |grep :80

  • sudo kill xxxx

kill adb server

  • adb kill-server