Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sushantpaudyal opened this issue Apr 24, 2024 · 7 comments
Labels
awaiting-response Waiting for reply from requester. question

Comments

@sushantpaudyal
Copy link

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 sushantpaudyal changed the title [QUESTION] I am getting this error while running: cmake -DBUILD_GSTREAMER_PLUGIN=TRUE .. Apr 24, 2024
@disa6302
Copy link
Contributor

@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 disa6302 added the awaiting-response Waiting for reply from requester. label Apr 25, 2024
@stefankiesz
Copy link
Contributor

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

@dp-smartparkpro
Copy link

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)

@sirknightj sirknightj reopened this May 20, 2024
@disa6302
Copy link
Contributor

@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?

@StevenMcGown
Copy link

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)

@KannadukiAoi
Copy link

KannadukiAoi commented Nov 15, 2024

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!

@KannadukiAoi
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-response Waiting for reply from requester. question
Projects
None yet
Development

No branches or pull requests

7 participants