开发者社区> 问答> 正文

华东2 C-SDK openssl编译不过



把配置改成如下设置:
PLATFORM_SSL              = openssl
然后编译,结果通过不了。
错误如下:
network/linuxsock/linuxsock.c:128:14: warning: variable 'err_code' set but not used [-Wunused-but-set-variable]      int ret, err_code;               ^~~~~~~~ gcc -Wall -g -I./ -I./os/ -I./network/ -I./ssl/  -DALIOT_DEBUG -c ssl/openssl/openssl.c -o ssl/openssl/openssl.o ssl/openssl/openssl.c:1:31: fatal error: aliot_network_ssl.h: No such file or directory #include "aliot_network_ssl.h"                                ^ compilation terminated. makefile:66: recipe for target 'ssl/openssl/openssl.o' failed make[1]: *** [ssl/openssl/openssl.o] Error 1 make[1]: Leaving directory '/home/huangcm/work/aliyun/aliot_sdk_v1.0.1_release/src/platform' makefile:28: recipe for target 'libplatform' failed make: *** [libplatform] Error 2

展开
收起
flycat0101 2017-08-10 15:55:35 2141 0
1 条回答
写回答
取消 提交回答
  • Re华东2 C-SDK openssl编译不过
    make[1]: Entering directory '/home/huangcm/work/aliyun/aliot_sdk_v1.0.1_release/src/platform'
    platform_src_files = ./os/linux/linux.c ./network/linuxsock/linuxsock.c ./ssl/openssl/openssl.c
    gcc -Wall -g -I./ -I./os/ -I./network/ -I./ssl/  -DALIOT_DEBUG -c ssl/openssl/openssl.c -o ssl/openssl/openssl.o
    ssl/openssl/openssl.c:1:31: fatal error: aliot_network_ssl.h: No such file or directory
    #include "aliot_network_ssl.h"
                                   ^
    compilation terminated.
    makefile:66: recipe for target 'ssl/openssl/openssl.o' failed
    make[1]: *** [ssl/openssl/openssl.o] Error 1
    make[1]: Leaving directory '/home/huangcm/work/aliyun/aliot_sdk_v1.0.1_release/src/platform'
    makefile:28: recipe for target 'libplatform' failed
    make: *** [libplatform] Error 2
    2017-08-10 15:58:21
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
从 SDK 到编解码:视频直播架构解析 立即下载
跨平台的云服务SDK需要什么 立即下载
一个跨平台的云服务SDK需要什么 立即下载