aws-samples / amazon-kinesis-video-streams-producer-embedded-c

Light-wight Amazon Kinesis Video Streams Producer SDK For FreeRTOS/Embedded Linux
Apache License 2.0
31 stars 19 forks source link

kvs_with_webrtc compile error! #83

Open zhangshouyin opened 10 months ago

zhangshouyin commented 10 months ago

Describe the bug [ 95%] Built target kvsappcli Consolidate compiler generated dependencies of target kvs_with_webrtc [ 96%] Linking C executable ../../bin/kvs_with_webrtc /home/ubuntu/embedfix/amazon-kinesis-video-streams-producer-embedded-c/libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/webrtc/open-source/lib/libkvspicUtils.a(Time.c.o): In function generateTimestampStrInMilliseconds': /home/ubuntu/embedfix/amazon-kinesis-video-streams-producer-embedded-c/libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/webrtc/open-source/libkvsCommonLws/build/src/libkvsCommonLws-download/dependency/libkvspic/kvspic-src/src/utils/src/Time.c:48: undefined reference toclock_gettime' /home/ubuntu/embedfix/amazon-kinesis-video-streams-producer-embedded-c/libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/webrtc/open-source/libkvsCommonLws/build/src/libkvsCommonLws-download/dependency/libkvspic/kvspic-src/src/utils/src/Time.c:48: undefined reference to clock_gettime' /home/ubuntu/embedfix/amazon-kinesis-video-streams-producer-embedded-c/libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/webrtc/open-source/lib/libkvspicUtils.a(Time.c.o): In functiondefaultGetTime': /home/ubuntu/embedfix/amazon-kinesis-video-streams-producer-embedded-c/libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/webrtc/open-source/libkvsCommonLws/build/src/libkvsCommonLws-download/dependency/libkvspic/kvspic-src/src/utils/src/Time.c:109: undefined reference to clock_gettime' /home/ubuntu/embedfix/amazon-kinesis-video-streams-producer-embedded-c/libraries/amazon/amazon-kinesis-video-streams-webrtc-sdk-c/webrtc/open-source/libkvsCommonLws/build/src/libkvsCommonLws-download/dependency/libkvspic/kvspic-src/src/utils/src/Time.c:109: undefined reference toclock_gettime' collect2: error: ld returned 1 exit status make[2]: [samples/kvs-with-webrtc/CMakeFiles/kvs_with_webrtc.dir/build.make:174: bin/kvs_with_webrtc] Error 1 make[1]: [CMakeFiles/Makefile2:581: samples/kvs-with-webrtc/CMakeFiles/kvs_with_webrtc.dir/all] Error 2 make: *** [Makefile:136: all] Error 2

To Reproduce Steps to reproduce the behavior:

  1. Use branch of main code.
  2. Compile with " cmake .. -DCMAKE_C_COMPILER=mips-linux-gnu-gcc -DCMAKE_CXX_COMPILER=mips-linux-gnu-g++ -DBUILD_WEBRTC_SAMPLES=ON -DCMAKE_BUILD_TYPE=Debug -DBUILD_OPENSSL_PLATFORM=linux-generic32 -DBUILD_LIBSRTP_HOST_PLATFORM=x86_64-unknown-linux-gnu -DBUILD_LIBSRTP_DESTINATION_PLATFORM=mips-unknown-linux-gnu "

Screenshots attach below

Environments (please complete the following information):

WeChata91071bb615930efb6d9e6ae6f468a16