Please define the NDK_PROJECT_PATH variable to point to it
2014-11-21 11:36
681 查看
原文:http://blog.csdn.net/yuanjingjiang/article/details/34857623#comments
Please define the NDK_PROJECT_PATH variable to point to it
在用ndk-buld 编译c/c++工程的时候, 会遇到上面提示的错误原因是你的当前目录不是一个名为“jni”的目录,
所以NDK_PROJECT_PATH, APP_BUILD_SCRIPT, NDK_APPLICATION_MK 是一个空的值,
ndk-buld就没法只知道怎么编译而终止。 想要解决有两种办法:
a. 一个就是制定上面三个变量的值, 如:我要编译我当前目录的源文件, 当然包含Android.mk 和Application.mk 文件, 可以使用这样的命令编译:
ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk NDK_APPLICATION_MK=./Application.mk
b. 就是把这些文件放在一个jni目录下, 进入jni目录然后在编译。
Please define the NDK_PROJECT_PATH variable to point to it
在用ndk-buld 编译c/c++工程的时候, 会遇到上面提示的错误原因是你的当前目录不是一个名为“jni”的目录,
所以NDK_PROJECT_PATH, APP_BUILD_SCRIPT, NDK_APPLICATION_MK 是一个空的值,
ndk-buld就没法只知道怎么编译而终止。 想要解决有两种办法:
a. 一个就是制定上面三个变量的值, 如:我要编译我当前目录的源文件, 当然包含Android.mk 和Application.mk 文件, 可以使用这样的命令编译:
ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk NDK_APPLICATION_MK=./Application.mk
b. 就是把这些文件放在一个jni目录下, 进入jni目录然后在编译。
相关文章推荐
- android NDK如何解决Please define the NDK_PROJECT_PATH variable to point to it
- Please define the NDK_PROJECT_PATH variable to point to it
- 【转】Please define the NDK_PROJECT_PATH variable to point to it
- Please define the NDK_PROJECT_PATH variable to point to it
- [ndk]Android NDK: Your APP_BUILD_SCRIPT points to an unknown file/Please define the NDK_PROJECT_PATH
- 解决ndk编译Host 'awk' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !
- VS.NET 2003 Error - The project you are trying to open is a Web project. You need to open it by specifying its URL path.
- The JVM found at JAVA_HOME is damaged.Please reinstall or define EXE4J_JAVA_HOME to point to an installed 32-bit JDK or JRE
- [Cocos2d-x学习笔记]Android NDK: Host 'awk' tool is outdated. Please define NDK_HOST_AWK to point to Gawk or Nawk解决方案
- Project : error PRJ0050: Failed to register output. Please ensure you have the appropriate permissio
- SDK Platform Tools component is missing! Please use the SDK Manager to install it.
- 启动Dsedit报错:“Fail to initialize LIBTCL.DLL Please make sure the SYBASE environment variable is set co
- 错误解决:Unable to add module to the current project as it is not of packagi
- The project was not built since its build path is incomplete解决方法
- 问题:Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME does not point to the JDK
- [转]The project was not built since its build path
- Description Resource Path Location Type Project has no default.properties file! Edit the project properties to set one.
- sdk platform tools is missing please user the sdk manager to install it
- The project was not built since its build path is incomplete. Cannot find the class file for java.la
- The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build pat