Installing Android NDK on 64bit Ubuntu

This is how I managed to install the NDK on two of my 64 bit ubuntu boxes:

  1. Install prerequisities first:
    sudo apt-get install ia32-libs
    sudo apt-get install gcc-multilib
  2. Download and extract the NDK where you want to have it, we’ll reference the folder as <ndk>.
  3. In <ndk>/build/ file at the beginning and replace source with .
  4. In <ndk>/build/ file, find and comment the following line by putting a # in front:
    [ "Windows_NT" == "$OS" ] && EXT=".exe"
  5. in <ndk>/build/core/ file, find the setup_toolchain() function. Inside this function, replace this line:
    with this one
    LDFLAGS="$LDFLAGS -m32 `gcc -print-libgcc-file-name`“

You should be able to go to ndk folder and run:

Leave a Comment