[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61978] [octave forge] (video) Failure to buil
From: |
Dmitri A. Sergatskov |
Subject: |
[Octave-bug-tracker] [bug #61978] [octave forge] (video) Failure to build against FFmpeg 5.0 |
Date: |
Tue, 4 Jul 2023 23:15:05 -0400 (EDT) |
Follow-up Comment #5, bug #61978 (project octave):
On Centos Stream 9:
$ make dist V=1
cd src && ./bootstrap && ./configure && make all
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for mkoctfile... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FFMPEG... yes
configure: creating ./config.status
config.status: creating Makefile
configure:
Octave-Forge video package is now configured with
FFMPEG LIBS: -lswscale -lavformat -lavcodec -lavutil
FFMPEG CFLAGS: -I/usr/include/ffmpeg
DEFS: -DPACKAGE_NAME=\"Octave-Forge\ video\ package\"
-DPACKAGE_TARNAME=\"octave-forge-video-package\" -DPACKAGE_VERSION=\"2.0.2\"
-DPACKAGE_STRING=\"Octave-Forge\ video\ package\ 2.0.2\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\"
make[1]: Entering directory
'/home/dima/src/octave-video-e2f639402fef48a951bea656456fe3f2954bdc92/src'
patch -i cap_ffmpeg_impl_ov.patch -o cap_ffmpeg_impl_ov.hpp
patching file cap_ffmpeg_impl_ov.hpp (read from cap_ffmpeg_impl.hpp)
mkoctfile -Wall -v -I/usr/include/ffmpeg -DPACKAGE_NAME=\"Octave-Forge\
video\ package\" -DPACKAGE_TARNAME=\"octave-forge-video-package\"
-DPACKAGE_VERSION=\"2.0.2\" -DPACKAGE_STRING=\"Octave-Forge\ video\ package\
2.0.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" cap_ffmpeg_wrapper.cc
-lswscale -lavformat -lavcodec -lavutil -g -O2
g++ -c -fPIC -I/usr/local/include/octave-8.2.1/octave/..
-I/usr/local/include/octave-8.2.1/octave -I/usr/local/include -pthread
-fopenmp -ggdb3 -O2 -march=x86-64-v2 -mtune=native -flto=auto -g -Wall -O2
-I/usr/include/ffmpeg -DPACKAGE_NAME="Octave-Forge video package"
-DPACKAGE_TARNAME="octave-forge-video-package" -DPACKAGE_VERSION="2.0.2"
-DPACKAGE_STRING="Octave-Forge video package 2.0.2" -DPACKAGE_BUGREPORT=""
-DPACKAGE_URL="" cap_ffmpeg_wrapper.cc -o /tmp/oct-cFRgFU.o
In file included from cap_ffmpeg_wrapper.cc:18:
cap_ffmpeg_impl_ov.hpp: In member function ‘const char*
CvCapture_FFMPEG::get_video_codec_name() const’:
cap_ffmpeg_impl_ov.hpp:560:51: error: ‘AVStream’ {aka ‘struct
AVStream’} has no member named ‘codec’
560 | return _opencv_avcodec_get_name(video_st->codec->codec_id);
| ^~~~~
In file included from cap_ffmpeg_wrapper.cc:18:
cap_ffmpeg_impl_ov.hpp: In member function ‘bool
CvCapture_FFMPEG::grabFrame()’:
cap_ffmpeg_impl_ov.hpp:1471:9: error: ‘avcodec_decode_video2’ was not
declared in this scope; did you mean ‘avcodec_decode_subtitle2’?
1471 | avcodec_decode_video2(context, picture, &got_picture,
&packet);
| ^~~~~~~~~~~~~~~~~~~~~
| avcodec_decode_subtitle2
cap_ffmpeg_impl_ov.hpp: In member function ‘const char*
CvVideoWriter_FFMPEG::get_video_codec_name() const’:
cap_ffmpeg_impl_ov.hpp:1967:51: error: ‘AVStream’ {aka ‘struct
AVStream’} has no member named ‘codec’
1967 | return _opencv_avcodec_get_name(video_st->codec->codec_id);
| ^~~~~
cap_ffmpeg_impl_ov.hpp: In function ‘int
icv_av_write_frame_FFMPEG(AVFormatContext*, AVStream*, AVCodecContext*,
uint8_t*, uint32_t, AVFrame*, int)’:
cap_ffmpeg_impl_ov.hpp:2291:15: error: ‘avcodec_encode_video2’ was not
declared in this scope; did you mean ‘avcodec_encode_subtitle’?
2291 | ret = avcodec_encode_video2(c, &pkt, picture, &got_output);
| ^~~~~~~~~~~~~~~~~~~~~
| avcodec_encode_subtitle
cap_ffmpeg_wrapper.cc: In function ‘octave_value_list
F__ffmpeg_output_formats__(const octave_value_list&, int)’:
cap_ffmpeg_wrapper.cc:61:3: error: ‘av_register_all’ was not declared in
this scope
61 | av_register_all();
| ^~~~~~~~~~~~~~~
cap_ffmpeg_wrapper.cc:66:30: error: ‘av_oformat_next’ was not declared in
this scope; did you mean ‘av_opt_next’?
66 | AVOutputFormat * oformat = av_oformat_next(NULL);
| ^~~~~~~~~~~~~~~
| av_opt_next
cap_ffmpeg_wrapper.cc: In function ‘octave_value_list F__writer_open__(const
octave_value_list&, int)’:
cap_ffmpeg_wrapper.cc:417:7: error: ‘av_register_all’ was not declared in
this scope
417 | av_register_all();
| ^~~~~~~~~~~~~~~
cap_ffmpeg_wrapper.cc:436:49: error: invalid conversion from ‘const
AVOutputFormat*’ to ‘AVOutputFormat*’ [-fpermissive]
436 | AVOutputFormat* foo = av_guess_format (NULL, filename.c_str
(), NULL);
|
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const AVOutputFormat*
In file included from cap_ffmpeg_wrapper.cc:18:
cap_ffmpeg_impl_ov.hpp: At global scope:
cap_ffmpeg_impl_ov.hpp:2001:21: warning: ‘const char*
icvFFMPEGErrStr(int)’ defined but not used [-Wunused-function]
2001 | static const char * icvFFMPEGErrStr(int err)
| ^~~~~~~~~~~~~~~
In file included from cap_ffmpeg_wrapper.cc:18:
cap_ffmpeg_impl_ov.hpp:953:13: warning: ‘void ffmpeg_log_callback(void*,
int, const char*, __va_list_tag*)’ defined but not used [-Wunused-function]
953 | static void ffmpeg_log_callback(void *ptr, int level, const char *fmt,
va_list vargs)
| ^~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:12: cap_ffmpeg_wrapper.oct] Error 1
make[1]: Leaving directory
'/home/dima/src/octave-video-e2f639402fef48a951bea656456fe3f2954bdc92/src'
make: *** [Makefile:92: all] Error 2
gcc 11.4.1; ffmpeg-5.1.3
Dmitri.
--
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61978>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61978] [octave forge] (video) Failure to build against FFmpeg 5.0, Andreas Weber, 2023/07/04
- [Octave-bug-tracker] [bug #61978] [octave forge] (video) Failure to build against FFmpeg 5.0,
Dmitri A. Sergatskov <=
- [Octave-bug-tracker] [bug #61978] [octave forge] (video) Failure to build against FFmpeg 5.0, Dmitri A. Sergatskov, 2023/07/05
- [Octave-bug-tracker] [bug #61978] [octave forge] (video) Failure to build against FFmpeg 5.0, Andreas Weber, 2023/07/05
- [Octave-bug-tracker] [bug #61978] [octave forge] (video) Failure to build against FFmpeg 5.0, Dmitri A. Sergatskov, 2023/07/05
- [Octave-bug-tracker] [bug #61978] [octave forge] (video) Failure to build against FFmpeg 5.0, Dmitri A. Sergatskov, 2023/07/05
- [Octave-bug-tracker] [bug #61978] [octave forge] (video) Failure to build against FFmpeg 5.0, Dmitri A. Sergatskov, 2023/07/05
- [Octave-bug-tracker] [bug #61978] [octave forge] (video) Failure to build against FFmpeg 5.0, Dmitri A. Sergatskov, 2023/07/05
- [Octave-bug-tracker] [bug #61978] [octave forge] (video) Failure to build against FFmpeg 5.0, Dmitri A. Sergatskov, 2023/07/05
- [Octave-bug-tracker] [bug #61978] [octave forge] (video) Failure to build against FFmpeg 5.0, Andreas Weber, 2023/07/05
- [Octave-bug-tracker] [bug #61978] [octave forge] (video) Failure to build against FFmpeg 5.0, Dmitri A. Sergatskov, 2023/07/07
- [Octave-bug-tracker] [bug #61978] [octave forge] (video) Failure to build against FFmpeg 5.0, John Donoghue, 2023/07/07