- 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; underBuilder Settings
tab inBuild 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
whereNDKROOT
, 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
> pressAdd…
-
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 thenOK
again to the properties window.
NDK 错误:Unable to launch cygpath. Is Cygwin on the path
最新推荐文章于 2023-07-26 21:27:16 发布