gst-plugin-ndi icon indicating copy to clipboard operation
gst-plugin-ndi copied to clipboard

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

Open David-Amado opened this issue 3 years ago • 7 comments

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

David-Amado avatar Aug 18 '21 10:08 David-Amado

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

samuvlad avatar Aug 20 '21 08:08 samuvlad

How can i upgrade gstreamer to 1.18?

RobertoAlda avatar Sep 30 '21 16:09 RobertoAlda

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

samuvlad avatar Sep 30 '21 16:09 samuvlad

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

RobertoAlda avatar Oct 01 '21 09:10 RobertoAlda

Yes, I also have the same problem :(

samuvlad avatar Oct 08 '21 07:10 samuvlad

Check https://github.com/teltek/gst-plugin-ndi/blob/cdfa63f341f971fb848ff8aa649f116e3812762c/Cargo.toml#L23-L28

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 avatar Oct 08 '21 07:10 sdroege

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

sdroege avatar Oct 08 '21 07:10 sdroege