Using Gstreamer as a subproject of another big project.
Describe your issue
When running meson build in the big project, gst_pro = subproject('gstreamer')
returns the error:
subprojects/gstreamer/meson.build:155:4: ERROR: Recursive include of subprojects: gstreamer => gstreamer.
Expected Behavior
to compile the code
Observed Behavior
Setup
- Operating System: Linux
- Device: Computer
- GStreamer Version: GStreamer 1.22
-
Command line:
meson build
(using the big project`s meson)
Steps to reproduce the bug
Use Gstreamer as a subproject of another big project.
The big Project`s meson contains:
gst_dep = subproject('gstreamer')
because the code of the original gstreamer project contains another subprojects folder that includes another gstreamer directory I am getting the next error:
subprojects/gstreamer/meson.build:155:4: ERROR: Recursive include of subprojects: gstreamer => gstreamer.
The directories structure:
-BigProject
-meson.build
-subprojects
-gstreamer #The original gstreamer code folder
-meson.build
-subprojects
-gstreamer
-gst-plugins-good
-gst-plugins-bad
etc.
How reproducible is the bug?
Always
Screenshots if relevant
Solutions you have tried
Related non-duplicate issues
And another questions.
- how can I get the gst_dep from the
gst_pro = subproject('gstreamer')
. - How should I include the gstreamer header files in my big project files.
For example: if I want to include
#include <gst/app/gstappsrc.h>
, how should I do that after building and compiling the gstreamer from source with the directories structure that I gave you?
thanks!