Open sushantpaudyal opened 7 months ago
@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"
Closing assuming resolved, feel free to re-open if this is still an issue.
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 ,
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?
I'm getting this exact same error. Running on a Raspberry Pi Model 3 with Raspberry OS Lite
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)
Same error on Debian GNU/Linux 12 (bookworm) but work fine on Debian GNU/Linux 10 (buster). Is anyone have solution for this? The openssl version on buster is 1.1 which is working fine but the openssl version 3.0.15 on bookworm just occurs the same error here.
[ 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:94 (build_dependency) -- Configuring incomplete, errors occurred!
Solution Found:
To build the example successfully, use the following command:
cmake -DBUILD_GSTREAMER_PLUGIN=TRUE -DBUILD_DEPENDENCIES=OFF -DOPENSSL_USE_STATIC_LIBS=FALSE -DOPENSSL_ROOT_DIR=/usr -DOPENSSL_INCLUDE_DIR=/usr/include -DOPENSSL_LIBRARIES=/usr/lib/arm-linux-gnueabihf/libcrypto.so -DOPENSSL_SSL_LIBRARY=/usr/lib/arm-linux-gnueabihf/libssl.so ..
Explanation: In this command, replace the library paths as needed for your system. This approach skips building all dependencies from source and instead uses the existing system libraries. My OpenSSL version is 3.0.15, and everything worked well when using the built kvs_gstreamer_sample to upload an RTSP stream.
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
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?