awslabs / amazon-kinesis-video-streams-producer-sdk-cpp

Amazon Kinesis Video Streams Producer SDK for C++ is for developers to install and customize for their connected camera and other devices to securely stream video, audio, and time-encoded data to Kinesis Video Streams.
Apache License 2.0
377 stars 334 forks source link

need help for compiling to MIPS #671

Closed waikup83 closed 3 years ago

waikup83 commented 3 years ago

I would like to integrate it in a camera witt c++ ou c to stream video to aws kinesis with a mips toolchain but nothing works

disa6302 commented 3 years ago

@waikup83 ,

Nothing works is not descriptive enough. Please add details - what does not work and what kind of debugging have you tried.

waikup83 commented 3 years ago

im using a toolchain

SET(CMAKE_CXX_STANDARD 14)

file name: mips.toolchain.cmake

SET(CMAKE_SYSTEM_NAME Linux)

specify the cross compiler

SET(CMAKE_C_COMPILER /usr/bin/mips-linux-gnu-gcc) SET(CMAKE_CXX_COMPILER /usr/bin/mips-linux-gnu-g++)

where is the target environment

SET(CMAKE_FIND_ROOT_PATH /home/Projet/aws/cross_output)

search for programs in the build host directories

SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)

for libraries and headers in the target directories

SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

i cmake it with cmake ../ -DCMAKE_TOOLCHAIN_FILE="/home/Projet/aws/mips.toolchain.cmake" -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=$CROSS_INSTALL_PREFIX -DCMAKE_PREFIX_PATH=$CROSS_INSTALL_PREFIX -DAUTORUN_UNIT_TESTS=OFF -DBUILD_DEPENDENCIES=OFF

when i make it by now im at this point image

hassanctech commented 3 years ago

As part of the dependencies pulled the Producer C SDK is pulled down and built (which depends on kvspic), in our Producer C repo we actually have Travis CI which builds an ARM build (cross-compile), Can you please try to build the Producer C SDK using the example here:

https://github.com/awslabs/amazon-kinesis-video-streams-producer-c/blob/master/.travis.yml#L116

Substitute for your MIPS compiler but follow the steps there and see if you can get that to work. Once that's working then use that same setup to build the Producer CPP SDK. Let me know if you are still stuck.

waikup83 commented 3 years ago

thanks for the respond I'm retring the kinesis c producer right now the c producer have this error image

with this cmake command => cmake ../ -DBUILD_ONLY="s3;iam;sts" -DCMAKE_TOOLCHAIN_FILE="/home/Projet/aws/mips.toolchain.cmake" -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=$CROSS_INSTALL_PREFIX -DCMAKE_PREFIX_PATH=$CROSS_INSTALL_PREFIX -DAUTORUN_UNIT_TESTS=OFF -DBUILD_OPENSSL_PLATFORM=linux-generic32

hassanctech commented 3 years ago

It looks like you were previously trying to build the aws sdk. For Producer C SDK is completely indepdent from that, so you do not need this: -DBUILD_ONLY="s3;iam;sts"

Question, are you using UCLIBC ?

If so see here:

https://github.com/awslabs/amazon-kinesis-video-streams-producer-c/blob/master/CMakeLists.txt#L7

You will need to pass -DADD_MUCLIBC=ON to the cmake

waikup83 commented 3 years ago

i remove the -DBUILD_ONLY... and i added -DADD_MUCLIBC=ON because yes im thinking the camera used the uclib but i get the same error ...

hassanctech commented 3 years ago

Looks like you need to add the no-async option to the Configure command, please go here:

https://github.com/awslabs/amazon-kinesis-video-streams-producer-c/blob/7e0d30f83e41cc9c565bd45d277be6a2c1bb86f7/CMake/Dependencies/libopenssl-CMakeLists.txt#L15

And add no-async immediately after ${OPENSSL_EXTRA}

So that line should read

SET(CONFIGURE_COMMAND ${CMAKE_CURRENT_BINARY_DIR}/build/src/project_libopenssl/Configure ${OPENSSL_EXTRA} no-async --prefix=${OPEN_SRC_INSTALL_PREFIX} --openssldir=${OPEN_SRC_INSTALL_PREFIX} ${BUILD_OPENSSL_PLATFORM})

waikup83 commented 3 years ago

image

hassanctech commented 3 years ago

It looks like find_package could not find it for some reason? Can you try to pass those variables on the cmake command line? I see output for CURL and libkvspic but did openssl actually build correctly? Can you also please share the output in a text file instead of an image it is much easier to search through it that way.

waikup83 commented 3 years ago

sorry for the respond time but im trying hard to find some way to compile it. I'm having error while include cproducer.h

