aliyun / iotkit-embedded

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

cmake 编译报错 #132

Closed LeeSSXX closed 5 years ago

LeeSSXX commented 5 years ago
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/develCode/agent-proxy/third_party/iotkit-embedded/oooo
[ 19%] Built target iot_tls
[ 28%] Built target iot_utils
[ 29%] Built target iot_log
[ 33%] Built target iot_system
[ 38%] Built target sdk_impl
[ 42%] Built target iot_mqtt
[ 44%] Built target iot_ota
[ 45%] Built target iot_cm
[ 55%] Built target iot_dm
[ 55%] Built target iot_reset
[ 61%] Built target iot_coap_local
[ 70%] Built target iot_awss
[ 77%] Built target iot_bind
[ 84%] Built target iot_hal
[ 85%] Built target iot_sdk
Scanning dependencies of target linkkit-example-countdown
[ 85%] Building C object examples/CMakeFiles/linkkit-example-countdown.dir/app_entry.c.o
[ 86%] Building C object examples/CMakeFiles/linkkit-example-countdown.dir/cJSON.c.o
[ 86%] Building C object examples/CMakeFiles/linkkit-example-countdown.dir/linkkit/linkkit_example_cntdown.c.o
[ 87%] Linking C executable ../out/linkkit-example-countdown
../out/libiot_sdk.so: undefined reference to `awss_get_cipher_reply'
../out/libiot_sdk.so: undefined reference to `awss_enrollee_checkin'
../out/libiot_sdk.so: undefined reference to `awss_report_enrollee_reply'
collect2: error: ld returned 1 exit status
examples/CMakeFiles/linkkit-example-countdown.dir/build.make:149: recipe for target 'out/linkkit-example-countdown' failed
make[2]: *** [out/linkkit-example-countdown] Error 1
CMakeFiles/Makefile2:866: recipe for target 'examples/CMakeFiles/linkkit-example-countdown.dir/all' failed
make[1]: *** [examples/CMakeFiles/linkkit-example-countdown.dir/all] Error 2
edwardyangx commented 5 years ago

可以在顶级的CMakeLists.txt中去掉 AWSS 相关的功能开关, 跳过这部分编译