Package Details: mediastreamer 5.4.119-1

Git Clone URL: https://aur.archlinux.org/mediastreamer.git (read-only, click to copy)
Package Base: mediastreamer
Description: A library written in C that allows you to create and run audio and video streams
Upstream URL: https://gitlab.linphone.org/
Licenses: AGPL-3.0-only
Submitter: arojas
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 1
Popularity: 0.000000
First Submitted: 2022-11-05 08:54 (UTC)
Last Updated: 2026-06-08 16:02 (UTC)

Latest Comments

1 2 Next › Last »

dreieck commented on 2026-06-06 17:35 (UTC) (edited on 2026-06-06 17:36 (UTC) by dreieck)

Adding -DENABLE_QRCODE=OFF to the cmake call works around the build error zxing_qrcode.cpp:127:17: error: ‘DecodeHints’ was not declared in this scope, but of course would disable the QR code feature. (And probably would make the dependency zxing-cpp obsolete.)

dreieck commented on 2026-06-06 16:25 (UTC)

After fixing this (comment from 2026-06-06, 16:21 UTC), build() fails with

[  2%] Building CXX object src/CMakeFiles/mediastreamer2.dir/videofilters/zxing_qrcode.cpp.o
/var/cache/makepkg/build/mediastreamer/src/mediastreamer2-5.4.50/src/videofilters/zxing_qrcode.cpp: In function ‘void read_qrcode(MSFilter*)’:
/var/cache/makepkg/build/mediastreamer/src/mediastreamer2-5.4.50/src/videofilters/zxing_qrcode.cpp:127:17: error: ‘DecodeHints’ was not declared in this scope
  127 |                 DecodeHints hints;
      |                 ^~~~~~~~~~~
/var/cache/makepkg/build/mediastreamer/src/mediastreamer2-5.4.50/src/videofilters/zxing_qrcode.cpp:128:17: error: ‘hints’ was not declared in this scope
  128 |                 hints.setFormats(BarcodeFormat::QRCode); // Search optimization : Only QRCode symbols are used.
      |                 ^~~~~
/var/cache/makepkg/build/mediastreamer/src/mediastreamer2-5.4.50/src/videofilters/zxing_qrcode.cpp:130:17: error: ‘Results’ was not declared in this scope
  130 |                 Results results = ReadBarcodes(qrc->image, hints);
      |                 ^~~~~~~
