Skip to content

nachogarglez/GStreamerCppHelpers

Repository files navigation

workflow

GStreamerCppHelpers

Headers to simplify GStreamer usage from C++.

For Whom Is This Useful?

Those who need to use GStreamer from C++, but do not want to use some complete C++ bindings for GStreamer.

These headers do not have external dependencies (other than GStreamer itself) and do not use introspection files neither.

Currently available

  • GstPtr <>

    A specialized SmartPointer for GStreamer objects.

How to build

This library is header-only, therefore you only need to build it to run the tests.

  • Pre-requisites:
    • clang-tidy >= 10
    • Python >= 3.6
cmake -Bbuild -DCONAN_BUILD_MISSING=ON
cmake --build build

How to use as a Conan dependency

You can add this header as a Conan dependency in a few steps:

  • Export the recipe
cd conan_recipe
conan export gstreamercpphelpers/0.0.2@
  • Include the dependency in your conanfile.txt or equivalent
[requires]
   gstreamercpphelpers/0.0.2
  • Use in your CMakeLists.txt
find_package(gstreamercpphelpers)
target_link_libraries(${PROJECT_NAME} gstreamercpphelpers::gstreamercpphelpers)