Hey @Lucki,
for some inscrutable reason, it builds fine if you add the mainline ffmpeg to the chroot (that's ffmpeg version 7, which the package will not use).
I will add it to the pkgbuild, thank you.
Git Clone URL: | https://aur.archlinux.org/kodi-addon-inputstream-ffmpegdirect.git (read-only, click to copy) |
---|---|
Package Base: | kodi-addon-inputstream-ffmpegdirect |
Description: | Inputstream ffmpegdirect kodi plugin |
Upstream URL: | https://github.com/xbmc/inputstream.ffmpegdirect |
Keywords: | addon arm AUR ffmpeg kodi |
Licenses: | GPL |
Groups: | kodi |
Provides: | kodi-addon-inputstream-ffmpegdirect |
Submitter: | ivanich |
Maintainer: | wast3 |
Last Packager: | wast3 |
Votes: | 9 |
Popularity: | 0.57 |
First Submitted: | 2021-02-21 20:51 (UTC) |
Last Updated: | 2025-09-09 21:32 (UTC) |
Hey @Lucki,
for some inscrutable reason, it builds fine if you add the mainline ffmpeg to the chroot (that's ffmpeg version 7, which the package will not use).
I will add it to the pkgbuild, thank you.
I get the following error building this in a clean chroot:
[…]
[ 50%] Building CXX object CMakeFiles/inputstream.ffmpegdirect.dir/src/stream/CurlInput.cpp.o
In file included from /build/kodi-addon-inputstream-ffmpegdirect/src/inputstream.ffmpegdirect-21.3.8-Omega/src/stream/FFmpegLog.cpp:8:
/build/kodi-addon-inputstream-ffmpegdirect/src/inputstream.ffmpegdirect-21.3.8-Omega/src/stream/FFmpegLog.h:14:10: fatal error: libavcodec/avcodec.h: No such file or directory
14 | #include <libavcodec/avcodec.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/inputstream.ffmpegdirect.dir/build.make:121: CMakeFiles/inputstream.ffmpegdirect.dir/src/stream/FFmpegLog.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /build/kodi-addon-inputstream-ffmpegdirect/src/inputstream.ffmpegdirect-21.3.8-Omega/src/stream/FFmpegStream.h:13,
from /build/kodi-addon-inputstream-ffmpegdirect/src/inputstream.ffmpegdirect-21.3.8-Omega/src/stream/FFmpegStream.cpp:8:
/build/kodi-addon-inputstream-ffmpegdirect/src/inputstream.ffmpegdirect-21.3.8-Omega/src/stream/DemuxStream.h:24:10: fatal error: libavcodec/avcodec.h: No such file or directory
24 | #include <libavcodec/avcodec.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/inputstream.ffmpegdirect.dir/build.make:135: CMakeFiles/inputstream.ffmpegdirect.dir/src/stream/FFmpegStream.cpp.o] Error 1
In file included from /build/kodi-addon-inputstream-ffmpegdirect/src/inputstream.ffmpegdirect-21.3.8-Omega/src/stream/DemuxStream.cpp:8:
/build/kodi-addon-inputstream-ffmpegdirect/src/inputstream.ffmpegdirect-21.3.8-Omega/src/stream/DemuxStream.h:24:10: fatal error: libavcodec/avcodec.h: No such file or directory
24 | #include <libavcodec/avcodec.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/inputstream.ffmpegdirect.dir/build.make:93: CMakeFiles/inputstream.ffmpegdirect.dir/src/stream/DemuxStream.cpp.o] Error 1
In file included from /build/kodi-addon-inputstream-ffmpegdirect/src/inputstream.ffmpegdirect-21.3.8-Omega/src/stream/FFmpegStream.h:13,
from /build/kodi-addon-inputstream-ffmpegdirect/src/inputstream.ffmpegdirect-21.3.8-Omega/src/stream/FFmpegCatchupStream.h:10,
from /build/kodi-addon-inputstream-ffmpegdirect/src/inputstream.ffmpegdirect-21.3.8-Omega/src/stream/FFmpegCatchupStream.cpp:8:
/build/kodi-addon-inputstream-ffmpegdirect/src/inputstream.ffmpegdirect-21.3.8-Omega/src/stream/DemuxStream.h:24:10: fatal error: libavcodec/avcodec.h: No such file or directory
24 | #include <libavcodec/avcodec.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /build/kodi-addon-inputstream-ffmpegdirect/src/inputstream.ffmpegdirect-21.3.8-Omega/src/stream/FFmpegStream.h:13,
from /build/kodi-addon-inputstream-ffmpegdirect/src/inputstream.ffmpegdirect-21.3.8-Omega/src/StreamManager.h:10,
from /build/kodi-addon-inputstream-ffmpegdirect/src/inputstream.ffmpegdirect-21.3.8-Omega/src/StreamManager.cpp:8:
/build/kodi-addon-inputstream-ffmpegdirect/src/inputstream.ffmpegdirect-21.3.8-Omega/src/stream/DemuxStream.h:24:10: fatal error: libavcodec/avcodec.h: No such file or directory
24 | #include <libavcodec/avcodec.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/inputstream.ffmpegdirect.dir/build.make:107: CMakeFiles/inputstream.ffmpegdirect.dir/src/stream/FFmpegCatchupStream.cpp.o] Error 1
make[2]: *** [CMakeFiles/inputstream.ffmpegdirect.dir/build.make:79: CMakeFiles/inputstream.ffmpegdirect.dir/src/StreamManager.cpp.o] Error 1
[…]
make[1]: *** [CMakeFiles/Makefile2:120: CMakeFiles/inputstream.ffmpegdirect.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Build failed, check /var/lib/aurbuild/x86_64/lucki/build
Hi, i got the following issue with this package:
make[2]: *** [CMakeFiles/inputstream.ffmpegdirect.dir/build.make:135: CMakeFiles/inputstream.ffmpegdirect.dir/src/stream/FFmpegStream.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:120: CMakeFiles/inputstream.ffmpegdirect.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERRORE: Si è verificato un errore in build().
L'operazione sta per essere interrotta...
any suggestions? Many thanks!
Thank you @wast3, this worked for me and solved the problems I had with IPTV Simple Client.
Fails to build against ffmpeg 7. Needs a dependency to ffmpeg6.1 and the following added to the PKGBUILD:
-DFFMPEG_INCLUDE_DIRS=/usr/include/ffmpeg6.1
-DFFMPEG_LIBRARIES=/usr/lib/ffmpeg6.1
Building break with errors:
/root/aur/inputstream.ffmpegdirect-21.3.5-Omega/build/build/libzvbi/src/libzvbi/src/io-sim.c:128:1: error: static declaration of 'sincos' follows non-static declaration
128 | sincos (double x,
| ^
~
In file included from /usr/include/features.h:511,
from /usr/include/bits/libc-header-start.h:33,
from /usr/include/math.h:27,
from /root/aur/inputstream.ffmpegdirect-21.3.5-Omega/build/build/libzvbi/src/libzvbi/src/io-sim.c:28:
/usr/include/bits/mathcalls.h:79:1: note: previous declaration of 'sincos' with type 'void(double, double , double '
79 | __MATHDECL_VEC (void,sincos,,
| ^~
/usr/bin/ld: /tmp/ccfMF0oo.ltrans4.ltrans.o:(.data.rel.ro+0x8): undefined reference to `nettle_sha3_256_shake'
collect2: error: ld returned 1 exit status
ERROR: gnutls not found using pkg-config
[ 12%] Performing configure step for 'ffmpeg'
ERROR: gnutls not found using pkg-config
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
make[5]: *** [CMakeFiles/ffmpeg.dir/build.make:92: ffmpeg-prefix/src/ffmpeg-stamp/ffmpeg-configure] Error 1
make[4]: *** [CMakeFiles/Makefile2:87: CMakeFiles/ffmpeg.dir/all] Error 2
I think kodi-dev it's always required, so just put kodi-dev, for all architectures. If kodi-rpi-dev provides kodi-dev, rpi users should select the rpi one, when prompted. at least i guess so :)
@thepasto would this work?
if [[ $CARCH == 'armv6h' || $CARCH == 'armv7h' || $CARCH == 'aarch64' ]]; then
makedepends+=('kodi-rpi-dev')
fi
@ivanich kodi-rpi-dev breaks dependecies tree on non arm devices. Thank you
@thepasto, it builds fine but I can't check whether it actually works or not because I'm not using kodi anymore. Also I've added kodi-rpi-dev to makedepends.
Pinned Comments