/var/cache/makepkg/build/mediastreamer/src/mediastreamer2-5.4.50/src/videofilters/zxing_qrcode.cpp:131:40: error: ‘results’ was not declared in this scope
  131 |                 for (size_t i = 0; i < results.size(); ++i) {
      |                                        ^~~~~~~
make[2]: *** [src/CMakeFiles/mediastreamer2.dir/build.make:1787: src/CMakeFiles/mediastreamer2.dir/videofilters/zxing_qrcode.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:499: src/CMakeFiles/mediastreamer2.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().

Regards!

dreieck commented on 2026-06-06 16:21 (UTC) (edited on 2026-06-06 17:22 (UTC) by dreieck)

You need to put fix-build-ffmpeg5.patch in the source array, otherwise it won't be found if $BUILDDIR is set in e.g. /etc/makepkg.conf:

==> Starting prepare()...
/var/cache/yay/mediastreamer/PKGBUILD: line 21: ../../fix-build-ffmpeg5.patch: No such file or directory
==> ERROR: A failure occurred in prepare().

Also, you should never leave $srcdir while building. ../../fix-build-ffmpeg5.patch is not well defined. Use "${srcdir}/fix-build-ffmpeg5.patch" instead.
Build does not necessarily take place in a subdirectory of where the PKGBUILD is

Patch to PKGBUILD:

--- PKGBUILD.orig   2026-06-06 18:16:28.825297757 +0200
+++ PKGBUILD    2026-06-06 18:20:07.489138661 +0200
@@ -15,4 +15,7 @@
 makedepends=(cmake python bcunit doxygen)
-source=(https://gitlab.linphone.org/BC/public/${pkgname}2/-/archive/$pkgver/${pkgname}2-$pkgver.tar.bz2)
-sha256sums=('819f0160f2344660ff337537dcbe0b3b5a6c7628be0ed2f6684edd9b6ce332e5')
+source=(https://gitlab.linphone.org/BC/public/${pkgname}2/-/archive/$pkgver/${pkgname}2-$pkgver.tar.bz2
+        fix-build-ffmpeg5.patch
+)
+sha256sums=('819f0160f2344660ff337537dcbe0b3b5a6c7628be0ed2f6684edd9b6ce332e5'
+            'a069ca2db409ec60010b10357a9f081809f521a9c0306f89bd49bb16121acfc1')

@@ -20,3 +23,3 @@
     cd "${pkgname}2-${pkgver}"
-    patch -p1 < ../../fix-build-ffmpeg5.patch
+    patch -p1 < "${srcdir}/fix-build-ffmpeg5.patch"
 }

Regards and thanks for maintaining!

thrasibule commented on 2024-01-07 11:57 (UTC)

It builds, you need to remove ffmpeg temporarily. (You can install it back after building mediastreamer). I need to fix the CMake file to not look for ffmpeg first.

jghodd commented on 2024-01-07 01:54 (UTC)

So...apparently nobody cares that this won't build. Why even have it in the AUR then?

jghodd commented on 2024-01-04 05:04 (UTC)

Getting the same build error as @dreieck - conflicting types for ‘avcodec_alloc_context3’; have ‘AVCodecContext (AVCodec )’

dreieck commented on 2023-12-22 16:16 (UTC)

Build fails for me with mediastreamer2-5.3.1/src/utils/ffmpeg-priv.h:121:17: error: conflicting types for ‘avcodec_alloc_context3’; have ‘AVCodecContext *(AVCodec *)’:

[ 55%] Building C object src/CMakeFiles/mediastreamer2.dir/voip/msvideo.c.o
In file included from /tmp/makepkg/build/mediastreamer/src/mediastreamer2-5.3.1/src/voip/msvideo.c:25:
/tmp/makepkg/build/mediastreamer/src/mediastreamer2-5.3.1/src/utils/ffmpeg-priv.h:121:17: error: conflicting types for ‘avcodec_alloc_context3’; have ‘AVCodecContext *(AVCodec *)’
  121 | AVCodecContext *avcodec_alloc_context3(AVCodec *codec);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/makepkg/build/mediastreamer/src/mediastreamer2-5.3.1/src/utils/ffmpeg-priv.h:51:
/usr/include/libavcodec/avcodec.h:2306:17: note: previous declaration of ‘avcodec_alloc_context3’ with type ‘AVCodecContext *(const AVCodec *)’
 2306 | AVCodecContext *avcodec_alloc_context3(const AVCodec *codec);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [src/CMakeFiles/mediastreamer2.dir/build.make:1266: src/CMakeFiles/mediastreamer2.dir/voip/msvideo.c.o] Error 1

(pkgver=5.3.1)

Regards!

dreieck commented on 2023-12-22 14:20 (UTC)

Can yoi please add provides=("mediastreamer2=${pkgver}"), conflicts=("mediastreamer2")?

Upstream name is still "mediastreamer2" and there are packages that depend on it.

Regards and thanks for maintaining!

schmunk commented on 2022-12-13 16:16 (UTC)

I had bctoolbox-git 5.2.0.alpha.r0.gd92d04f-1.

A rebuild (via pamac UI) said it would be downgraded to bctoolbox-git 4.5.0.alpha.r54.gab40b02-1.

But actually it was updated to bctoolbox-git 5.3.0.alpha.r1.gabd8da3-1.

Anyways now mediastreamer builds. Thank you.

thrasibule commented on 2022-12-13 15:51 (UTC)

Which version of bctoolbox do you have? You need to rebuild it.