[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56985] [octave forge] (video) cannot find avf
From: |
John Donoghue |
Subject: |
[Octave-bug-tracker] [bug #56985] [octave forge] (video) cannot find avformat.h on Fedora |
Date: |
Sat, 5 Oct 2019 07:51:46 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0 |
Follow-up Comment #6, bug #56985 (project octave):
Something like:
--- a/src/configure.ac Sat Oct 05 10:31:13 2019 +0200
+++ b/src/configure.ac Sat Oct 05 07:46:21 2019 -0400
@@ -28,6 +28,16 @@
PKG_CHECK_MODULES([FFMPEG], [libswscale, libavformat, libavcodec], [],
[AC_MSG_ERROR([FFmpeg libswscale, libavformat or libavcodec not found])])
+# Checks for header files.
+saved_CPPFLAGS=$CPPFLAGS
+CPPFLAGS="$CPPFLAGS $FFMPEG_CFLAGS"
+AC_CHECK_HEADERS([ffmpeg/avformat.h], [],
[AC_CHECK_HEADERS([libavformat/avformat.h], [],
+ AC_MSG_ERROR([FFMpeg header avformat.h not found]))])
+
+AC_CHECK_HEADERS([ffmpeg/avcodec.h], [],
[AC_CHECK_HEADERS([libavcodec/avcodec.h], [],
+ AC_MSG_ERROR([FFMpeg header avcodec.h not found]))])
+CPPFLAGS=$saved_CPPFLAGS
+
## FIMXE: Check if needed on CentOS 7
#AC_CHECK_LIB([avresample], [avresample_close], [],
With the above change in fedora, I then get to:
AVHandler.cc: In member function ‘int AVHandler::setup_read()’:
AVHandler.cc:246:29: error: ‘CODEC_CAP_TRUNCATED’ was not declared in this
scope; did you mean ‘AV_CODEC_CAP_TRUNCATED’?
246 | if (codec->capabilities & CODEC_CAP_TRUNCATED)
| ^~~~~~~~~~~~~~~~~~~
| AV_CODEC_CAP_TRUNCATED
Which is mentioned on bug #53801
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56985>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/