Android NDK r7 インストール
1:Android SDKを最新のバージョンへ更新する。
Before you get started make sure that you have downloaded the latest Android SDK and upgraded your applications and environment as needed.
2:android-ndk-r7-windows.zipをダウンロードする。
- (Android NDKのページのページの先頭の方にある。)
3:ndkを解凍する。
- 解凍したフォルダのdocumentation.htmlを読む。
- 3.1:Installation Guide
- Cygwin 1.7以上が必要と書いてある。
- (MsysやCygwin1.5以下は非サポート)
- 3.2:CygwinのSetup.exeを落として実行する。
-
- ①SETUP.EXE実行
-
- ②”次へ”
-
- ③”次へ”(ぼくは、d:\cygwinに変更)
-
- ④”次へ”(ぼくは、d:\cygwin\LocalPackageに変更)
-
- ⑤jpのアドレスを選ぶ。”次へ”(ぼくは山形大を選択)
-
- ⑥警告を確認して”OK”。(ぼくは新規インストールなので特に関係ない)
-
- ⑦インストールするパッケージを選ぶ。gnu makeが必要。
-
-
- Searchの欄へ"make"と入力する。
- Develの+をクリックする。
- Gnu Makeがあるのでそれをインストールする。
- (Skipの部分をクリックするとインストールに変わる。)
- ”次へ”
-
-
- ⑧しばらく、ダウンロードが終わるのを待つ。
- ⑨ダウンロードが終わるとこの画面がでる。”完了”
-
- ⑩以上でCygwinのインストールは終わり。
D:\cygwin\home\ユーザ名\の下へAndroid NDKを解凍する。
(windowsのツールで解凍すれば良い。)
- 3.4 Cygwinのパスを通す。
# base-files version 4.0-6
# ~/.bash_profile: executed by bash(1) for login shells.# The latest version as installed by the Cygwin Setup program can
# always be found at /etc/defaults/etc/skel/.bash_profile# Modifying /etc/skel/.bash_profile directly will prevent
# setup from updating it.# The copy in your home directory (~/.bash_profile) is yours, please
# feel free to customise it to create a shell
# environment to your liking. If you feel a change
# would be benifitial to all, please feel free to send
# a patch to the cygwin mailing list.# User dependent .bash_profile file
# source the users bashrc if it exists
if [ -f "${HOME}/.bashrc" ] ; then
source "${HOME}/.bashrc"
fi# Set PATH so it includes user's private bin if it exists
if [ -d "${HOME}/bin" ] ; then ※左端の#を削除する。
PATH="${HOME}/bin:${PATH}" ※左端の#を削除する。
fi ※左端の#を削除する。
PATH="${HOME}/android-ndk-r7:${PATH}"※パスを追加する。
# Set MANPATH so it includes users' private man if it exists
# if [ -d "${HOME}/man" ]; then
# MANPATH="${HOME}/man:${MANPATH}"
# fi# Set INFOPATH so it includes users' private info if it exists
# if [ -d "${HOME}/info" ]; then
# INFOPATH="${HOME}/info:${INFOPATH}"
# fi