In file included from /home/Projet/Kinesis/cproducer/Include.h:17:0, from main.cpp:5: /home/Projet/Kinesis/common/Include.h:438:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:439:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:440:5: error: 'PCHAR' does not name a type /home/Projet/Kinesis/common/Include.h:441:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:442:5: error: 'PCHAR' does not name a type /home/Projet/Kinesis/common/Include.h:443:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:444:5: error: 'PCHAR' does not name a type /home/Projet/Kinesis/common/Include.h:445:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:446:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/common/Include.h:456:5: error: 'PCHAR' does not name a type /home/Projet/Kinesis/common/Include.h:457:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:458:5: error: 'PCHAR' does not name a type /home/Projet/Kinesis/common/Include.h:459:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:468:14: error: 'ATOMIC_BOOL' does not name a type /home/Projet/Kinesis/common/Include.h:470:5: error: 'PCHAR' does not name a type /home/Projet/Kinesis/common/Include.h:473:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:474:5: error: 'CHAR' does not name a type /home/Projet/Kinesis/common/Include.h:475:5: error: 'CHAR' does not name a type /home/Projet/Kinesis/common/Include.h:476:5: error: 'CHAR' does not name a type /home/Projet/Kinesis/common/Include.h:477:5: error: 'CHAR' does not name a type /home/Projet/Kinesis/common/Include.h:479:5: error: 'CHAR' does not name a type /home/Projet/Kinesis/common/Include.h:480:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/common/Include.h:481:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/common/Include.h:482:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/common/Include.h:483:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/common/Include.h:484:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/common/Include.h:485:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/common/Include.h:487:5: error: 'PSingleList' does not name a type /home/Projet/Kinesis/common/Include.h:497:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:498:5: error: 'SERVICE_CALL_RESULT' does not name a type /home/Projet/Kinesis/common/Include.h:499:5: error: 'CHAR' does not name a type /home/Projet/Kinesis/common/Include.h:500:5: error: 'PStackQueue' does not name a type /home/Projet/Kinesis/common/Include.h:502:5: error: 'PCHAR' does not name a type /home/Projet/Kinesis/common/Include.h:503:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:520:16: warning: ISO C++ forbids declaration of 'STATUS' with no type [-fpermissive] /home/Projet/Kinesis/common/Include.h:520:16: error: typedef 'STATUS' is initialized (use decltype instead) /home/Projet/Kinesis/common/Include.h:520:18: error: 'GetCredentialsFunc' was not declared in this scope /home/Projet/Kinesis/common/Include.h:525:5: error: 'GetCredentialsFunc' does not name a type /home/Projet/Kinesis/common/Include.h:551:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:560:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:570:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:586:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:595:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:610:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:625:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:642:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:660:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:670:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:680:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:692:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:701:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:723:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:733:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:742:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:751:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:762:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:774:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:785:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:797:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:807:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:820:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:830:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:839:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:852:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:861:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:870:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:884:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:892:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:907:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:914:1: error: 'PUBLIC_API' does not name a type In file included from main.cpp:5:0: /home/Projet/Kinesis/cproducer/Include.h:111:16: warning: ISO C++ forbids declaration of 'STATUS' with no type [-fpermissive] /home/Projet/Kinesis/cproducer/Include.h:111:16: error: typedef 'STATUS' is initialized (use decltype instead) /home/Projet/Kinesis/cproducer/Include.h:111:18: error: 'FreePlatformCallbacksFunc' was not declared in this scope /home/Projet/Kinesis/cproducer/Include.h:120:16: warning: ISO C++ forbids declaration of 'STATUS' with no type [-fpermissive] /home/Projet/Kinesis/cproducer/Include.h:120:16: error: typedef 'STATUS' is initialized (use decltype instead) /home/Projet/Kinesis/cproducer/Include.h:120:18: error: 'FreeProducerCallbacksFunc' was not declared in this scope /home/Projet/Kinesis/cproducer/Include.h:129:16: warning: ISO C++ forbids declaration of 'STATUS' with no type [-fpermissive] /home/Projet/Kinesis/cproducer/Include.h:129:16: error: typedef 'STATUS' is initialized (use decltype instead) /home/Projet/Kinesis/cproducer/Include.h:129:18: error: 'FreeStreamCallbacksFunc' was not declared in this scope /home/Projet/Kinesis/cproducer/Include.h:138:16: warning: ISO C++ forbids declaration of 'STATUS' with no type [-fpermissive] /home/Projet/Kinesis/cproducer/Include.h:138:16: error: typedef 'STATUS' is initialized (use decltype instead) /home/Projet/Kinesis/cproducer/Include.h:138:18: error: 'FreeAuthCallbacksFunc' was not declared in this scope /home/Projet/Kinesis/cproducer/Include.h:147:16: warning: ISO C++ forbids declaration of 'STATUS' with no type [-fpermissive] /home/Projet/Kinesis/cproducer/Include.h:147:16: error: typedef 'STATUS' is initialized (use decltype instead) /home/Projet/Kinesis/cproducer/Include.h:147:18: error: 'FreeApiCallbacksFunc' was not declared in this scope /home/Projet/Kinesis/cproducer/Include.h:164:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/cproducer/Include.h:165:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/cproducer/Include.h:166:5: error: 'GetCurrentTimeFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:167:5: error: 'GetRandomNumberFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:168:5: error: 'CreateMutexFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:169:5: error: 'LockMutexFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:170:5: error: 'UnlockMutexFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:171:5: error: 'TryLockMutexFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:172:5: error: 'FreeMutexFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:173:5: error: 'CreateConditionVariableFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:174:5: error: 'SignalConditionVariableFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:175:5: error: 'BroadcastConditionVariableFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:176:5: error: 'WaitConditionVariableFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:177:5: error: 'FreeConditionVariableFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:178:5: error: 'LogPrintFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:179:5: error: 'FreePlatformCallbacksFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:188:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/cproducer/Include.h:189:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/cproducer/Include.h:190:5: error: 'StorageOverflowPressureFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:191:5: error: 'ClientReadyFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:192:5: error: 'ClientShutdownFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:193:5: error: 'FreeProducerCallbacksFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:202:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/cproducer/Include.h:203:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/cproducer/Include.h:204:5: error: 'StreamUnderflowReportFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:205:5: error: 'BufferDurationOverflowPressureFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:206:5: error: 'StreamLatencyPressureFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:207:5: error: 'StreamConnectionStaleFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:208:5: error: 'DroppedFrameReportFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:209:5: error: 'DroppedFragmentReportFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:210:5: error: 'StreamErrorReportFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:211:5: error: 'FragmentAckReceivedFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:212:5: error: 'StreamDataAvailableFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:213:5: error: 'StreamReadyFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:214:5: error: 'StreamClosedFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:215:5: error: 'StreamShutdownFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:218:5: error: 'FreeStreamCallbacksFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:227:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/cproducer/Include.h:228:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/cproducer/Include.h:229:5: error: 'GetSecurityTokenFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:230:5: error: 'GetDeviceCertificateFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:231:5: error: 'DeviceCertToTokenFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:232:5: error: 'GetDeviceFingerprintFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:233:5: error: 'GetStreamingTokenFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:236:5: error: 'FreeAuthCallbacksFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:245:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/cproducer/Include.h:246:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/cproducer/Include.h:247:5: error: 'CreateStreamFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:248:5: error: 'DescribeStreamFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:249:5: error: 'GetStreamingEndpointFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:250:5: error: 'PutStreamFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:251:5: error: 'TagResourceFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:252:5: error: 'CreateDeviceFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:253:5: error: 'FreeApiCallbacksFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:322:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:343:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:360:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:377:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:389:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:401:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:413:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:425:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:437:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:449:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:464:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:479:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:494:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:509:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:521:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:530:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:542:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:551:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:561:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:573:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:593:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:602:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:616:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:625:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:642:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:651:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:667:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:678:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:690:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:699:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:712:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:721:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:738:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:752:1: error: 'PUBLIC_API' does not name a type make: *** [Makefile:32: build/main.o] Error 1

hassanctech commented 3 years ago

Can you please share the exact steps and commands you ran from the beginning?

waikup83 commented 3 years ago

apt install -y m4 wget git cmake automake pkg-config apt install -y libcurl4-openssl-dev

export CROSS_COMPILE_HOME=/home/foscam/mips

export CROSS_INSTALL_PREFIX=/home/Projet/aws/cross_output export CC=$CROSS_COMPILE_HOME/bin/mips-linux-gnu-gcc export CXX=$CROSS_COMPILE_HOME/bin/mips-linux-gnu-g++ export RANLIB=$CROSS_COMPILE_HOME/bin/mips-linux-gnu-ranlib export CPPFLAGS="-I$CROSS_COMPILE_HOME/include/" export LDFLAGS="-L$CROSS_COMPILE_HOME/lib/ -L$CROSS_COMPILE_HOME/lib64/ -L$CROSS_INSTALL_PREFIX/lib/" export PATH=$CROSS_COMPILE_HOME/bin:$PATH export CFLAGS=-FPIC

cd /home/Projet/aws wget https://www.openssl.org/source/openssl-1.1.1c.tar.gz tar xvzf openssl-1.1.1c.tar.gz cd openssl-1.1.1c ./Configure --prefix=$CROSS_INSTALL_PREFIX linux-mips32 make -j make install

cd /home/Projet/aws git clone --recursive https://github.com/awslabs/amazon-kinesis-video-streams-producer-c.git cd /home/Projet/aws/amazon-kinesis-video-streams-producer-c mkdir build && cd build cmake ../ -DCMAKE_TOOLCHAIN_FILE="/home/Projet/aws/mips.toolchain.cmake" -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=$CROSS_INSTALL_PREFIX -DCMAKE_PREFIX_PATH=$CROSS_INSTALL_PREFIX -DBUILD_OPENSSL_PLATFORM=linux-generic32 -DADD_MUCLIBC=ON make -j

ToolChains file : SET(CMAKE_SYSTEM_NAME Linux)

SET(CMAKE_C_COMPILER /home/foscam/mips/bin/mips-linux-uclibc-gnu-gcc) SET(CMAKE_CXX_COMPILER /home/foscam/mips/bin/mips-linux-uclibc-gnu-g++)

SET(CMAKE_FIND_ROOT_PATH /home/Projet/aws/cross_output)

SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

waikup83 commented 3 years ago

doing that failed for linking in sample

