Android ndk 错误:使用openssl库为应用程序提供NDK生成时未定义引用

Android ndk 错误:使用openssl库为应用程序提供NDK生成时未定义引用,android-ndk,openssl,fips,ndk-build,Android Ndk,Openssl,Fips,Ndk Build,我遵循OpenSSL wiki构建了FIPS对象模块。在为ARM和x86体系结构创建了libcrypto.a之后,我将libcrypto.a包含在项目的jni/include文件夹中,然后执行NDK构建 我每次都会得到下面的错误。无法解决问题。谁能告诉我哪里出了问题 5.45/OpenSSL/jni/include/armeabi/libcrypto.a(fipscanister.o):fips_canister.c:function fips_openssl_cpuid_setup: erro

我遵循OpenSSL wiki构建了FIPS对象模块。在为ARM和x86体系结构创建了
libcrypto.a
之后,我将
libcrypto.a
包含在项目的jni/include文件夹中,然后执行NDK构建

我每次都会得到下面的错误。无法解决问题。谁能告诉我哪里出了问题

5.45/OpenSSL/jni/include/armeabi/libcrypto.a(fipscanister.o):fips_canister.c:function fips_openssl_cpuid_setup: error: undefined reference to 'sigfillset'
5.45/OpenSSL/jni/include/armeabi/libcrypto.a(fipscanister.o):fips_canister.c:function fips_openssl_cpuid_setup: error: undefined reference to 'sigdelset'
5.45/OpenSSL/jni/include/armeabi/libcrypto.a(fipscanister.o):fips_canister.c:function fips_openssl_cpuid_setup: error: undefined reference to 'sigdelset'
5.45/OpenSSL/jni/include/armeabi/libcrypto.a(fipscanister.o):fips_canister.c:function fips_openssl_cpuid_setup: error: undefined reference to 'sigdelset'
5.45/OpenSSL/jni/include/armeabi/libcrypto.a(fipscanister.o):fips_canister.c:function fips_openssl_cpuid_setup: error: undefined reference to 'sigdelset'
5.45/OpenSSL/jni/include/armeabi/libcrypto.a(ui_openssl.o):ui_openssl.c:function read_string_inner: error: undefined reference to 'signal'
5.45/OpenSSL/jni/include/armeabi/libcrypto.a(ui_openssl.o):ui_openssl.c:function read_string_inner: error: undefined reference to 'tcsetattr'
5.45/OpenSSL/jni/include/armeabi/libcrypto.a(ui_openssl.o):ui_openssl.c:function read_string_inner: error: undefined reference to 'tcsetattr'
5.45/OpenSSL/jni/include/armeabi/libcrypto.a(ui_openssl.o):ui_openssl.c:function open_console: error: undefined reference to 'tcgetattr'
collect2: error: ld returned 1 exit status
make: *** [5.45/OpenSSL/obj/local/armeabi/libmaascrypto.so] Error 1
这是我的NDK_应用程序/jni文件夹中的Android.mk

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE    := crypto
LOCAL_SRC_FILES := include/$(TARGET_ARCH_ABI)/libcrypto.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE    := XYZcrypto
LOCAL_SRC_FILES := XYZcbcEncryption.cpp XYZEcbEncryption.cpp XYZSHA256.c
LOCAL_SHARED_LIBRARIES := crypto
include $(BUILD_SHARED_LIBRARY) 

您在设备上运行的安卓操作系统的版本是什么?您构建的API级别是什么?我构建的API级别是23。我还没有把它推到我的设备上。当使用命令“$ANDROID\u NDK\u ROOT/NDK build”给出NDK build时,我遇到了这个错误。看起来您缺少了一些库。添加你的
Android.mk
,这样我们就可以看到除了
libcrypto.a
,你还链接了哪些库。我已经用我的Android.mk更新了我的帖子。这个@Sanjib有什么好运气吗?