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

[BUG] Gst plugin kvssink is built as static library #1178

Open
mateuszboryn opened this issue May 18, 2024 · 0 comments
Open

[BUG] Gst plugin kvssink is built as static library #1178

mateuszboryn opened this issue May 18, 2024 · 0 comments
Labels

Comments

@mateuszboryn
Copy link

Logging

cmake .. -DBUILD_GSTREAMER_PLUGIN=ON -DBUILD_STATIC=ON
...
make
...
ls *libgst*
libgstkvssink.a

Describe the bug
I would like to build gst plugin, that is a shared library (libgstkvssink.so) and could be used by gst-launch-1.0 command, but the producer, and other open-source located deps should be statically linked to that libgstkvssink.so. With current setup I can't find it in the options.
Current implementation makes kvssink GST component difficult to package/deploy.

To Reproduce
Steps to reproduce the behavior:

For now I can see two options to build kvssink, both unsatisfactory.

cmake .. -DBUILD_GSTREAMER_PLUGIN=ON -DBUILD_STATIC=ON -DBUILD_DEPENDENCIES=OFF
...
make
...
ls *libgst*   # here, we can see static lib that is useless for gst-launch-1.0 command
libgstkvssink.a
cmake .. -DBUILD_GSTREAMER_PLUGIN=ON -DBUILD_STATIC=OFF -DBUILD_DEPENDENCIES=OFF
...
make
...
ldd libgstkvssink.so | grep $(realpath ..)    # here, we can see shared lib, but linkage to dependencies is hardcoded. It makes kvssink difficult to package/deploy.
        libKinesisVideoProducer.so => /home/laptop/pro/amazon-kinesis-video-streams-producer-sdk-cpp/build_dynamic_default/libKinesisVideoProducer.so (0x00007dc51e172000)
        libcproducer.so => /home/laptop/pro/amazon-kinesis-video-streams-producer-sdk-cpp/build_dynamic_default/dependency/libkvscproducer/kvscproducer-src/libcproducer.so (0x00007dc51e0e8000)

Expected behavior
In libgstkvssink.so I don't want dependencies to libKinesisVideoProducer.so or libcproducer.so.

cmake .. -DBUILD_GSTREAMER_PLUGIN=ON -DBUILD_STATIC=ON
...
make
...
ls *libgst*
libgstkvssink.so

then issuing command:

ldd libgstkvssink.so | grep $(realpath ..)

should output nothing.

SDK version number
3.4.1

Open source building
default setup of dependencies (both system-installed libs, and libs built by cmake configure)

Screenshots
none

Platform (please complete the following information):

  • OS: Linux, but maybe others
  • Processor: any
  • Version Ubuntu 22.04

Additional context
none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant