Re: Compiling arm-linux-androideabi-4.4.3 From Source

854 views
Skip to first unread message

Jonathan Matthew Beck

unread,
Feb 26, 2014, 4:59:40 PM2/26/14
to andro...@googlegroups.com
I see this is an old post, but I am having the same error today.

I am using Android Eclipse ADT on Windows 8.1 I have installed both Cygwin and MinGW. I have installed the SDK, NDK and Cocos2d-x library.

My question is that my Cocos2d-x project is expecting this toolchain library in the NDK:

ndk\toolchains\arm-linux-androideabi-4.4.3\prebuilt\darwin-x86\lib\gcc\arm-linux-androideabi\4.4.3\include

I browse to the ndk\toolchains folder and I see several other versions:

arm-linux-androideabi-4.6
arm-linux-androideabi-4.8
arm-linux-androideabi-clang3.3

And a few other versions, but not the 4.4.3 version.

My question is then, should I

1) With Cygwin or MinGW compile "arm-linux-androideabi-4.4.3" and how to do this.  Please be precise in your explanation.

  • or -

2) With some setting in ADT should I change the version to the newest one "arm-linux-androideabi-4.8". Please direct me to this setting if this is the correct choice.

Thanks in advance for your help!

Akshat Saha

unread,
Nov 14, 2011, 8:32:36 AM11/14/11
to andro...@googlegroups.com
Hi,

I am trying to compile arm-linux-androideabi-4.4.3 toolchain from android source.
I compiled ndk for the same purpose form source using :
$ make ndk

But the mentioned toolchain is not built. Can anyone help or guide me, on how to proceed.


Thanks in Advance
--
Akshat 


Akshat Saha

unread,
Nov 15, 2011, 1:36:59 AM11/15/11
to andro...@googlegroups.com

David Turner

unread,
Nov 15, 2011, 10:37:35 AM11/15/11
to andro...@googlegroups.com
On Mon, Nov 14, 2011 at 2:32 PM, Akshat Saha <akshat....@gmail.com> wrote:
Hi,

I am trying to compile arm-linux-androideabi-4.4.3 toolchain from android source.
I compiled ndk for the same purpose form source using :
$ make ndk


this will not work.
 
But the mentioned toolchain is not built. Can anyone help or guide me, on how to proceed.


Read docs/DEVELOPMENT.html and build/tools/DEV-SCRIPTS-USAGE.TXT, in a nutshell:

build/tools/download-toolchain-sources.sh /tmp/ndk-$USER/src
build/tools/build-gcc.sh /tmp/ndk-$USER/src $(pwd) arm-linux-androideabi-4.4.3

should be enough to rebuild the toolchain for your host platform (must be Linux or OS X). For the Windows binaries, you must be on Linux and use the --mingw option when calling build-gcc.sh (also have the mingw32 cross-toolchain installed).

Hope this helps
 

Thanks in Advance
--
Akshat 


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

Manu

unread,
Nov 15, 2011, 12:23:24 PM11/15/11
to andro...@googlegroups.com
For the Windows binaries, you must be on Linux and use the --mingw option when calling build-gcc.sh (also have the mingw32 cross-toolchain installed).

>_<
 Why does google hate windows? :(

David Turner

unread,
Nov 16, 2011, 11:46:36 AM11/16/11
to andro...@googlegroups.com
I don't hate Windows, I hate Cygwin. And it took about 4 hours to rebuild the toolchain under Cygwin, it takes less than 11 minutes on my Linux machine. 

mingw android

unread,
Nov 16, 2011, 11:48:09 AM11/16/11
to andro...@googlegroups.com

GCC cross compilers don't build correctly on Windows out of the box and the patches to make it do so are probably a bit too intrusive for the FSF's liking. I've made patches for this if you're interested, though it's not for the faint of heart...

You need MinGW, and to make a change to one of it's headers, and a few other tools too. But if you really want to go there then I can help you.

mingw android

unread,
Nov 16, 2011, 11:49:04 AM11/16/11
to andro...@googlegroups.com

You must have an absolute beast of a linux machine David!

Akshat Saha

unread,
Nov 22, 2011, 6:46:45 AM11/22/11
to andro...@googlegroups.com
Thanks David,


I am getting the following error, while executing :
COMMAND:
$ build/tools/download-toolchain-sources.sh ${DIR}

ERROR LOG:
Using git clone prefix: git://android.git.kernel.org/toolchain
downloading sources for toolchain/binutils
ERROR: Could not clone git://android.git.kernel.org/toolchain/binutils.git ?
Akshat 


Akshat Saha

unread,
Nov 22, 2011, 6:48:07 AM11/22/11
to andro...@googlegroups.com
I am using 64-bit Ubuntu 10.10 based host machine.
--
Akshat 


David Turner

unread,
Nov 22, 2011, 11:26:22 AM11/22/11
to andro...@googlegroups.com
You should use the version of the script that comes with NDK r7, it has been updated to talk to the newest source servers.
Otherwise, use --git-base=https://android.googlesource.com
Reply all
Reply to author
Forward
0 new messages