[100%] Linking C executable kvsVideoOnlyStreamingSample [100%] Linking C executable kvsAacAudioVideoStreamingSample /home/foscam/mips/bin/../lib/gcc/mips-linux-gnu/4.7.2/../../../../mips-linux-gnu/bin/ld: warning: libdl.so.2, needed by /home/Projet/aws/cross_output/lib/libssl.so, not found (try using -rpath or -rpath-link) /home/foscam/mips/bin/../lib/gcc/mips-linux-gnu/4.7.2/../../../../mips-linux/-gnuhome//foscam/binmips//ldbin:/ .warning.:/ liblibc.so.6/,gcc needed/ mipsby- linux/-homegnu//Projet4.7.2//aws./.cross_output//.lib.//libssl.so.,. /not. .found/ mips(-trylinux -usinggnu /bin/-ldrpath: orwarning :- rpathlibdl.so.2-,link needed) by/ home//home/ProjetProjet//awsaws//cross_outputcross_output//lib/liblibssl.so/,libcrypto.so :not undefinedfound reference( tryto usingfeof-@rpathGLIBC_2.0 'or /-homerpath/-Projetlink/)aws //cross_outputhome//libfoscam//libcrypto.somips:/bin /undefined. .reference torealloc/@libGLIBC_2.0/'gcc //mipshome-/linuxProjet-/gnuaws//4.7.2cross_output//.lib.//libcrypto.so.:. /undefined. .reference/ .to. /mipsclearerr-@linuxGLIBC_2.0-'gnu //binhome//ldProjet:/ awswarning/cross_output:/ liblibc.so.6/,libcrypto.so :needed undefinedby reference/home/Projet/ aws/tocross_output /lib_longjmp/@libssl.soGLIBC_2.0,' not/home/Projet/aws/amazon-kinesis-video-streams -foundproducer -(ctry/ openusing --sourcerpath/ libor/ libcurl.so-:rpath -undefinedlink )reference /tohome /Projetstdout/@awsGLIBC_2.0/'cross_output //libhome//libcrypto.soProjet:/ awsundefined/ cross_output/libreference/ libcrypto.soto:undefinedfeof @referenceGLIBC_2.0 'to /homegmtime_r/Projet@/GLIBC_2.0aws'/ cross_output//homelib//Projetlibcrypto.so/:aws /undefinedcross_output /referencelib /tolibcrypto.so : reallocundefined@ referenceGLIBC_2.0 'to /hometcsetattr@GLIBC_2.0' //Projethome//awsProjet//cross_outputaws//libamazon/libcrypto.so-: kinesisundefined- video-referencestreams -toproducer -cclearerr/@openGLIBC_2.0-'source //libhome/libcurl.so/:Projet /awsundefined/ cross_output/referencelib /tolibcrypto.so :strpbrkundefined@ GLIBC_2.0reference' to/ home/_longjmpProjet@/GLIBC_2.0aws'/ cross_output//homelib//Projetlibcrypto.so/:aws /undefinedamazon -referencekinesis -tovideo -streams__register_atfork-@producerGLIBC_2.3.2-'c //openhome-/sourceProjet//aws/cross_outputlib//lib/libcrypto.so: undefined reference tolibcurl.sofgets@GLIBC_2.0': /undefinedhome/Projet/aws/amazon-kinesis-video-streams -producerreference- cto/ open-stdoutsource@/GLIBC_2.0lib'/ libcurl.so/:home /undefinedProjet /referenceaws /tocross_output /libinet_pton@/GLIBC_2.0'libcrypto.so :/ homeundefined/ Projetreference/ awsto/ cross_output/libgmtime_r/@libssl.so:GLIBC_2.0 'undefined /referencehome /toProjet/aws /cross_outputstrncasecmp/@libGLIBC_2.0/'libcrypto.so :/ homeundefined/ Projetreference/ awsto/ cross_output/tcsetattrlib@/GLIBC_2.0libcrypto.so:' undefined/ homereference/ Projetto/ aws/strcspnamazon@-GLIBC_2.0kinesis'- video/-homestreams/Projet-/produceraws-/ccross_output//openlib-/sourcelibcrypto.so/:lib /undefinedlibcurl.so :reference undefinedto referencemlockto@ GLIBC_2.0' strpbrk/home@/GLIBC_2.0Projet'/ aws//homecross_output//Projetlib//awslibcrypto.so/:cross_output /undefinedlib /reference libcrypto.soto :readdirundefined@ GLIBC_2.0reference' to/ home/__register_atforkProjet@/GLIBC_2.3.2aws'/ amazon/home-kinesis/-Projetvideo/-awsstreams/-cross_outputproducer/-libc//libcrypto.soopen:- sourceundefined/ libreference to/ libcurl.sofgets:@ GLIBC_2.0undefined' reference /tohome /pthread_mutex_init@ProjetGLIBC_2.0/'aws //amazonhome-/kinesisProjet-/videoaws-/streams-cross_outputproducer/-libc//libcrypto.soopen:- undefinedsource /referencelib /tolibcurl.so : undefinedopenreference @to GLIBC_2.0' inet_pton/@homeGLIBC_2.0/'Projet //awshome//cross_outputProjet//awslib/cross_output//liblibssl.so/libssl.so:: undefinedundefined reference referenceto memsetto@ GLIBC_2.0'strncasecmp @/GLIBC_2.0' home//homeProjet//Projetaws//awscross_output//cross_outputlib//liblibssl.so/:libcrypto.so : undefinedundefined referencereference toto strcasecmp@strcspnGLIBC_2.0@' GLIBC_2.0/'home //Projethome//aws/cross_output/lib/libcrypto.so: undefined reference to `Projetshutdown/aws@/GLIBC_2.0cross_output'/ lib//homelibcrypto.so/: Projetundefined /aws/cross_output/lib/libcrypto.so: undefined reference to `htonl@GLIBC_2.0' /home/referenceProjet/ awsto/ amazon`-mlockkinesis@-GLIBC_2.0video'- streams-/home/Projet/produceraws/cross_output/-lib/clibcrypto.so/open:-source /undefinedlib /libcurl.so: undefined reference to `setvbuf@GLIBC_2.0' reference/home /Projetto/ aws`/readdircross_output@/GLIBC_2.0lib'/ libcrypto.so/:home /undefinedProjet /referenceaws /toamazon -`kinesisgetpid-@videoGLIBC_2.0-streams-producer-c/open-source/lib/libcurl.so: undefined reference to `pthread_mutex_init@GLIBC_2.0' /home/Projet/aws/cross_output/lib/libcrypto.so: undefined reference to `open@GLIBC_2.0' /home/Projet/aws/cross_output/lib/libssl.so: undefined reference to `memset@GLIBC_2.0' /home/Projet/aws/cross_output'/ /libhome/libssl.so:/ Projetundefined/ awsreference/ cross_outputto/ lib`strcasecmp@GLIBC_2.0' /home/Projet/aws/cross_output/lib/libcrypto.so: undefined reference to `shutdown@GLIBC_2.0' /home//Projet/aws/cross_output/lib/libcrypto.so: undefined reference to libcrypto.so`htonl:@ undefinedGLIBC_2.0 ' /referencehome /toProjet/aws/amazon-kinesis-video-streams-producer-c/open-source/ lib/`libcurl.so:closedir @undefinedGLIBC_2.0 'reference /to `setvbuf@GLIBC_2.0' /home/homeProjet//Projet/awsaws//cross_outputcross_output//liblib//libcrypto.solibcrypto.so:: undefinedundefined referencereference totogetpidstrrchr@@GLIBC_2.0GLIBC_2.0''

//homehome//ProjetProjet//awsaws//cross_outputcross_output//liblib//libcrypto.solibcrypto.so:: undefinedundefined referencereference toto getauxval @GLIBC_2.16' /home/Projetclosedir/@awsGLIBC_2.0/' cross_output//homelib//Projetlibcrypto.so/:aws /cross_outputundefined/ libreference/ libcrypto.soto: strncpy@undefinedGLIBC_2.0' reference/ hometo/ Projet/strrchraws@/GLIBC_2.0amazon-kinesis-video-streams-producer'- c//homeopen/-Projetsource//awslib//cross_outputlibcurl.so/:lib /undefinedlibcrypto.so reference: toundefined referencestrerror @toGLIBC_2.0 ' getauxval/@homeGLIBC_2.16/'Projet //awshome//cross_outputProjet/lib//awslibssl.so/: cross_outputundefined/ referencelib to/libcrypto.so: undefinedmemchrreference@ GLIBC_2.0to' /strncpyhome@/GLIBC_2.0Projet'/ aws//homecross_output//Projetlib//awslibcrypto.so/:amazon -undefinedkinesis -referencevideo -tostreams -producermprotect-@c/GLIBC_2.0open'- /sourcehome//libProjet//libcurl.soaws:/ undefined amazonreference -to kinesis-strerrorvideo-@streams-producerGLIBC_2.0-'c //openhome-/sourceProjet//libaws//libcurl.socross_output:/ libundefined/ referencelibssl.so :to undefinedreferencerecv @toGLIBC_2.0 ' memchr/@homeGLIBC_2.0' /home/Projet/aws/cross_output/lib/libcrypto.so: undefined reference/ toProjet /awsmprotect/@cross_outputGLIBC_2.0/'lib //libcrypto.sohome:/ Projetundefined/ awsreference /amazonto- kinesis-fxstatvideo@-GLIBC_2.0streams-'producer-c //openhome/-sourceProjet//libaws//libcurl.socross_output:/ libundefined/ libcrypto.soreference: toundefined referencerecv @toGLIBC_2.0 ' getsockopt/@homeGLIBC_2.0'/ Projet//homeaws//Projetcross_output//awslib//amazonlibcrypto.so-:kinesis -undefinedvideo -reference streamsto- producer-__fxstatc@/GLIBC_2.0open'-source/lib/libcurl.so: /homeundefined/ Projetreference/ awsto/ cross_output/libtolower/@libcrypto.soGLIBC_2.0:' undefined/home /referenceProjet /toaws /amazongetsockopt-@GLIBC_2.0kinesis'- video/-home/streamsProjet-/produceraws-/camazon/-kinesisopen--video-sourcestreams/-libproducer/-libcurl.soc:/ openundefined -source/lib/libcurl.so: undefined reference totolower@GLIBC_2.0' /homereference/ Projetto/ aws/getpwuid_ramazon@-GLIBC_2.2kinesis'- video/-homestreams/-Projetproducer/-awsc//amazonopen--source/kinesislib-/videolibcurl.so-:streams -undefined referenceproducer -togetpwuid_r@GLIBC_2.2'c/ open-/sourcehome//Projetlib//awslibcurl.so/:amazon -undefinedkinesis reference -tovideo -streamspthread_join-@producerGLIBC_2.0-'c/ open-source/lib/libcurl.so: /undefined homereference/ Projetto/ aws/pthread_joincross_output@/GLIBC_2.0lib'/ libcrypto.so/:home /undefinedProjet /referenceaws /tocross_output /ntohslib@/GLIBC_2.0libcrypto.so': /undefinedhome /referenceProjet /toaws /amazonntohs@-GLIBC_2.0kinesis'- video/-homestreams/-Projetproducer/-awsc//amazonopen--kinesissource-/videolib-/streamslibcurl.so-:producer -undefinedc /openreference- sourceto/ lib/strtolllibcurl.so@:GLIBC_2.0' /home/Projet/ awsundefined /referencecross_output to/ libstrtoll@GLIBC_2.0' /home//Projetlibcrypto.so/:aws/ cross_outputundefined/ libreference/ libcrypto.soto: undefinedpthread_rwlock_destroy @reference toGLIBC_2.2pthread_rwlock_destroy@GLIBC_2.2' '/ home//homeProjet//Projetaws//awscross_output//cross_outputlib//liblibcrypto.so/:libcrypto.so :undefined undefinedreference reference toto `bindbind@@GLIBC_2.0'GLIBC_2.0 /'home //Projethome//aws/amazonProjet-kinesis-/videoaws/-amazonstreams--kinesisproducer--videoc-/streamsopen--producersource-/clib//openlibcurl.so-:source /undefinedlib /reference libcurl.soto:undefinedpthread_create @referenceGLIBC_2.2 'to /homepthread_create/@ProjetGLIBC_2.2/'aws //cross_outputhome/Projet//awslib//cross_outputlibcrypto.so/:lib /undefinedlibcrypto.so :reference undefinedtoreferenceselect @toGLIBC_2.0 ' select/@homeGLIBC_2.0/'Projet //awshome//cross_outputProjet//awslib//cross_outputlibcrypto.so/:lib /undefined reference tolibcrypto.soaccept@GLIBC_2.0' /home/Projet:/ aws/undefinedcross_output /referencelib /tolibssl.so :acceptundefined@ GLIBC_2.0reference' to/ home/strcmpProjet@/GLIBC_2.0' /home/Projet/aws/cross_output/lib/libcrypto.so: undefined reference to getaddrinfoaws@GLIBC_2.0' /home/Projet/aws/cross_output/lib/libcrypto.so:/ undefined cross_outputreference/ libtowrite/@GLIBC_2.0libssl.so': /undefinedhome /referenceProjet /to strcmpaws@/GLIBC_2.0cross_output'/ lib//homelibcrypto.so/:Projet undefined reference toftell@GLIBC_2.0' //aws/cross_output/lib/libcrypto.so: undefined reference to getaddrinfo@GLIBC_2.0' /homehome//Projet/Projetaws//aws/cross_outputcross_output/lib//libcrypto.solib: undefined reference towrite@GLIBC_2.0' /home/Projet//aws/libcrypto.socross_output:/ libundefined reference/ libcrypto.soto: undefined _setjmpreference@ GLIBC_2.0to' /ftellhome@/GLIBC_2.0Projet'/ aws//homecross_output//Projetlib//awslibcrypto.so/:cross_output /undefinedlib /referencelibcrypto.so :to undefinedstrtoulreference@ GLIBC_2.0to' /_setjmphome@/GLIBC_2.0Projet'/ aws//amazonhome-/kinesisProjet-/videoaws-/streams-producer-c/open-source/lib/libcurl.so:cross_output /undefinedlib /reference to fcntl@GLIBC_2.0' /home/Projet/aws/amazon-kinesis-video-libcrypto.sostreams:- producerundefined- creference/ open-source/lib/libcurl.so: undefined reference topthread_detach@GLIBC_2.0'to /homestrtoul/@ProjetGLIBC_2.0/'aws //amazonhome-/kinesisProjet-/videoaws-/streamsamazon--producerkinesis-c/open--sourcevideo/-libstreams/-libcurl.soproducer:- cundefined reference/ toopen -sourcesend/@libGLIBC_2.0/' /home/Projet/aws/cross_output/lib/libcrypto.so: undefined reference to libcurl.so:strspn @undefinedGLIBC_2.0 'reference /tohome /Projetfcntl/@awsGLIBC_2.0/'amazon -/kinesishome-/videoProjet-/streamsaws-/produceramazon--ckinesis/-openvideo--sourcestreams/-libproducer/-libcurl.soc:/ openundefined- sourcereference/ libto/ libcurl.so:strtok_r @undefinedGLIBC_2.0 'reference /hometo/Projet /awspthread_detach/@cross_outputGLIBC_2.0/'lib //libssl.sohome:/ Projetundefined/ awsreference/ amazonto- kinesis-strchrvideo@-GLIBC_2.0streams'- producer/-homec//Projetopen/-awssource//cross_outputlib//liblibcurl.so/:libcrypto.so :undefined undefinedreference reference tomakecontext@GLIBC_2.2' /home/Projet/aws/cross_output/lib/libcrypto.so: undefined reference to ferror@GLIBC_2.0 'to /homesend/@ProjetGLIBC_2.0/'aws //cross_outputhome//libProjet//libcrypto.soaws:/ cross_output/libundefined/ libcrypto.soreference: undefined toreference tosetbuf @GLIBC_2.0strspn'@ /GLIBC_2.0home'/ Projet//homeaws//Projetamazon/-awskinesis/-amazonvideo--kinesisstreams--videoproducer--streamsc-/produceropen--csource//openlib-source//libcurl.solib:/ libcurl.soundefined reference: toundefined referenceif_nametoindex @toGLIBC_2.2 ' strtok_r/@home/GLIBC_2.0'Projet //awshome//cross_outputProjet//libaws//libcrypto.socross_output: undefined reference to setsockopt@GLIBC_2.0' /home/Projet//awslib//cross_outputlibssl.so/:lib /undefined referencelibcrypto.so :to undefined strchrreference@ GLIBC_2.0to' /gethostbynamehome@/GLIBC_2.0Projet'/ aws//homecross_output//libProjet//libcrypto.soaws:/ cross_output/lib/undefinedlibcrypto.so :reference undefinedto reference to makecontext`@xpg_strerror_rGLIBC_2.2@'GLIBC_2.3.4 '/ home//homeProjet//Projetaws/aws//cross_outputcross_output//liblib//libcrypto.solibcrypto.so:: undefinedundefined referencereference toto fwriteferror@@GLIBC_2.0' /home/Projet/aws/cross_output/lib/libcrypto.so:GLIBC_2.0' undefined/ homereference/ Projetto /`awsdlopen/@GLIBC_2.2'cross_output //libhome//libcrypto.soProjet:/ awsundefined/ cross_outputreference/ lib/tolibcrypto.so :` setbufundefined @referenceGLIBC_2.0 'to /`homechmod/@ProjetGLIBC_2.0/'aws //amazonhome-/kinesisProjet-/videoaws-/streamscross_output-/producerlib-/clibcrypto.so/:open -undefinedsource /referencelib /to libcurl.so`:pthread_equal @undefinedGLIBC_2.0 'reference /tohome `/if_nametoindexProjet@/GLIBC_2.2aws' //cross_outputhome//libProjet//libcrypto.soaws:/ cross_outputundefined/ libreference/ libcrypto.soto: `undefinedgetenv @referenceGLIBC_2.0 'to /`homesetsockopt@/GLIBC_2.0Projet'/ aws/home//cross_outputProjet//libaws//libcrypto.socross_output:/ libundefined/ libcrypto.soreference: toundefined `referencefseek @toGLIBC_2.0 '` gethostbyname/@homeGLIBC_2.0/'Projet //awshome//cross_outputProjet//libaws//libcrypto.socross_output:/ libundefined/ libcrypto.soreference: toundefined `reference__xstat@ GLIBC_2.0to' `/__xpg_strerror_rhome@/GLIBC_2.3.4Projet'/ aws//homecross_output//Projetlib//awslibcrypto.so/:cross_output /undefinedlib/ libcrypto.soreference: toundefined `referencefopen @toGLIBC_2.2 '` fwrite/@homeGLIBC_2.0/'Projet //awshome//cross_outputProjet//libaws//libcrypto.socross_output:/ libundefined/libcrypto.so :reference undefinedto reference` madviseto@ GLIBC_2.0`'dlopen @/GLIBC_2.2home'/Projet //awshome//cross_outputProjet//libaws//libcrypto.socross_output:/ libundefined/ libcrypto.soreference: toundefined `referencemmap to@ `GLIBC_2.0chmod'@ GLIBC_2.0/'home /Projet//homeaws//Projetcross_output//awslib//libcrypto.socross_output:/ libundefined/libcrypto.so: undefined reference toreference `pthread_equal@GLIBC_2.0' to/ home`/fputc@GLIBC_2.0Projet'/ aws//homecross_output//Projetlib//awslibcrypto.so/:cross_output /undefinedlib /referencelibcrypto.so :to undefined` getenvreference@ GLIBC_2.0to' `/mallochome@/GLIBC_2.0Projet'/ aws//homecross_output//Projetlib//awslibcrypto.so/:cross_output /undefinedlib /referencelibcrypto.so :to undefined` fseekreference@ GLIBC_2.0to' `/closeloghome@/Projet/GLIBC_2.0aws/'cross_output //libhome//libcrypto.soProjet:/ aws/undefinedcross_output /referencelib /to libcrypto.so`:__xstat @undefinedGLIBC_2.0 'reference to/ home`strstr/@ProjetGLIBC_2.0/' aws//homecross_output//Projetlib//awslibcrypto.so/cross_output/:lib /undefinedlibcrypto.so :reference undefinedto reference `tofopen @`GLIBC_2.2pthread_getspecific'@ GLIBC_2.0/'home //Projethome//awsProjet//cross_outputaws//cross_outputlib//liblibcrypto.so/:libcrypto.so :undefined undefinedreference referenceto to` madvise`@GLIBC_2.0' /home/getcontextProjet@/GLIBC_2.2aws' //home/cross_outputProjet//libaws//libcrypto.socross_output:/lib /libssl.soundefined: referenceundefined reference totommapstrncmp@@GLIBC_2.0' GLIBC_2.0/'home //Projet/aws/cross_output/lib/libcrypto.so: undefined reference to fputc@homeGLIBC_2.0/' /home/Projet/aws/cross_outputProjet/lib//awslibcrypto.so/:cross_output undefined/ libreference/ libcrypto.soto : mallocundefined@ GLIBC_2.0reference' to/ home/strtolProjet@/GLIBC_2.0aws'/ cross_output//homelib//Projetlibcrypto.so: /undefinedaws /referencecross_output /tolib /libcrypto.socloselog:@ GLIBC_2.0undefined' reference/ hometo/ sigactionProjet@/GLIBC_2.0aws' //cross_outputhome//libProjet//libcrypto.soaws:/ cross_outputundefined/ libreference/ libcrypto.soto:undefinedstrstr @referenceGLIBC_2.0 'to /homeread/@ProjetGLIBC_2.0/'aws //cross_outputhome//libProjet//libcrypto.soaws:/ cross_outputundefined/ reference lib/tolibcrypto.so : pthread_getspecificundefined@ GLIBC_2.0reference' /home/Projet/awsto/cross_output/lib /libcrypto.sofreeaddrinfo:@ GLIBC_2.0undefined 'reference to/ home/Projet/aws/cross_outputgetcontext/lib@/GLIBC_2.2libcrypto.so': /undefinedhome reference /to Projet/fflushaws@/GLIBC_2.0cross_output'/lib/ libssl.so/:home /undefinedProjet /referenceaws /tocross_output /lib/strncmplibcrypto.so@:GLIBC_2.0 'undefined /referencehome /toProjet /awsfread/cross_output/lib/libcrypto.so: undefined reference to @strtol@GLIBC_2.0' GLIBC_2.0/'home //Projethome//awsProjet//cross_outputaws//lib/libcrypto.socross_output:/ libundefined/ libcrypto.soreference: to `sigaction@GLIBC_2.0' /home/Projet/aws/cross_output/libundefined/libcrypto.so: undefined referencereference toto ``readstderr@@GLIBC_2.0GLIBC_2.0''

