-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module with tag 'cpufeatures' in import path #33
Comments
I don't see any difference in behavior between ABIs. My Android.mk is just: LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := bar
LOCAL_SRC_FILES := bar.cpp
LOCAL_STATIC_LIBRARIES := libcpufeatures
include $(BUILD_SHARED_LIBRARY)
$(call import-module,cpufeatures) I'll leave this open to give you a chance to respond. If you have an example failing case, I'll take a look. |
You are right, this has nothing to do with ABIs. Here's my setup:
However, when I use
(which in the current setup I quite don't get why it looks for So in the end, do you know when the contract of |
Sorry, this is the part I was actually responding to.
https://android.googlesource.com/platform/ndk/+/master/sources/cpufeatures/README.TXT I suppose the wording there might actually mean that it was specifically the header that was deprecated and not the path itself (I had read it after the note in the Android.mk, so I thought it meant that path was deprecated as well). With this already having shipped, and no plan for another hotfix, putting those files back wouldn't be in a stable release for another few months. I'm not sure there's any value in doing it if the fix is just to change |
I have a project that has been working from Android NDK
r4
.The project used to import the
cpufeatures
module. As part of opening this issue, I discovered documentation has likely changed over time and nowadays tells users to importandroid/cpufeatures
by appending$(call import-module,android/cpufeatures)
toAndroid.mk
.Anyways, when transitioning to NDK
r11
orr11b
and when doing it the old (likely erroneous) way and calling$(call import-module,cpufeatures)
whileAPP_ABI
being set toarmeabi-v7a
, I'm getting the following error:However, everything goes fine when compiling with
APP_ABI=armeabi-v7a-hard
.In my case, the resolution is to use
$(call import-module,android/cpufeatures)
instead of$(call import-module,cpufeatures)
. However, the observed difference betweenAPP_ABI=armeabi-v7a
andAPP_ABI=armeabi-v7a-hard
makes me believe there's something to look intondk-build
internals in order to figure out why behavior is different.The text was updated successfully, but these errors were encountered: