本文介绍了什么是Android NDK的输入模块的简单工作的例子吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法找到了Android NDK的。下面Android.mk文件似乎正确的,和内模块建立与没有错误执行。然而,建立外部模块失败,出现以下错误信息:

The inner, contained Android.mk file:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := inner
LOCAL_MODULE_FILENAME := libinner
LOCAL_SRC_FILES := inner-module.c

include $(BUILD_SHARED_LIBRARY)

The outer, containing Android.mk file:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := outer

$(call import-module,inner)

LOCAL_SHARED_LIBRARIES += inner

include $(BUILD_SHARED_LIBRARY)
解决方案

Try placing the call to import-module at the end of your outer file. It is not a must to place it before referencing 'inner', and the NDK documentation actually advice you to place it at the end.

这篇关于什么是Android NDK的输入模块的简单工作的例子吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-18 14:38