//homehome//ProjetProjet//awsaws//cross_outputcross_output//liblib//libcrypto.solibssl.so:: undefinedundefined referencereference toto ``freeaddrinfomemcpy@@GLIBC_2.0GLIBC_2.0''

//homehome//ProjetProjet//awsaws//cross_outputcross_output//liblib//libcrypto.solibssl.so:: undefinedundefined referencereference toto ``fflushstrlen@@GLIBC_2.0GLIBC_2.0''

//home/home/ProjetProjet//awsaws//cross_outputcross_output//liblib/libcrypto.so/:libcrypto.so :undefined undefinedreference referenceto tofread@GLIBC_2.0dladdr'@ GLIBC_2.0/'home //homeProjet//awsProjet/cross_output/aws//lib/libcrypto.socross_output:/lib /libcrypto.soundefined: referenceundefined toreference tostderr @sysconfGLIBC_2.0@' /GLIBC_2.0home'/ Projet//homeaws//Projetcross_output//lib/libssl.so: undefined reference to memcpy@GLIBC_2.0' /home/Projet/aws/cross_output/lib/libssl.so: undefined reference tostrlen@GLIBC_2.0' aws/home//Projetcross_output//awslib//cross_outputlibcrypto.so/: libundefined /referencelibcrypto.so :to undefinedtcgetattr @referenceGLIBC_2.0 'to /homedladdr/Projet@/GLIBC_2.0aws'/ amazon/-homekinesis/-Projetvideo/-awsstreams/-cross_outputproducer/-libc//libcrypto.soopen:- sourceundefined/lib /referencelibcurl.so :to undefinedsysconfreference@ GLIBC_2.0to' /gethostnamehome@/GLIBC_2.0Projet'/ aws//homecross_output//Projetlib//awslibcrypto.so/:cross_output /undefinedlib /libcrypto.soreference: toundefined referencetcgetattr @toGLIBC_2.0 ' fileno/@homeGLIBC_2.0/'Projet //awshome//amazon-kinesis-video-streams-producer-c/open-source/lib/libcurl.so: undefined reference to gethostname@GLIBC_2.0' /homeProjet/Projet//aws/awscross_output//cross_outputlib//liblibcrypto.so/:libcrypto.so :undefined undefinedreference referenceto to fileno@closeGLIBC_2.0@'GLIBC_2.0 '/ home//homeProjet//Projetaws//awscross_output//libcross_output/libcrypto.so: undefined reference toclose@GLIBC_2.0' /home//Projetlib//aws/cross_outputlibssl.so/:lib undefined/ reference to __errno_location@libssl.so: undefined reference toerrno_location@GLIBC_2.0' /home/Projet/aws/amazon-kinesis-video-GLIBC_2.0streams'- /homeproducer/-Projetc//aws/amazonopen--kinesis-video-streamssource-/producerlib-/c/libcurl.soopen-:source/lib /libcurl.soundefined: referenceundefined toreference to__xstat64 @GLIBC_2.2xstat64'@ GLIBC_2.2/'home //Projethome//awsProjet//cross_outputaws//libcross_output//libcrypto.solib:/ libcrypto.soundefined: reference undefinedto referencepthread_selfto@ GLIBC_2.0'pthread_self @/GLIBC_2.0home'/ Projet//homeaws//Projetcross_output//awslib/libcrypto.so/: cross_outputundefined/ libreference/ libcrypto.soto: undefined reference recvfromto@ GLIBC_2.0'recvfrom @/home/Projet/aws/cross_output/lib/libcrypto.so: undefined referenceGLIBC_2.0 'to /homesyslog/@Projet/awsGLIBC_2.0/'cross_output //libhome//libcrypto.soProjet:/ undefinedaws /referencecross_output /tolibsyslog/@GLIBC_2.0libcrypto.so': /undefinedhome/ Projet/referenceaws /tocross_output /libgetnameinfo/libcrypto.so@: GLIBC_2.2undefined' reference/ hometo/ Projet/getnameinfoaws@/GLIBC_2.2cross_output'/ lib//home/libcrypto.soProjet:/ awsundefined/ cross_outputreference/ libto/ libcrypto.so:vfprintf @undefinedGLIBC_2.0 reference 'to /homevfprintf/@ProjetGLIBC_2.0'/ aws//homecross_output//Projetlib//awslibcrypto.so/:cross_output /undefinedlib /referencelibcrypto.so :to undefinedreference signalto@GLIBC_2.0signal'@ GLIBC_2.0/'home //Projethome//Projetaws//awscross_output//cross_outputlib//libcrypto.solib:/ libcrypto.soundefined: referenceundefined reference to togetsockname@getsocknameGLIBC_2.0@'GLIBC_2.0 '/home //Projethome//awsProjet//cross_outputaws//libcross_output//libcrypto.solib: /undefinedlibcrypto.so :reference undefinedto referencefopen64to@GLIBC_2.2fopen64'@ GLIBC_2.2/'home/ Projet//homeaws//Projetcross_output//awslib//cross_outputlibcrypto.so/:lib /undefinedlibcrypto.so :reference undefinedto reference to ``dlsymdlsym@@GLIBC_2.0GLIBC_2.0''

//home/Projet/aws/amazon-kinesis-video-streams-producer-c/open-source/lib/libcurl.so: undefined homereference/Projet /toaws /amazongeteuid-@kinesisGLIBC_2.0-'video -/streamshome-/producer-Projetc//awsopen/-cross_output/sourcelib//liblibssl.so/:libcurl.so :undefined undefinedreference referenceto to ``geteuidmemcmp@@GLIBC_2.0'GLIBC_2.0 '/ home//homeProjet//Projetaws//awscross_output//cross_outputlib//liblibssl.so/:libcrypto.so undefined: referenceundefined reference tostrcat@GLIBC_2.0to' /homememcmp/@ProjetGLIBC_2.0/'aws //cross_outputhome//libProjet//libcrypto.soaws:/ cross_outputundefined/ libreference/ libcrypto.soto:undefinedpthread_once @referenceGLIBC_2.0 'to strcat/@homeGLIBC_2.0/'Projet //awshome//cross_outputProjet//libaws//libcrypto.socross_output:/ libundefined/ libcrypto.soreference: toundefinedreferencefdopen @toGLIBC_2.2 ' pthread_once/@homeGLIBC_2.0/'Projet //awshome//cross_outputProjet//libaws//libcrypto.socross_output:/ libundefined reference/ libcrypto.soto : gai_strerrorundefined@ GLIBC_2.2reference' to/ home/fdopenProjet@/GLIBC_2.2aws'/ cross_output//homelib/Projet//awslibcrypto.so/:cross_output /undefinedlib /libcrypto.so:reference undefined referenceto to pthread_key_create@gai_strerrorGLIBC_2.0@'GLIBC_2.2 '/ home//homeProjet//Projetaws//cross_output/awslib//cross_outputlibcrypto.so: undefined reference toconnect@GLIBC_2.0' //homelib//Projetlibcrypto.so/:aws /undefinedamazon -referencekinesis -tovideo -streamspthread_key_create-@producerGLIBC_2.0-'c //openhome-/sourceProjet//libaws//libcurl.socross_output/:lib /undefinedlibcrypto.so :reference undefinedto reference pthread_mutex_lock@toGLIBC_2.0 ' connect/@homeGLIBC_2.0/'Projet //awshome//cross_outputProjet//libaws//libcrypto.soamazon:- kinesisundefined- videoreference- streamsto-fclose@GLIBC_2.2' /home/Projet/aws/producercross_output-/clib//openlibcrypto.so-:source /undefinedlib/ libcurl.soreference: toundefined referencepthread_rwlock_unlock @toGLIBC_2.2 ' pthread_mutex_lock/@homeGLIBC_2.0/'Projet //awshome//cross_outputProjet//libaws//libcrypto.socross_output:/ libundefined/ libcrypto.soreference: toundefined referencesocket @toGLIBC_2.0' /homefclose/@ProjetGLIBC_2.2' //awshome//cross_outputProjet//libaws//libssl.socross_output:/ libundefined/ libcrypto.soreference: toundefined timereference@ GLIBC_2.0to' /pthread_rwlock_unlockhome@/GLIBC_2.2Projet'/ /awshome//cross_outputProjet//libaws//libcrypto.socross_output: undefined reference/ tolib /libcrypto.sopthread_rwlock_init:@ GLIBC_2.2undefined reference' to/ home/socketProjet@/GLIBC_2.0aws'/ cross_output//homelib//Projetlibcrypto.so/:aws /undefinedcross_output /referencelib /to libssl.so:__cxa_atexit @undefinedGLIBC_2.2 reference 'to /hometime/@ProjetGLIBC_2.0/'aws //cross_outputhome//libProjet//libcrypto.soaws:/cross_output/lib/libcrypto.so: undefined referenceundefined to referencepthread_rwlock_init @toGLIBC_2.2 ' fprintf/@homeGLIBC_2.0/'Projet //awshome//cross_outputProjet//libaws/amazon/-libcrypto.sokinesis: -undefinedvideo -referencestreams -toproducer -c__cxa_atexit/@openGLIBC_2.2-'source //libhome//libcurl.soProjet:/ undefined referenceaws to/ cross_output/pthread_mutex_destroylib@GLIBC_2.0' /home/Projet//libcrypto.soaws:/cross_output/ libundefined/ referencelibcrypto.so :to undefinedfprintfreference@ GLIBC_2.0to' /strduphome/@ProjetGLIBC_2.0'/ aws//homeamazon-/kinesisProjet-/videoaws-/streamscross_output-/producerlib-/clibcrypto.so/open:- source/undefinedlib /reference tolibcurl.so :pthread_rwlock_wrlockundefined@ GLIBC_2.2reference' to/ home/pthread_mutex_destroyProjet@/GLIBC_2.0' aws//homecross_output/lib/libssl.so: undefined reference to /atoiProjet@/GLIBC_2.0aws'/ cross_output//homelib//Projetlibcrypto.so/:aws /undefinedcross_output /referencelib /tolibssl.so : strdupundefined@ GLIBC_2.0reference' to/ home/strcpyProjet/@GLIBC_2.0'aws /home//cross_outputProjet//libaws//libcrypto.socross_output:/ libundefined/ libcrypto.soreference: toundefinedreferencepthread_rwlock_wrlock @to GLIBC_2.2sendto@'GLIBC_2.0 '/ home//homeProjet//Projetaws//awscross_output//cross_outputlib//liblibssl.so/:libssl.so :undefined undefined referencereference tomemmove@GLIBC_2.0' /home/Projet/aws/cross_output/ libto/ libcrypto.so:atoi @undefinedGLIBC_2.0' reference/home/Projet/aws/cross_output tolisten@/GLIBC_2.0'lib //libssl.sohome: undefined/ Projetreference/ awsto/ amazon-strcpykinesis@-video-GLIBC_2.0streams'- producer/-homec//Projetopen/-awssource//cross_outputlib//lib/libcurl.solibcrypto.so:: undefined undefinedreference referenceto to ``open64@sendtoGLIBC_2.2@'GLIBC_2.0 '/ home//homeProjet//Projetaws//awsamazon/-cross_outputkinesis/-libvideo/-libssl.sostreams:- producerundefined- creference/ opento- source/libmemmove/@GLIBC_2.0' /home/Projet/libcurl.soaws/cross_output:/ libundefined reference/ libcrypto.soto: undefinedgetpeername @referenceGLIBC_2.0 to' /listenhome@/GLIBC_2.0' /homeProjet//Projetaws//awscross_output//libamazon/-kinesis-libcrypto.so: undefined reference to opendir@GLIBC_2.0' /home/Projet/aws/cross_output/lib/videolibcrypto.so: -undefinedstreams -referenceproducer to -cabort/@openGLIBC_2.0-'source //libhome//libcurl.soProjet:/ undefinedaws /referenceamazon- kinesisto- video-open64streams@-GLIBC_2.2'producer /-homec//open-source/lib/libcurl.so: undefined reference Projetto/ aws/htonsamazon@-GLIBC_2.0kinesis'-video -/streamshome-/producerProjet-/caws//opencross_output-/sourcelib//liblibssl.so/:libcurl.so :undefined undefinedreference referenceto tosprintf@getpeernameGLIBC_2.0@'GLIBC_2.0 '/ home//homeProjet//Projet/awsaws//cross_outputamazon/-libkinesis/-libcrypto.sovideo:- streamsundefined- producer-referencec/open -sourceto/ lib/opendirlibcurl.so@:GLIBC_2.0 'undefined /referencehome /toProjet /awscalloc/@cross_output/GLIBC_2.0lib'/ libcrypto.so/:home /undefinedProjet /referenceaws /tocross_output /libabort/@libcrypto.soGLIBC_2.0: 'undefined /referencehome /toProjet /awsopenlog/@GLIBC_2.0'amazon -/kinesishome-/videoProjet-/streamsaws-/produceramazon--ckinesis/-openvideo--source/streamslib-/producerlibcurl.so-:c /undefinedopen -referencesource /tolib /libcurl.sohtons:@ GLIBC_2.0undefined' reference/ hometo/ Projet/accessaws@/GLIBC_2.0cross_output'/ lib//homelibssl.so/:Projet /aws/cross_output/lib/libcrypto.so: undefined reference to setcontext@GLIBC_2.0' /home/Projet/aws/cross_output/lib/libcrypto.so: undefinedundefined reference toreferenceto__ctype_b_loc @GLIBC_2.3'sprintf @/GLIBC_2.0home'/ /homeProjet//Projetaws//awscross_output/amazon/-kinesislib-/videolibcrypto.so-streams-:producer -undefined reference toperror@GLIBC_2.0' c//openhome-/source/Projetlib/libcurl.so/:aws /undefinedamazon -reference kinesisto- video-callocstreams@-GLIBC_2.0'producer -/chome//openProjet-/sourceaws//libcross_output//liblibcurl.so/:libcrypto.so : undefinedundefined referencereference to to `openlogpthread_mutex_unlock@@GLIBC_2.0GLIBC_2.0''

