5

I am struggling to install the Android NDK on windows for a few day's , can someone explain the easy way with image tutorial and explanations how to install it?

How i would be able to use the C/C++ in my Android applications???

PS: I do not know how to use Linux / Unix , so please do not refer me Linux implementations, I have read all the tutorials in

Android NDK and another one and another one....

Thanks in advance... any help will be appreciated.

hackp0int
  • 4,052
  • 8
  • 59
  • 95
  • Its given in the link that you specified. You just have to unzip into a folder and you will be able to work with NDK. – uday Feb 12 '12 at 08:43
  • Without any additional install that i have to do? – hackp0int Feb 12 '12 at 08:45
  • Yeah. i mean if you want emulator & stuff. you have to install Android SDK too. I will be pretty simple I see you are just worried. – uday Feb 12 '12 at 08:46
  • @Dave thanks i will try it, but how do build the project with native code implemented into java code? – hackp0int Feb 12 '12 at 08:53
  • Try to build a project from sample directory. – Shaiful Feb 12 '12 at 08:54
  • There's nothing easy about NDK, you should read the documentation carefully. I don't know how would you be able to program in C++ for Android not knowing anything about Unix/Linux. Take it easy and go step by step. – AlfredoVR Feb 12 '12 at 08:56
  • If you are in windows 7. Go to project directory -> Hold shift and right click -> Open Command prompt here. Then just execute `ndk-build`. if the ndk path is not in your environment variable, then you have to write the full path for `ndk-build`. – Shaiful Feb 12 '12 at 08:59
  • @IamStalker, just read the SDK page they gave a sample code and first try to make your feet wet. I am not sure about building C or C++ in Android though. – uday Feb 12 '12 at 09:01

2 Answers2

2

You could refer to this link. You need cygwin to start doing C/C++ development on window.

In my opinion, I am afraid there is no easy way going Android NDK on window. My experience with Android NDK on window was terrible. Thus I move to Ubuntu at the end.

PH7
  • 3,926
  • 3
  • 24
  • 29
1

If you really want to avoid all Linux and Linux-like (e.g. Cygwin & friends), take a look at vs-android

NuSkooler
  • 5,391
  • 1
  • 34
  • 58
  • Currently doing 99% of my Android development in Linux/Eclipse. The most I have done with vs-android is "take it for a spin". – NuSkooler Feb 14 '12 at 17:34
  • i haven't been successful with the installation of this component, it's give's me strange error, like PATH variables aren't okey, even after i have done what they requested on the installation manual. Might you suggest me what should i do with this? – hackp0int Feb 15 '12 at 05:28