Android NDK installation on Windows XP SP3

114 views
Skip to first unread message

srinindk39

unread,
Mar 15, 2010, 11:09:34 PM3/15/10
to android-ndk
Hi

I have installed the requisite tools and utilities regarding NDK for
Windows XP SP3

I had installed GNU Make 3.81 and added it to PATH environment
variable in WinXP

I had installed Android NDK r3 for Windows and added it to PATH
environment variable

I had installed Android SDK r05 for Windows and added it to PATH
environment variable

I had installed cygwin and added it to PATH environment variable

I had also installed the latest version of JDK and also added the path
to the PATH environment variable

When I run the bash cygwin shell and go to the path e:\Program Files
\android-ndk-r3-windows\android-ndk-r3\build and run the host-setup.sh
file i get the below error

Please run this script from the top level NDK Directory as in:
cd $NDKROOT
build/host-setup.sh

Can you help me regarding this

I am a newbie with regarding to NDK and solely I have never written
any programs in JAVA but want to learn exclusively Android NDK only
since it is C/C++ based.

Regards,
Srinivasan S Saripalli

Syl

unread,
Mar 16, 2010, 5:01:29 AM3/16/10
to android-ndk
Hi,

you must run the host-setup.sh script from the directory e:\Program
Files\android-ndk-r3-windows\android-ndk-r3 and not from e:\Program
Files> \android-ndk-r3-windows\android-ndk-r3\build !

So, in cygwin, do something like :

cd /cygdrive/e/Program\ Files/android-ndk-r3-windows/android-ndk-r3

build/host-setup.sh


Make sure you have installed GNU Make 3.81 with Cygwin. Before, my
version of make was older that the 3.81 and so the installation
crashed when I was running the script.
Execute the following command to see which GNU Make version is
installed :

make -v

srinindk39 a écrit :

srini 1971

unread,
Mar 16, 2010, 6:28:44 AM3/16/10
to andro...@googlegroups.com
Hi
 
I did the same thing for example in cygwin I did something like as mentioned below
 
$ build/host-setup.sh and I get the below error this time
 
Toolchain : checking for arm-eabi-4.2.1 prebuilt binaries
ERROR : Toolchain compiler not found
It seems that you do not have the correct arm-eabi-4.2.1 toolchain binaries.
This maybe the result of incorrect unzipping of the NDK archive
Please go to the official Android NDK Website and download the appropriate NDK package for ur platform
 
But I have to say that I have download Android NDK r3 for WinXP SP3 from the android website
 
and I have the arm prebuilt binaries at the below mentioned path which I have added tto the PATH environment variable.
E:\Program Files\android-ndk-r3-windows\android-ndk-r3\build\prebuilt\windows\arm-eabi-4.2.1\bin
 
So can you tell me what more do I need to do.
 
Regards,
Srinivasan

--
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.


mic _

unread,
Mar 16, 2010, 6:40:30 AM3/16/10
to andro...@googlegroups.com
What if you install it directly under C: (i.e. c:\android-ndk-r3\) ?
That's what I've got in XP SP3 and it's working for me.

/Michael

Marek Pola

unread,
Mar 16, 2010, 7:48:08 AM3/16/10
to android-ndk
Instead of:
E:\Program files\dir\subdir
use:
/cygdrive/e/program\ files/dir/subdir

in all instances in Cygwin.

Also, spaces are not allowed in paths. Consider putting the NDK
elsewhere than in "Program Files". You can use \ to prefix special
characters, but I'm not sure it works everywhere.

Regards
Marek


On Mar 16, 11:28 am, srini 1971 <srini.srin...@gmail.com> wrote:
> Hi
>
> I did the same thing for example in cygwin I did something like as mentioned
> below
>
> $ build/host-setup.sh and I get the below error this time
>
> Toolchain : checking for arm-eabi-4.2.1 prebuilt binaries
> ERROR : Toolchain compiler not found
> It seems that you do not have the correct arm-eabi-4.2.1 toolchain binaries.
> This maybe the result of incorrect unzipping of the NDK archive
> Please go to the official Android NDK Website and download the appropriate
> NDK package for ur platform
>
> But I have to say that I have download Android NDK r3 for WinXP SP3 from the
> android website
>
> and I have the arm prebuilt binaries at the below mentioned path which I
> have added tto the PATH environment variable.
> E:\Program
> Files\android-ndk-r3-windows\android-ndk-r3\build\prebuilt\windows\arm-eabi-4.2.1\bin
>
> So can you tell me what more do I need to do.
>
> Regards,
> Srinivasan
>

> > android-ndk...@googlegroups.com<android-ndk%2Bunsu...@googlegroups.com>

srini 1971

unread,
Mar 16, 2010, 9:10:09 AM3/16/10
to andro...@googlegroups.com
Yes it worked for me
 
I just cut the entire tree of ndk and sdk and gnu make and put it separately
 
and it worked
 
now for the next task.............

To unsubscribe from this group, send email to android-ndk...@googlegroups.com.

David Turner

unread,
Mar 16, 2010, 5:07:34 PM3/16/10
to andro...@googlegroups.com
You should not install the NDK under a path that has a space in it, this plays badly with GNU Make and other Cygwin utils.
Also, you need to install the cygwin version of GNU Make, not another one.

Hope this helps.
Reply all
Reply to author
Forward
0 new messages