Skip to content

Instantly share code, notes, and snippets.

@SunRain
Forked from adumont/archlinux_android
Created January 14, 2012 02:03
Show Gist options
  • Save SunRain/1609877 to your computer and use it in GitHub Desktop.
Save SunRain/1609877 to your computer and use it in GitHub Desktop.
ArchLinux for building Android
pacman -Sy
pacman -S --needed python2 perl git gnupg flex bison gperf zip unzip sdl wxgtk squashfs-tools ncurses libpng
zlib libusb libusb-compat readline inetutils
pacman -S --needed schedtool
pacman -S --needed openjdk6
## for x86_64?
pacman -S --needed gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-libusb lib32-libusb-compat lib32-readline lib32-glibc lib32-zlib
Install yaourt (& package-query):
download each PKGBUILD file and run:
makepkg -cfs PKGBUILD
pacman -U *.pkg.tar.xz
yaourt -S --needed android-sdk android-sdk-platform-tools android-udev esd-oss pngcrush repo tcp_wrappers termcap perl-switch
cd /usr/bin
[ -e python ] && mv python python.old
ln -s python2 python
In order to use adb, you have to be in the 'adbusers' group
For that, use: gpasswd -a USERNAME adbusers
Also see:
http://movilzona.es/wiki/index.php/DevMake#Por_pasos
http://rootzwiki.com/topic/9287-how-to-setup-android-build-environment-on-arch-linux-64bit/page__hl__%2Barch+%2Blinux__fromsearch__1
[Arch Linux] Android SDK, NDK, Eclipse, ADB Auto-Installer
http://forum.xda-developers.com/showthread.php?t=1283153
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment