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

cargo build doesn't work because it requires gstreamer version 1.18 #66

Open
David-Amado opened this issue Aug 18, 2021 · 7 comments
Open

Comments

@David-Amado
Copy link

David-Amado commented Aug 18, 2021

Is it really necessary to have gstrearmer version 1.18?
Can't it be forced to use gstreamer version 1.16?

@samuvlad
Copy link
Contributor

this problem comes from commit 2345c45. With this commit you must have Gstreamer version 1.18 installed. You can see the changes here #55

@RobertoAlda
Copy link

RobertoAlda commented Sep 30, 2021

How can i upgrade gstreamer to 1.18?

@samuvlad
Copy link
Contributor

It depends on the OS or Linux distribution.

For example, in Ubuntu 21.04 running in a console;
apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
already installs version 1.8 by default.

However, in Ubuntu 20.04 that same command installs the previous version (the repositories are not updated)

if you want version 1.8 in Ubuntu 20.04 it is necessary to compile the source code

@RobertoAlda
Copy link

I have Ubuntu 20.04, so i tried to compile gstreamer.
Meson build succesfully, but ninja gives me this error:

../subprojects/libxml2-2.9.7/xmlschemas.c: In function ‘xmlSchemaSetValidStructuredErrors’:

../subprojects/libxml2-2.9.7/xmlschemas.c:27818:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentatio
]

27818 |     if (ctxt == NULL)
      |     ^~
../subprojects/libxml2-2.9.7/xmlschemas.c:27820:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’

27820 |  ctxt->serror = serror;
      |  ^~~~

[3549/7880] Compiling C object subprojects/sqlite-amalgamation-3340100/libsqlite3.so.0.8.6.p/sqlite3.c.o
ninja: build stopped: subcommand failed.

I have already installed:
meson 0.59.2
ninja 1.10.0
flex 2.6.4
bison (GNU Bison) 3.5.1
sqlite 3.31.1

Any help would be appreciated, thank you

@samuvlad
Copy link
Contributor

samuvlad commented Oct 8, 2021

Yes, I also have the same problem :(

@sdroege
Copy link
Contributor

sdroege commented Oct 8, 2021

Check

[features]
default = ["interlaced-fields", "reference-timestamps", "sink"]
interlaced-fields = ["gst/v1_16", "gst-video/v1_16"]
reference-timestamps = ["gst/v1_14"]
sink = ["gst/v1_18", "gst-base/v1_18"]
advanced-sdk = []

If you have an old GStreamer version you can build with

$ cargo build --no-default-features --features whatever_you_want_to_enable_of_the_above_features

@sdroege
Copy link
Contributor

sdroege commented Oct 8, 2021

For the GStreamer build problem, please report with details at https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/new

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

No branches or pull requests

4 participants