You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using gstreamer from vcpkg with cmake, no pipeline can be created because gstreamer is unable to construct any element. Example code from gstreamer's basic tutorial doesn't work, but it does work with the system installation of gstreamer (I'm on Linux) My guess is that it can't find any plugins whatsoever but I'm not very knowledgeable about gstreamer either
Environment
OS: Arch Linux
Compiler: GCC 13.2.1 20230801
To Reproduce
Setup a project with vcpkg cloned into a subdirectory and bootstrapped there
$ GST_DEBUG=2 ./test
0:00:00.000639124 550754 0x568d6a9236d0 WARN GST_REGISTRY gstregistrybinary.c:551:gst_registry_binary_check_magic: Binary registry magic version is different : 1.3.0 != 1.23.90
0:00:00.001522758 550754 0x568d6a9236d0 WARN GST_ELEMENT_FACTORY gstelementfactory.c:765:gst_element_factory_make_valist: no such element factory "videotestsrc"!
0:00:00.001529478 550754 0x568d6a9236d0 WARN GST_ELEMENT_FACTORY gstelementfactory.c:765:gst_element_factory_make_valist: no such element factory "autovideosink"!
Not all elements could be created.
The text was updated successfully, but these errors were encountered:
GOKOP
changed the title
Gstreamer example code doesn't work with vcpkg
Gstreamer example code doesn't work with vcpkg Gstreamer; can't create any element
Apr 29, 2024
Describe the bug
When using gstreamer from vcpkg with cmake, no pipeline can be created because gstreamer is unable to construct any element. Example code from gstreamer's basic tutorial doesn't work, but it does work with the system installation of gstreamer (I'm on Linux) My guess is that it can't find any plugins whatsoever but I'm not very knowledgeable about gstreamer either
Environment
To Reproduce
Setup a project with vcpkg cloned into a subdirectory and bootstrapped there
CMakeLists.txt:
vcpkg.json:
main.c: any code from gstreamer's basic tutorials
Run cmake with appropriately set
-DCMAKE_TOOLCHAIN_FILE
, obviouslyExpected behavior
The code should work.
Failure logs
Obviously these are logs from gstreamer as there aren't any visible errors from vcpkg (I wouldn't be able to compile the program otherwise)
Output from the hello world example:
Output from the manual hello world example:
The text was updated successfully, but these errors were encountered: