amazon-kinesis-video-streams-producer-sdk-cpp icon indicating copy to clipboard operation
amazon-kinesis-video-streams-producer-sdk-cpp copied to clipboard

I am getting this error while running: cmake -DBUILD_GSTREAMER_PLUGIN=TRUE ..

Open sushantpaudyal opened this issue 10 months ago • 4 comments

I am getting this error while running: cmake -DBUILD_GSTREAMER_PLUGIN=TRUE ..

[ 66%] Performing build step for 'project_libopenssl' In file included from apps/app_rand.c:10: In file included from apps/apps.h:13: In file included from ./e_os.h:16: In file included from include/openssl/e_os2.h:243: /Library/Developer/CommandLineTools/usr/lib/clang/14.0.3/include/inttypes.h:21:15: fatal error: 'inttypes.h' file not found #include_next <inttypes.h> ^~~~~~~~~~~~ 1 error generated. make[4]: *** [apps/app_rand.o] Error 1 make[3]: *** [all] Error 2 make[2]: *** [build/src/project_libopenssl-stamp/project_libopenssl-build] Error 2 make[1]: *** [CMakeFiles/project_libopenssl.dir/all] Error 2 make: *** [all] Error 2 CMake Error at dependency/libkvscproducer/kvscproducer-src/CMake/Utilities.cmake:93 (message): CMake step for libopenssl failed: 2 Call Stack (most recent call first): dependency/libkvscproducer/kvscproducer-src/CMakeLists.txt:74 (build_dependency)

-- Configuring incomplete, errors occurred!

I tried adding include_directories(/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/include) in the CMakeLists.txt, but didn't work. I am new to gstreamer, I was just following the steps and got this issue. Can you help me with this?

sushantpaudyal avatar Apr 24 '24 09:04 sushantpaudyal

@sushantpaudyal ,

Thank you for the report. Could you try running:

export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"

disa6302 avatar Apr 25 '24 19:04 disa6302

Closing assuming resolved, feel free to re-open if this is still an issue.

stefankiesz avatar May 06 '24 06:05 stefankiesz

I am getting the same error. I already tried @disa6302's comment, but it didn't work for me. I am using a Rasberry Pi Model 2 with Rasberry OS.

[ 66%] Performing build step for 'project_libopenssl' cc1: error: '-mfloat-abi=hard': selected architecture lacks an FPU cc1: note: unrecognized command-line option '-Wno-nullability-completeness' may have been intended to silence earlier diagnostics make[4]: *** [Makefile:707: apps/app_rand.o] Error 1 make[3]: *** [Makefile:174: all] Error 2 gmake[2]: *** [CMakeFiles/project_libopenssl.dir/build.make:87: build/src/project_libopenssl-stamp/project_libopenssl-build] Error 2 gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/project_libopenssl.dir/all] Error 2 gmake: *** [Makefile:91: all] Error 2 CMake Error at dependency/libkvscproducer/kvscproducer-src/CMake/Utilities.cmake:93 (message): CMake step for libopenssl failed: 2 Call Stack (most recent call first): dependency/libkvscproducer/kvscproducer-src/CMakeLists.txt:74 (build_dependency)

dp-smartparkpro avatar May 20 '24 21:05 dp-smartparkpro

@dp-smartparkpro ,

We have not seen this error and we do not set no-nullability-completeness or float-abi=hard either in our build scripts. Are there are any custom cmake changes you are making?

disa6302 avatar Jun 17 '24 17:06 disa6302