@zepar Thanks, the patch also worked for me.
also adding the compiler flag to the meson options fixed the other error for me -D c_args="-Wno-error=incompatible-pointer-types"
Git Clone URL: | https://aur.archlinux.org/lib32-gst-bad-ugly.git (read-only, click to copy) |
---|---|
Package Base: | lib32-gst-bad-ugly |
Description: | Multimedia graph framework (32-bit) - ugly plugins |
Upstream URL: | https://gstreamer.freedesktop.org/ |
Licenses: | LGPL |
Replaces: | lib32-gst-plugins-ugly-latest |
Submitter: | ahmubashshir |
Maintainer: | ahmubashshir (MarsSeed) |
Last Packager: | ahmubashshir |
Votes: | 46 |
Popularity: | 0.020149 |
First Submitted: | 2023-01-07 17:47 (UTC) |
Last Updated: | 2024-10-28 05:13 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 .. 21 Next › Last »
@zepar Thanks, the patch also worked for me.
also adding the compiler flag to the meson options fixed the other error for me -D c_args="-Wno-error=incompatible-pointer-types"
@NeWolf to bypass that error i added this to the PKGBUILD:
export CFLAGS="${CFLAGS} -Wno-error=incompatible-pointer-types"
I'm now using the patch below and seems that line is no longer nedded:
package fails to build with this error
[1092/1461] Compiling C object subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavprotocol.c.o
FAILED: subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavprotocol.c.o
gcc -m32 -Isubprojects/gst-libav/ext/libav/libgstlibav.so.p -Isubprojects/gst-libav/ext/libav -I../gstreamer/subprojects/gst-libav/ext/libav -Isubprojects/gst-libav -I../gstreamer/subprojects/gst-libav -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib32/glib-2.0/include -I/usr/include/orc-0.4 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -fvisibility=hidden -fno-strict-aliasing -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wredundant-decls -Wundef -Wwrite-strings -Wformat -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Waggregate-return -Wvla -Wpointer-arith -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -pthread -DHAVE_CONFIG_H -MD -MQ subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavprotocol.c.o -MF subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavprotocol.c.o.d -o subprojects/gst-libav/ext/libav/libgstlibav.so.p/gstavprotocol.c.o -c ../gstreamer/subprojects/gst-libav/ext/libav/gstavprotocol.c
../gstreamer/subprojects/gst-libav/ext/libav/gstavprotocol.c: In function ‘gst_ffmpegdata_open’:
../gstreamer/subprojects/gst-libav/ext/libav/gstavprotocol.c:272:28: error: passing argument 6 of ‘avio_alloc_context’ from incompatible pointer type [-Wincompatible-pointer-types]
272 | gst_ffmpegdata_read, gst_ffmpegdata_write, gst_ffmpegdata_seek);
| ^~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void *, uint8_t *, int) {aka int (*)(void *, unsigned char *, int)}
In file included from /usr/include/libavformat/avformat.h:319,
from ../gstreamer/subprojects/gst-libav/ext/libav/gstavprotocol.c:27:
/usr/include/libavformat/avio.h:404:25: note: expected ‘int (*)(void *, const uint8_t *, int)’ {aka ‘int (*)(void *, const unsigned char *, int)’} but argument is of type ‘int (*)(void *, uint8_t *, int)’ {aka ‘int (*)(void *, unsigned char *, int)’}
404 | int (*write_packet)(void *opaque, const uint8_t *buf, int buf_size),
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1101/1461] Compiling C object subprojects/gst-plugin...tests/check/elements_dash_mpd.p/elements_dash_mpd.c.o
In file included from ../gstreamer/subprojects/gst-plugins-bad/tests/check/elements/dash_mpd.c:52:
../gstreamer/subprojects/gst-plugins-bad/tests/check/elements/dash_mpd.c:6012:17: warning: ‘dash_mpdparser_xlink_period’ defined but not used [-Wunused-function]
6012 | GST_START_TEST (dash_mpdparser_xlink_period)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gstreamer-1.0/gst/check/gstcheck.h:240:13: note: in definition of macro ‘GST_START_TEST’
240 | static void __testname (int G_GNUC_UNUSED __i__) \
| ^~~~~~~~~~
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
I was able to build using version 1.24.5 and applying the patch that is on github link that Jaska provided (https://github.com/OpenMandrivaAssociation/gst-libav/blob/master/6505.diff)
lib32-gst-plugins-bad fails to build with:
../gstreamer/subprojects/gst-libav/ext/libav/gstavdemux.c:1403:16: error: ‘AVInputFormat’ has no member named ‘read_probe’ 1403 | if (in_plugin->read_probe && |
related: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3378
@rodrigo21 Thank you!
@mozo Press q.
Good day, I have a question:
When I reach this stage, what I should do? Enter doesn't work for we're already at the end of file and Ctrl+C aborts the installation process:
Patches not updated for 1.24.0, rollback to 1.22.10 until then
diff --git a/PKGBUILD b/PKGBUILD
index 12a693d..01557f9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,7 +15,7 @@ pkgname=(lib32-gst-plugins-ugly)
)
readonly LIB32GST_DISABLE_{AV,BAD}
-pkgver=1.24.0
+pkgver=1.22.10
pkgrel=1
pkgdesc="Multimedia graph framework (32-bit)"
url="https://gstreamer.freedesktop.org/"
Or checkout commit 7c47df747f09a06237832e08a63e5103ed1ef551
This package is broken now
Pinned Comments
ahmubashshir commented on 2023-11-18 14:43 (UTC) (edited on 2023-11-18 14:44 (UTC) by ahmubashshir)
If you have any improvements/suggestions for the pkgbuilds I maintain, please create an issue/pr on github.com/ahmubashshir/pkgbuilds or send the patches to ahmubashshir+pkgbuilds@gmail.com
p.s. sorry for being late, I was busy with my mid and part-time job last three months... it was truly chaotic...