1

I was just suggested to port some signal processing code to use the Android NDK to speed up the process, but I'm wondering 1. where to install it to and 2. what tool-chain to use

I'd prefer not downloading the 3.5GB Mac Developer Tools if possible. I don't have access to an install cd that has it. Want to try and get this done asap. Does anyone know a way to get NDK development running quickly on OSX(snow leopard)?

wajiw
  • 12,239
  • 17
  • 54
  • 73

3 Answers3

3

A version of make is included with the Android NDK. Simply add {NDK install dir}/prebuilt/darwin-x86/bin to your PATH and you'll be able to build with the NDK.

Mridang Agarwalla
  • 43,201
  • 71
  • 221
  • 382
Bellinghammer
  • 185
  • 3
  • 9
1

Unzip the NDK package for Mac OS X anywhere, then add it to your path. That's all you need to build code with the NDK. The NDK includes its own GCC-based toolchain, so you don't even need to have Xcode installed.

Go to the samples in the NDK and type ndk-build in the console to build them.

Julio Gorgé
  • 10,056
  • 2
  • 45
  • 60
  • I get an error when I do that: ERROR: Cannot find 'make' program. Please install Cygwin make package or define the GNUMAKE variable to point to it. – wajiw Dec 15 '10 at 20:55
  • It doesn't have a make. It expects to use the one in the developer package. If your development platform is a Mac, then you ought to use the tools Apple provides. It will make your life a lot easier, even if you prefer another IDE to Xcode. – Gamma Draconis Dec 21 '10 at 18:43
1

If you install Xcode, that will install Make.

Ravi
  • 3,718
  • 7
  • 39
  • 57