I have spent a long while trying to get this thing to work, and I think my error is very trivial but I have been unable to fix it. Plus, I know there have been questions abo
If you use Windows 7, you can set it like this:
NDKROOT
Try the following steps:
Head to the project's properties. If you're using Windows, the shortcut is Alt + Enter
; or simply right-click the project name to find its properties.
Go to the C/C++ Build
section; under Builder Settings
tab in Build command:
text box you're likely to find something similar to that below, if it's empty then type in the similar text - namely: ${NDKROOT}/ndk-build.cmd
where NDKROOT
, as its name implies, refers to the path where your NDK root folder exists.
Now you must inform eclipse what NDKROOT
equates to; as in, where is the NDK root path. You can do this by heading to (in your project's properties) C/C++ Build
> Environment
> press Add…
Now add your environment variable named NDKROOT (the Name
) with the relevant path (Value
). Note that you're to repeat this per NDK project. You would get a window similar to that below.
Press OK
to the New variable input window and then OK
again to the properties window.