//homehome//ProjetProjet//awsaws//amazoncross_output-/kinesislib-/videolibssl.so-:streams -undefinedproducer -creference/ opento- source/gettimeofday@GLIBC_2.0'lib/libcurl.so: undefined reference toaccess@GLIBC_2.0' /home/Projet/aws/cross_output/lib/libcrypto.so: undefined reference to setcontext@GLIBC_2.0' /home/ Projet/aws//homecross_output//Projetlib//awslibcrypto.so/:cross_output /undefinedlib /referencelibcrypto.so :toctype_b_loc@GLIBC_2.3' /home/Projet/aws/cross_output/lib/ libcrypto.soundefined: referenceundefined reference to perror@GLIBC_2.0' /home/Projet/aws/toamazon-kinesis-video-streams-producer-c/open-source/lib/libcurl.so: undefined reference topthread_mutex_unlock@GLIBC_2.0 ' /home/Projet/aws/cross_output/lib/libssl.so: undefined reference to __isoc99_sscanfgettimeofday@@GLIBC_2.0'GLIBC_2.7 '/ /homehome//ProjetProjet//awsaws//cross_outputcross_output//liblib//libcrypto.so: undefined reference to `isoc99_sscanf@GLIBC_2.7' /home/Projet/aws/cross_output/lib/libcrypto.so: undefined libcrypto.soreference to: undefineddlerror @GLIBC_2.0'reference /tohome/ Projet/aws/cross_output/lib/libssl.so: undefined reference to qsort@GLIBC_2.0dlerror' /@home/GLIBC_2.0Projet'/ aws//homecross_output//Projetlib//awslibcrypto.so/:cross_output /undefinedlib /referencelibssl.so :to undefined pthread_setspecificreference@ GLIBC_2.0to' /qsorthome@/GLIBC_2.0Projet'/ aws//homecross_output//Projetlib//libcrypto.so: undefined reference tolseek@GLIBC_2.0' /home/awsProjet//aws/cross_outputcross_output//liblib//libcrypto.solibcrypto.so:: undefinedundefined referencereference toto ``pthread_setspecificpthread_rwlock_rdlock@@GLIBC_2.0GLIBC_2.2''

//homehome//ProjetProjet//awsaws//cross_outputamazon/-libkinesis/-libcrypto.sovideo:- streamsundefined- producerreference- cto/ open-lseeksource@/GLIBC_2.0lib'/ libcurl.so/:home /undefinedProjet/aws/cross_output/lib/ libcrypto.soreference: toxpg_basename@GLIBC_2.0' /home/Projet/aws/cross_output/lib/libcrypto.so: undefined reference to munmap @GLIBC_2.0' /home/Projet/aws/cross_output/lib/libcrypto.so: undefined reference tofputs@GLIBC_2.0undefined' /homereference/ Projetto/ aws/pthread_rwlock_rdlockcross_output@/GLIBC_2.2lib'/ libcrypto.so/:home /undefinedProjet /referenceaws /toamazon -kinesisfree-@videoGLIBC_2.0-' streams/-homeproducer/-Projetc//awsopen/-cross_outputsource//liblib//libcurl.solibcrypto.so:: undefinedundefined referencereference toto ``xpg_basenamepthread_key_delete@@GLIBC_2.0'GLIBC_2.0'

//homehome//ProjetProjet/aws/cross_output/lib/libcrypto.so/: undefinedaws reference/ cross_outputto/ libmunmap/@libcrypto.soGLIBC_2.0:' undefined/ home/Projetreference/ aws/tocross_output /libdlclose/@libcrypto.soGLIBC_2.0:' undefined/ homereference/ Projetto/ aws/fputscross_output@/GLIBC_2.0lib'/ libcrypto.so/home/:Projet /undefinedaws /referencecross_output/ libto/libcrypto.so: undefined reference tofree@GLIBC_2.0' stdin@GLIBC_2.0'/ home//homeProjet//aws/cross_output/lib/libcrypto.so: undefined reference topthread_key_delete@GLIBC_2.0Projet' //home/awsProjet//cross_outputaws//libcross_output//libcrypto.solib:/ libcrypto.soundefined: referenceundefined toreference toioctl @GLIBC_2.0dlclose'@ GLIBC_2.0' /home/Projet/aws/cross_output/lib/libcrypto.so: undefined reference to stdin@GLIBC_2.0' /home/Projet/aws/cross_output/lib/libcrypto.so: undefined reference tocollect2: error: ld returned 1 exit statusioctl@ GLIBC_2.0' collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/kvsAacAudioVideoStreamingSample.dir/build.make:90: kvsAacAudioVideoStreamingSample] Error 1 make[2]: [CMakeFiles/kvsVideoOnlyStreamingSample.dir/build.make:90: kvsVideoOnlyStreamingSample] Error 1 make[1]: [CMakeFiles/Makefile2:111: CMakeFiles/kvsAacAudioVideoStreamingSample.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... make[1]: [CMakeFiles/Makefile2:141: CMakeFiles/kvsVideoOnlyStreamingSample.dir/all] Error 2 make: [Makefile:130: all] Error 2 root@e7bbc22da04e:/home/Projet/aws/amazon-kinesis-video-streams-producer-c/build#

waikup83 commented 3 years ago

but this error are for the sample ..

if i dont care and just want the libproducer.so ... i can put it in my project with the header in amazon producer/src/include but when build my project the hader seem to have many error

