如何指定目录NDK_MODULE_PATH [英] How to specify directory for NDK_MODULE_PATH
问题描述
我有,去年几个小时这个简单的任务麻烦。
I am having a trouble with this simple task for last couple of hours.
我在我的Android项目的根NDK模块的目录,我已经按照我的Android.mk JNI文件夹
I have ndk-modules directory in root of my Android project and I have following in my Android.mk of jni folder
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
NDK_MODULE_PATH := $(LOCAL_PATH)/../ndk-modules
...
$(call import-module,mymodule)
当我建立了MK文件,我得到了
When I build the mk file, I got
Android NDK: /MyApp/jni/Android.mk: Cannot find module with tag 'mymodule' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
我在做什么错在这里?我怎样才能正确地指定的路径?
What am I doing wrong here? How can I specify the path correctly?
更新:
该规范是正确的。我曾在MyModule的目录中的一个问题。很抱歉的混乱。
The specification was right. I had a problem in mymodule directory. Sorry for the confusion.
推荐答案
NDK_MODULE_PATH必须在您的路径。我想在我的Android.mk文件中指定,所以我说这条线导入模块前行:
NDK_MODULE_PATH must be in your path. I wanted to specify it in my Android.mk file so I added this line before the import-module line:
$(call import-add-path,my_relative_path)
这篇关于如何指定目录NDK_MODULE_PATH的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!