How to bundle libraries in my manifest.json?

Hi,
I successfully created my first flatpak and it works well but how can I tell to flatpak to add libraries into my sandbox?

I need the following libraries:

  • libayatana-appindicator
  • gstreamer
  • nvidia or amd driver

How can I do this? I see no real documentation on how to do it, I read something on the internet but I’m still not able to do it effectively.

Thanks to everyone who would like to help :slight_smile:

Your app should either use a library from a runtime or a library that you build and bundle yourself.
Some of the libraries you need are pretty common and you can reuse these:

GStreamer search across Flathub manifests

Graphics drivers are in the runtime, you do not have to do anything.

GStreamer is also in the runtime, unless you need specific/newer versions or specific build options, you don’t have to do anything.

@bbhtt do you know if the bundled GStreamer includes the
NVCODEC plugin?

https://gstreamer.freedesktop.org/documentation/nvcodec/cudadownload.html?gi-language=c

My standard GStreamer pipeline:
pipewiresrc fd={1} path={2} ! videorate ! videoscale ! videoconvert
is working well.

My CUDA one not:
pipewiresrc fd={1} path={2} ! videorate ! cudaupload ! cudascale ! cudaconvert ! cudadownload

Yes nvcodec is also in the runtime.