Log in or register to post comments

ndk-build problem

May 16, 2012 - 10:21am #1

Hello

I am trying to setup vuforia SDK.
Having been previously been in the process of developing a game for android on eclipse IDE, I only had to install/setup
Cygwin
Android NDK
and Vuforia

I have just install Cygwin and configure the variables and also Android NDK. So next following the instructions to test
...so in Cygwin i ran the test:

$ cd /cygdrive/c/Development/Android/android-ndk-r8/samples/san-angeles

$ ndk-build

But I kept encountering :
ndk-build command not found

pls how do I diagnose the problem and solve it? (well one more thing, - i am using vista. But thats bcus I cant help it at the moment, otherwie I would have switched windows7. I should still be able to make this work in vista wont I? pleaseeeeeeeeee I need to make this work Pleaseeeeee some expert out there)

Many thanks

ndk-build problem

July 13, 2012 - 9:22am #12

@aero_dyn have you resolved that issue?

@ryo are you also seeing the 'command not found' message - which NDK version are you using?

ndk-build problem

July 13, 2012 - 8:42am #11

Hello Ryo

You have the same error message?

ndk-build problem

July 12, 2012 - 10:43pm #10

same with me.. i follow the instruction n using it n have a problem with that..i'm using windows 7

Re: ndk-build problem

May 16, 2012 - 2:26pm #9

in cygwin I typed full path as suggested
$ /cygdrive/c/Development/Android/android-ndk-r8/ndk-build

Re: ndk-build problem

May 16, 2012 - 1:23pm #8

Sorry the slashes were typing errors i checked they were back slahes.

I set the variables in windows because the third paragraph under

Getting Started
Step 1.....

Android NDK says:

NDK requires the above directory to be added to the Windows path! To do this right-click on 'My Computer' on the desktop and select properties. On the 'Advanced' tabs select 'Environment Variables' and look for Variable 'Path' in the 'System variables' window. After pressing 'Edit', scroll to the end of 'Variable value:' and add the full path to the directory to the end of the path, separated via semicolon from the one before. In the above example, you would have to add:

Re: ndk-build problem

May 16, 2012 - 1:02pm #7

Check your path syntax to ensure that you are using back slashes - e.g. C:\Development\Android\android-ndk-r9\

Also are you adding these variables to your windows path, or a path variable in cygwin?

You need to set the Path environmental variable - see: http://www.computerhope.com/issues/ch000549.htm

Re: ndk-build problem

May 16, 2012 - 12:56pm #6

Hello aero_dyn,

I noticed you have the wrong slashes in the path. Please make sure you are adding to the windows path ;C:\Development\Android\android-ndk-r8\

You should not need to set any other variable in windows. I'm not sure what you are setting as QDevNet but you shouldn't need to do this.

If you cannot get your path variable set you can always try putting the entire path to ndk-build when running the command. For example in cygwin you can type:

/cygdrive/c/Development/Android/android-ndk-r8/ndk-build

Thank you,

-Peter

Re: ndk-build problem

May 16, 2012 - 12:12pm #5

I doubt the path is the prob , i xchecked, folder struture is

C;\ Development\Android\android-ndk-r8\samples\san-angeles
C;\ Development\Android\cygwin\
C;\ Development\Android\vuforia-sdk-android-1-5-9\

i added
variable path- ;C:\Development/Android/android-ndk-r8/

to the variable path

and in cygwin I typed:

$ cd /cygdrive/c/Development/Android/android-ndk-r8/samples/san-angeles

Advent@weakBaesEnd /cygdrive/c/Development/Android/android-ndk-r8/samples/san-angeles
$ ndk-build
-bash: ndk-build: command not found

Re: ndk-build problem

May 16, 2012 - 11:18am #4

Hello aero_dyn,

Please use the latest Android NDK available on the Android development website. You do not need to use an older version of NDK or the Android SDK with Vuforia.

Modify your path variable as required with the newer paths. So for example instead of adding to your path ;C:\Development\Android\android-ndk-r7\ , please add to your path ;C:\Development\Android\

Thank you,

-Peter

Re: ndk-build problem

May 16, 2012 - 10:55am #3

The problem was I couldn't find Android/android-ndk-r7. I did notice these, in fact thats not only one but also Cygwin version 1.7.9-1. I couldn't navigate to find the dropdowns that allows to select previous versions.

So that means that vuforia sdk is hardcoded for specific versions? But I cant find previous versions indicated in the instructions

Can u please post links to specific versions if u know where.. thanks

Re: ndk-build problem

May 16, 2012 - 10:39am #2

Hello aero_dyn,

Your path is not set up correctly. At ar.qualcomm.at in the Step 1: Setting up the development environment -> Android NDK it explains how to setup your environmental variable. Make sure the path is correct. You may have a newer NDK than what was available when the documentation was written so be sure your path matches the actual variable.

Thank you,

-Peter

Log in or register to post comments