Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ArchLinux for building Android
pacman -Sy
pacman -S --needed python2 openjdk6 perl git gnupg flex bison gperf zip unzip sdl wxgtk squashfs-tools ncurses libpng zlib libusb libusb-compat readline inetutils
pacman -S --needed gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-libusb lib32-libusb-compat lib32-readline lib32-glibc bash-completion lib32-zlib
Install yaourt (& package-query):
add to /etc/pacman.conf:
[archlinuxfr]
Server = http://repo.archlinux.fr/$arch
run:
pacman -Sy yaourt
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
Add to /etc/sysctl.conf
net.ipv4.tcp_window_scaling = 0
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
@gulafaran
Copy link

gulafaran commented Oct 16, 2012

this is a fine way of breaking everything, -Sy all the things! lol. and do not use archlinuxfr EVER.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment