NDK-Build 仅生成 Armv5,因此
当谈到 android NDK 时,我是一个相当新手,所以这是我的问题。
每当我构建本机代码时,我只得到arm v5代码,而不是v7,这确实是我的问题。我的 Android.mk 文件如下所示:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
APP_ABI := armeabi armeabi-v7a
LOCAL_MODULE := SignalProcessing
LOCAL_SRC_FILES := fir.c fourier.c fastmath.c
include $(BUILD_SHARED_LIBRARY)
如您所见,我在那里有 3 个本机 c 文件,当我运行 ndk-build 命令时,只有 1 个文件出现在:libs/armeabi/libSignalProccsing.so。这只是Armv5文件,Armv7文件在哪里?
我在谷歌上搜索了这件事,但找不到任何相关信息。我能找到的唯一信息是调整 APP_ABI 值,但我尝试了 10000 次。我什至填写了无意义的值,但我没有收到错误,请帮忙!
问候, 马丁
I'm a pretty newby when it comes to the android NDK, so here is my problem.
Whenever I build my native code, i only get arm v5 code, not v7, thats really my problem. My Android.mk file looks like this:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
APP_ABI := armeabi armeabi-v7a
LOCAL_MODULE := SignalProcessing
LOCAL_SRC_FILES := fir.c fourier.c fastmath.c
include $(BUILD_SHARED_LIBRARY)
As you can see, i have 3 native c files in there, when ever i run the ndk-build command, only 1 file appears in: libs/armeabi/libSignalProccsing.so. This is just the Armv5 file, where is the Armv7 file?
I've googled my ass off on this matter and can't find anything about it. The only info i can find is to ajust APP_ABI values, but ive tried that 10000 times. Ive even filled in nonsense values and i dont get an error on that, please help!
Regards,
Maarten
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了答案。我需要将该行
放在 Application.mk 中而不是 Android.mk 中
I found my answer. I need to put the line
In Application.mk NOT in Android.mk