aliyun / iotkit-embedded

高速镜像: https://code.aliyun.com/linkkit/c-sdk
Apache License 2.0
506 stars 256 forks source link

移植编译到64位Ubuntu18.04出错 #122

Open 3shao opened 5 years ago

3shao commented 5 years ago

下载版本为V2.3.0

操作流程是https://help.aliyun.com/document_detail/97564.html?spm=a2c4g.11186623.6.562.5e9f7f6389K4pQ

操作到make生成 libiot_sdk.so 时报错:

[ 85%] Linking C executable ../out/linkkit-example-sched
../lib/libiot_sdk.so: undefined reference to `awss_get_cipher_reply'
../lib/libiot_sdk.so: undefined reference to `awss_enrollee_checkin'
../lib/libiot_sdk.so: undefined reference to `awss_report_enrollee_reply'
collect2: error: ld returned 1 exit status
examples/CMakeFiles/linkkit-example-sched.dir/build.make:149: recipe for target 'out/linkkit-example-sched' failed
make[2]: *** [out/linkkit-example-sched] Error 1
CMakeFiles/Makefile2:866: recipe for target 'examples/CMakeFiles/linkkit-example-sched.dir/all' failed
make[1]: *** [examples/CMakeFiles/linkkit-example-sched.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

请各路大神帮忙指点下,谢谢!

Bloodance commented 5 years ago

make.settings里改FEATURE_DEV_BIND_ENABLED=y