mips-linux-uclibc-gnu-g++ -c -o build/main.o main.cpp -std=c++11 -I/home/Projet/Kinesis/ -Os -Wall -fmessage-length=0 -fPIC -ffunction-sections -fdata-sections -march=mips32r2 -muclibc -fpermissive -g In file included from /home/Projet/Kinesis/cproducer/Include.h:18:0, from main.cpp:5: /home/Projet/Kinesis/common/Include.h:440:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:441:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:442:5: error: 'PCHAR' does not name a type /home/Projet/Kinesis/common/Include.h:443:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:444:5: error: 'PCHAR' does not name a type /home/Projet/Kinesis/common/Include.h:445:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:446:5: error: 'PCHAR' does not name a type /home/Projet/Kinesis/common/Include.h:447:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:448:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/common/Include.h:458:5: error: 'PCHAR' does not name a type /home/Projet/Kinesis/common/Include.h:459:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:460:5: error: 'PCHAR' does not name a type /home/Projet/Kinesis/common/Include.h:461:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:470:14: error: 'ATOMIC_BOOL' does not name a type /home/Projet/Kinesis/common/Include.h:472:5: error: 'PCHAR' does not name a type /home/Projet/Kinesis/common/Include.h:475:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:476:5: error: 'CHAR' does not name a type /home/Projet/Kinesis/common/Include.h:477:5: error: 'CHAR' does not name a type /home/Projet/Kinesis/common/Include.h:478:5: error: 'CHAR' does not name a type /home/Projet/Kinesis/common/Include.h:479:5: error: 'CHAR' does not name a type /home/Projet/Kinesis/common/Include.h:481:5: error: 'CHAR' does not name a type /home/Projet/Kinesis/common/Include.h:482:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/common/Include.h:483:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/common/Include.h:484:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/common/Include.h:485:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/common/Include.h:486:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/common/Include.h:487:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/common/Include.h:489:5: error: 'PSingleList' does not name a type /home/Projet/Kinesis/common/Include.h:499:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:500:5: error: 'SERVICE_CALL_RESULT' does not name a type /home/Projet/Kinesis/common/Include.h:501:5: error: 'CHAR' does not name a type /home/Projet/Kinesis/common/Include.h:502:5: error: 'PStackQueue' does not name a type /home/Projet/Kinesis/common/Include.h:504:5: error: 'PCHAR' does not name a type /home/Projet/Kinesis/common/Include.h:505:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/common/Include.h:522:16: warning: ISO C++ forbids declaration of 'STATUS' with no type [-fpermissive] /home/Projet/Kinesis/common/Include.h:522:16: error: typedef 'STATUS' is initialized (use decltype instead) /home/Projet/Kinesis/common/Include.h:522:18: error: 'GetCredentialsFunc' was not declared in this scope /home/Projet/Kinesis/common/Include.h:527:5: error: 'GetCredentialsFunc' does not name a type /home/Projet/Kinesis/common/Include.h:553:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:562:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:572:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:588:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:597:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:612:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:627:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:644:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:662:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:672:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:682:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:694:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:703:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:725:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:735:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:744:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:753:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:764:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:776:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:787:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:799:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:809:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:822:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:832:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:841:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:854:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:863:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:872:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:886:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:894:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:909:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/common/Include.h:916:1: error: 'PUBLIC_API' does not name a type In file included from main.cpp:5:0: /home/Projet/Kinesis/cproducer/Include.h:112:16: warning: ISO C++ forbids declaration of 'STATUS' with no type [-fpermissive] /home/Projet/Kinesis/cproducer/Include.h:112:16: error: typedef 'STATUS' is initialized (use decltype instead) /home/Projet/Kinesis/cproducer/Include.h:112:18: error: 'FreePlatformCallbacksFunc' was not declared in this scope /home/Projet/Kinesis/cproducer/Include.h:121:16: warning: ISO C++ forbids declaration of 'STATUS' with no type [-fpermissive] /home/Projet/Kinesis/cproducer/Include.h:121:16: error: typedef 'STATUS' is initialized (use decltype instead) /home/Projet/Kinesis/cproducer/Include.h:121:18: error: 'FreeProducerCallbacksFunc' was not declared in this scope /home/Projet/Kinesis/cproducer/Include.h:130:16: warning: ISO C++ forbids declaration of 'STATUS' with no type [-fpermissive] /home/Projet/Kinesis/cproducer/Include.h:130:16: error: typedef 'STATUS' is initialized (use decltype instead) /home/Projet/Kinesis/cproducer/Include.h:130:18: error: 'FreeStreamCallbacksFunc' was not declared in this scope /home/Projet/Kinesis/cproducer/Include.h:139:16: warning: ISO C++ forbids declaration of 'STATUS' with no type [-fpermissive] /home/Projet/Kinesis/cproducer/Include.h:139:16: error: typedef 'STATUS' is initialized (use decltype instead) /home/Projet/Kinesis/cproducer/Include.h:139:18: error: 'FreeAuthCallbacksFunc' was not declared in this scope /home/Projet/Kinesis/cproducer/Include.h:148:16: warning: ISO C++ forbids declaration of 'STATUS' with no type [-fpermissive] /home/Projet/Kinesis/cproducer/Include.h:148:16: error: typedef 'STATUS' is initialized (use decltype instead) /home/Projet/Kinesis/cproducer/Include.h:148:18: error: 'FreeApiCallbacksFunc' was not declared in this scope /home/Projet/Kinesis/cproducer/Include.h:165:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/cproducer/Include.h:166:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/cproducer/Include.h:167:5: error: 'GetCurrentTimeFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:168:5: error: 'GetRandomNumberFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:169:5: error: 'CreateMutexFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:170:5: error: 'LockMutexFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:171:5: error: 'UnlockMutexFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:172:5: error: 'TryLockMutexFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:173:5: error: 'FreeMutexFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:174:5: error: 'CreateConditionVariableFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:175:5: error: 'SignalConditionVariableFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:176:5: error: 'BroadcastConditionVariableFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:177:5: error: 'WaitConditionVariableFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:178:5: error: 'FreeConditionVariableFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:179:5: error: 'LogPrintFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:180:5: error: 'FreePlatformCallbacksFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:189:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/cproducer/Include.h:190:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/cproducer/Include.h:191:5: error: 'StorageOverflowPressureFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:192:5: error: 'ClientReadyFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:193:5: error: 'ClientShutdownFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:194:5: error: 'FreeProducerCallbacksFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:203:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/cproducer/Include.h:204:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/cproducer/Include.h:205:5: error: 'StreamUnderflowReportFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:206:5: error: 'BufferDurationOverflowPressureFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:207:5: error: 'StreamLatencyPressureFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:208:5: error: 'StreamConnectionStaleFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:209:5: error: 'DroppedFrameReportFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:210:5: error: 'DroppedFragmentReportFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:211:5: error: 'StreamErrorReportFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:212:5: error: 'FragmentAckReceivedFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:213:5: error: 'StreamDataAvailableFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:214:5: error: 'StreamReadyFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:215:5: error: 'StreamClosedFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:216:5: error: 'StreamShutdownFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:219:5: error: 'FreeStreamCallbacksFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:228:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/cproducer/Include.h:229:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/cproducer/Include.h:230:5: error: 'GetSecurityTokenFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:231:5: error: 'GetDeviceCertificateFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:232:5: error: 'DeviceCertToTokenFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:233:5: error: 'GetDeviceFingerprintFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:234:5: error: 'GetStreamingTokenFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:237:5: error: 'FreeAuthCallbacksFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:246:5: error: 'UINT32' does not name a type /home/Projet/Kinesis/cproducer/Include.h:247:5: error: 'UINT64' does not name a type /home/Projet/Kinesis/cproducer/Include.h:248:5: error: 'CreateStreamFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:249:5: error: 'DescribeStreamFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:250:5: error: 'GetStreamingEndpointFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:251:5: error: 'PutStreamFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:252:5: error: 'TagResourceFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:253:5: error: 'CreateDeviceFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:254:5: error: 'FreeApiCallbacksFunc' does not name a type /home/Projet/Kinesis/cproducer/Include.h:323:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:344:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:361:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:378:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:390:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:402:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:414:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:426:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:438:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:450:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:465:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:480:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:495:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:510:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:522:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:531:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:543:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:552:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:562:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:574:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:594:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:603:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:617:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:626:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:643:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:652:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:668:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:679:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:691:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:700:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:713:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:722:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:739:1: error: 'PUBLIC_API' does not name a type /home/Projet/Kinesis/cproducer/Include.h:753:1: error: 'PUBLIC_API' does not name a type make: *** [Makefile:33: build/main.o] Error 1

hassanctech commented 3 years ago

Are you able to build libproducerc.so ? What I see is you have a problem linking against it but you are able to build it now, is that correct?

Also can you please put the logs in a text file and link to it, putting that large amount of text directly in the comment it's hard to see context because you have to scroll so much up and down.

waikup83 commented 3 years ago

yes the producer builded but the header found in src directory when compiling have problem to find name type Nouveau document texte.txt

hassanctech commented 3 years ago

I see you closed the issue, so were you able to get unblocked to use the producer SDK?

waikup83 commented 3 years ago

not really. we just decide to try to stream from a lcoud instead of directly of cam

waikup83 commented 3 years ago

.. so now i try to figure out how can i stream to kinesis directly with a char buffer and not by a file