支付宝支付sdk接入报错 (openssl rsa.h file not found)

1、openssl rsa.h file not found

解决方案:

对“Header Search Paths”增加头文件路径:$(SRCROOT)/项目名称

添加了之后发现还是报错 openssl rsa.h file not found 

后来在一个帖子找到了原因
在官方的demo中,openssl这个文件放到了项目根目录下,所以“Header Search Paths”只需要设置$(SRCROOT)/项目名称 

而我的项目里,我把openssl文件夹放到了自己创建的alipay文件夹中

所以“Header Search Paths”中应该添加"$(SRCROOT)/项目名称/applipay/openssl"和"$(SRCROOT)/项目名称/applipay"

 

2、编译报错

 

 解决方案:缺少libcrypto.a和libssl.a

posted @ 2017-01-10 15:30  锦夏ing  阅读(1638)  评论(0编辑  收藏  举报