From cb26162b40e7084973c651743b36d31c4659517f Mon Sep 17 00:00:00 2001 From: lion187 Date: Thu, 3 Jan 2019 11:09:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E6=96=87=E4=BB=B6=20Software?= =?UTF-8?q?/Program/Environment/Android=5F=E5=BC=80=E5=8F=91=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E6=90=AD=E5=BB=BA-=E5=9F=BA=E4=BA=8E=5FFedora28.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Android_开发环境搭建-基于_Fedora28.md | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Software/Program/Environment/Android_开发环境搭建-基于_Fedora28.md diff --git a/Software/Program/Environment/Android_开发环境搭建-基于_Fedora28.md b/Software/Program/Environment/Android_开发环境搭建-基于_Fedora28.md new file mode 100644 index 0000000..8d97d98 --- /dev/null +++ b/Software/Program/Environment/Android_开发环境搭建-基于_Fedora28.md @@ -0,0 +1,52 @@ +# Android 开发环境搭建-基于 Fedora28 + +## REPO + +通过国内镜像下载和安装 Repo + + mkdir ~/bin/ + cd ~/bin + git clone http://mirrors.ustc.edu.cn/aosp/git-repo.git + +将 Repo 加入环境变量中 + + gedit ~/bashrc + +最文件后面新曾: + + export PATH=~/bin/git-repo:$PATH + +保存退出。 + +## JAVA + + sudo dnf install java-1.8.0-openjdk java-1.8.0-openjdk-devel + +## GCC + + sudo dnf install autoconf make gcc gcc-c++ glibc.i686 glibc-devel.i686 glibc-static libstdc++.i686 libstdc++-devel.i686 + +## DEV + + sudo dnf install zlib-devel.i686 openssl-devel expat-devel gettext-devel libX11-devel.i686 ncurses-devel.i686 + +## TOOLS + + sudo dnf install m4 perl cpio ncurses-libs.i686 gperf flex bison patch byacc + sudo dnf install android-tools + +## LIBNCURESS 和 LIBTINFO + + sudo ln -s libncurses.so.6.1 /usr/lib64/libncurses.so.5 + +否则找不到 libncurses.so.5 + + sudo ln -s libtinfo.so.6.1 /usr/lib64/libncurses.so.5 + +否则找不到 libtinfo.so.5 + +## EXPORT + +编译前先去除所有本地化的设置,让命令能正确执行。在编译脚本中(或直接在编译终端中)增加: + + export LC_ALL=C