Joined
·
1,900 Posts
Originally written by user MikereDD, had to pull this from the old site.
Writing this to help anyone on Arch Linux setup their box to start building/compiling with Android.
First off a big thanks to xoomdev of T3hH4xx0r Team and all the dev's from t3hH4xx0r Team working on OMGB/OMFGB.
Why am I writing this?
I have been enjoying the OMFGB rom so much and wanted to start compiling it from source but ran into trouble and all read-me's I found were based off setting up for other distro's.
What is Arch Linux?
Arch Linux a lightweight and flexible Linux� distribution that tries to Keep It Simple, that only provides the core tools needed to get a user started.
It aims at helping the user to learn as much as possible.
Why not just use Ubuntu/Kubuntu?
1. Linux is all preference, I prefer Arch Linux over all distro's second choice is Slackware
2. Never was a fan of Gnome/KDE, I prefer Tiling Window managers like WMii
3. I like the do it yourself take on linux and core distro's.
I will be using the Arch Linux package manager Pacman and the Pacman wrapper for the Arch User Repo called Yaourt
First we need to install the ABS - Arch Build System
Use pacman to install these packages like this:
As root or as sudo
Now let's use pacman to install all the app's it can at this point.
Now we need to downgrade make and perl and re-install git dropping the dependency for perl 5.14 and just dep. for perl.
I've already picked thru Arch Linux repo reading the commits until I found the needed files.
Make 3.8.1 - http://dl.dropbox.co.../make-3.8.1.tar
Perl 5.10.1 - http://dl.dropbox.co...perl-5.10.1.tar
Git 1.7.6 - http://dl.dropbox.co...d/git-1.7.6.tar
We will now download, untar, build and install each of the three apps here.
Create a directory to work in.
We'll do Make first.
Build make
Install Make as root or sudo
Check to see if make 3.81 is installed
Should return - GNU Make 3.81
cd out of Make dir
Now grab git
Build Git
Install Git as root or sudo
Now grab Perl
Build Perl
Install Perl as root or sudo
Check to see if perl 5.10.1 installed
Should return - This is perl 5, version 10, subversion 1 (v5.10.1) built for x86_64-linux-thread-multi
We are now ready to grab Yaourt and the app it requires package-query-git
First grab package-query-git
Build package-query-git
Install package-query-git as root or sudo
cd back
Grab Yaourt[/U]
Build
Yaourt
Install Yaourt as root or sudo
Now let's use yaourt to install some apps.
If you have yet to install Android-SDK let's install it now.
We are almost done now... Time to Uncomment the Multi-Lib repo and install the last few apps with Pacman
Use your favorite text editor to remove # /etc/pacman.conf on Multi-LibAs root or sudo.
From:
To:
Ok you're ready to install the last few app's some multilib's
As root or sudo
Arch has python3 in main so you will either not install it or back it up.
No if you did not install python3 you do not need to make this change.
As root or sudo
Now we create a symlink to python2
As root or sudo
.... All Done!
You're now ready to follow either the Compile OMFGB Yourself Wiki
Or most Cyanogenmod7 compile from source wiki on your Arch Linux 64Bit System!
Have Fun.. If you think I missed something let me know!
...
All thanks go to xoomdev, I only took his advice and then went about it using the package manger(s) for Arch.
Hopefully it helps someone.
..
Writing this to help anyone on Arch Linux setup their box to start building/compiling with Android.
First off a big thanks to xoomdev of T3hH4xx0r Team and all the dev's from t3hH4xx0r Team working on OMGB/OMFGB.
Why am I writing this?
I have been enjoying the OMFGB rom so much and wanted to start compiling it from source but ran into trouble and all read-me's I found were based off setting up for other distro's.
What is Arch Linux?
Arch Linux a lightweight and flexible Linux� distribution that tries to Keep It Simple, that only provides the core tools needed to get a user started.
It aims at helping the user to learn as much as possible.
Why not just use Ubuntu/Kubuntu?
1. Linux is all preference, I prefer Arch Linux over all distro's second choice is Slackware
2. Never was a fan of Gnome/KDE, I prefer Tiling Window managers like WMii
3. I like the do it yourself take on linux and core distro's.
I will be using the Arch Linux package manager Pacman and the Pacman wrapper for the Arch User Repo called Yaourt
First we need to install the ABS - Arch Build System
Use pacman to install these packages like this:
As root or as sudo
Code:
$ pacman -Sy abs base-devel
Code:
$ pacman -S openjdk6 perl git gnupg flex bison gperf zip unzip sdl wxgtk squashfs-tools ncurses libpng zlib libusb libusb-compat readline
I've already picked thru Arch Linux repo reading the commits until I found the needed files.
Make 3.8.1 - http://dl.dropbox.co.../make-3.8.1.tar
Perl 5.10.1 - http://dl.dropbox.co...perl-5.10.1.tar
Git 1.7.6 - http://dl.dropbox.co...d/git-1.7.6.tar
We will now download, untar, build and install each of the three apps here.
Create a directory to work in.
Code:
mkdir -p ~/archbuilds
Code:
$ wget [URL]http://dl.dropbox.com/u/11676310/pkgbuild/make-3.8.1.tar[/URL] ; tar xvf [URL]http://dl.dropbox.com/u/11676310/pkgbuild/make-3.8.1.tar[/URL] ; cd<br />
<br />
[URL="http://dl.dropbox.com/u/11676310/pkgbuild/make-3.8.1.tar"]make-3.8.1/[/URL]
Code:
$ makepkg -cfs PKGBUILD
Code:
# pacman -U make-3.81-5-x86_64.pkg.tar.xz
Code:
$ make -v
cd out of Make dir
Now grab git
Code:
$ wget [URL]http://dl.dropbox.com/u/11676310/pkgbuild/git-1.7.6.tar[/URL] ; tar xvf [URL]http://dl.dropbox.com/u/11676310/pkgbuild/git-1.7.6.tar[/URL] ; cd git-1.7.6
Code:
$ makepkg -cfs PKGBUILD
Code:
# pacman -U git-1.7.6-1-x86_64.pkg.tar.xz
Code:
cd ..
Code:
$ wget [URL]http://dl.dropbox.com/u/11676310/pkgbuild/perl-5.10.1.tar[/URL] ; tar xvf [URL]http://dl.dropbox.com/u/11676310/pkgbuild/perl-5.10.1.tar[/URL] ; cd perl-5.10.1
Code:
$ makepkg -cfs PKGBUILD
Code:
# pacman -U perl-5.10.1-5-x86_64.pkg.tar.xz
Code:
$ perl -v
We are now ready to grab Yaourt and the app it requires package-query-git
First grab package-query-git
Code:
$ cd ~/archbuilds
Code:
$ wget [URL=https://aur.archlinux.org/packages/package-query-git/package-query-git.tar.gz]https://aur.archlinux.org/packages/package-query-git/package-query-git.tar.gz[/URL] ; tar xvf package-query-git.tar.gz ; cd package-query-git
Code:
$ makepkg -csf PKGBUILD
Code:
# pacman -U package-query-git-20110805-1-x86_64.pkg.tar.xz
Code:
cd ..
Code:
$ wget [URL=https://aur.archlinux.org/packages/yaourt-git/yaourt-git.tar.gz]https://aur.archlinux.org/packages/yaourt-git/yaourt-git.tar.gz[/URL] ; tar xvf yaourt-git.tar.gz ; cd yaourt-git
Yaourt
Code:
$ makepkg -cfs PKGBUILD
Code:
# pacman -U yaourt-git-20110805-1-any.pkg.tar.xz
Code:
$ yaourt -Sy esdl pngcrush schedtool repo
Code:
$ yaourt -Sy android-sdk android-sdk-platform-tools udev-android-rules
Use your favorite text editor to remove # /etc/pacman.conf on Multi-LibAs root or sudo.
Code:
# vim /etc/pacman.conf
Code:
# Multi Lib repo's x86 for x86_64<br />
#[multilib]<br />
#Include = /etc/pacman.d/mirrorlist
Code:
# Multi Lib repo's x86 for x86_64<br />
[multilib]<br />
Include = /etc/pacman.d/mirrorlist
As root or sudo
Code:
# pacman -Sy gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-libusb lib32-libusb-compat lib32-readline lib32-glibc lib32-zlib
No if you did not install python3 you do not need to make this change.
As root or sudo
Code:
# mv /usr/bin/python /usr/bin/python.bak
As root or sudo
Code:
ln -s /usr/bin/python2 /usr/bin/python
You're now ready to follow either the Compile OMFGB Yourself Wiki
Or most Cyanogenmod7 compile from source wiki on your Arch Linux 64Bit System!
Have Fun.. If you think I missed something let me know!
...
All thanks go to xoomdev, I only took his advice and then went about it using the package manger(s) for Arch.
Hopefully it helps someone.

..