当我尝试编译我的应用程序时,我看到......
/bin/sh: openssl/sha.h: No such file or directory
但在我的Android.mk中,我有......
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := iconv-prebuilt
LOCAL_SRC_FILES := extlib/$(TARGET_ARCH_ABI)/libiconv.so
LOCAL_EXPORT_C_INCLUDES := extlib/include
include $(PREBUILT_SHARED_LIBRARY)
LOCAL_MODULE := git
LOCAL_C_INCLUDES := $(LOCAL_PATH)/src $(LOCAL_PATH)/include
LOCAL_CFLAGS := -DNO_GETTEXT -DSHA1_HEADER=<openssl/sha.h>
LOCAL_SRC_FILES := \
$(subst $(LOCAL_PATH)/,, \
$(wildcard $(LOCAL_PATH)/src/*.c))
LOCAL_LDLIBS := -lm -llog -ldl
LOCAL_SHARED_LIBRARIES := iconv-prebuilt
include $(BUILD_SHARED_LIBRARY)
extlib / include / openssl目录的ls是......
aes.h conf.h e_os2.h krb5_asn.h opensslconf.h rc2.h ssl3.h x509_vfy.h
asn1.h conf_api.h ebcdic.h kssl.h opensslv.h rc4.h stack.h x509v3.h
asn1_mac.h crypto.h ec.h lhash.h ossl_typ.h ripemd.h symhacks.h
asn1t.h des.h ecdh.h md4.h pem.h rsa.h tls1.h
bio.h des_old.h ecdsa.h md5.h pem2.h safestack.h ts.h
blowfish.h dh.h engine.h modes.h pkcs12.h sha.h txt_db.h
bn.h dsa.h err.h obj_mac.h pkcs7.h ssl.h ui.h
buffer.h dso.h evp.h objects.h pqueue.h ssl2.h ui_compat.h
comp.h dtls1.h hmac.h ocsp.h rand.h ssl23.h x509.h
因此,您可以看到头文件存在,应该可以包含。我在这里做错了什么想法?我猜这是我的Android.mk中的一个问题