- 31st May 2011 at 11:04 pm #64367
This is regarding gnu toolchain required for cross compiling mips android OS for MIPS32r2 target on a x86_64 based host PC running Ubuntu 11.04 64 Bit edition.
The prebuilt gnu toolchain included in mips android OS gingerbread-r1 has been compiled on a 32 bit host machine . The compilation is giving error when compiling MIPS Android with this toolchain. Can anyone suggest the right toolchain for cross compiling this mips android OS on an x86_64 bit machine with Ubuntu 11.04 64 bit OS.
git://github.com/MIPS/manifests.git -b mips-gingerbread-r1
$ uname -a
Linux 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
$ cd ./mipsandroid/prebuilt/linux-x86/toolchain/mips-4.4.3/bin
$ file mips-linux-gnu-gcc
mips-linux-gnu-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped
Deepak Gaur3rd June 2011 at 10:03 am #64368
On a 64 bit system, you need to setup a 32 bit environment and build android. Have you installed all the below libraries?git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev
lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libgl1-mesa-dev
For compiling gingerbread, you further need to installsun-java6-jdk and not sun-java5-jdk.
What exactly is the compilation error you are facing?
make showcommands would give a detailed error.
Forums are currently locked.