octave-bug-tracker
[Top][All Lists]
Advanced

[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: Wed, 5 Jul 2023 00:16:32 -0400 (EDT)

Follow-up Comment #6, bug #61978 (project octave):

With clang (16.0.1):

$ CXX=clang++ make dist V=1
cd src && ./bootstrap && ./configure && make all
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 clang++ 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'
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
clang++ -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=thin -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-mgOipE.o
In file included from cap_ffmpeg_wrapper.cc:18:
./cap_ffmpeg_impl_ov.hpp:560:51: error: no member named 'codec' in 'AVStream'
        return _opencv_avcodec_get_name(video_st->codec->codec_id);
                                        ~~~~~~~~  ^
./cap_ffmpeg_impl_ov.hpp:1471:9: error: use of undeclared identifier
'avcodec_decode_video2'; did you mean 'avcodec_decode_subtitle2'?
        avcodec_decode_video2(context, picture, &got_picture, &packet);
        ^~~~~~~~~~~~~~~~~~~~~
        avcodec_decode_subtitle2
/usr/include/ffmpeg/libavcodec/avcodec.h:2545:5: note:
'avcodec_decode_subtitle2' declared here
int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub,
    ^
In file included from cap_ffmpeg_wrapper.cc:18:
./cap_ffmpeg_impl_ov.hpp:1471:40: error: cannot initialize a parameter of type
'AVSubtitle *' with an lvalue of type 'AVFrame *'
        avcodec_decode_video2(context, picture, &got_picture, &packet);
                                       ^~~~~~~
/usr/include/ffmpeg/libavcodec/avcodec.h:2545:65: note: passing argument to
parameter 'sub' here
int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub,
                                                                ^
In file included from cap_ffmpeg_wrapper.cc:18:
./cap_ffmpeg_impl_ov.hpp:1967:51: error: no member named 'codec' in
'AVStream'
        return _opencv_avcodec_get_name(video_st->codec->codec_id);
                                        ~~~~~~~~  ^
./cap_ffmpeg_impl_ov.hpp:2291:15: error: use of undeclared identifier
'avcodec_encode_video2'
        ret = avcodec_encode_video2(c, &pkt, picture, &got_output);
              ^
cap_ffmpeg_wrapper.cc:61:3: error: use of undeclared identifier
'av_register_all'
  av_register_all();
  ^
cap_ffmpeg_wrapper.cc:66:30: error: use of undeclared identifier
'av_oformat_next'
  AVOutputFormat * oformat = av_oformat_next(NULL);
                             ^
cap_ffmpeg_wrapper.cc:70:17: error: use of undeclared identifier
'av_oformat_next'
      oformat = av_oformat_next (oformat);
                ^
cap_ffmpeg_wrapper.cc:80:13: error: use of undeclared identifier
'av_oformat_next'
  oformat = av_oformat_next(NULL);
            ^
cap_ffmpeg_wrapper.cc:144:17: error: use of undeclared identifier
'av_oformat_next'
      oformat = av_oformat_next(oformat);
                ^
cap_ffmpeg_wrapper.cc:417:7: error: use of undeclared identifier
'av_register_all'
      av_register_all();
      ^
cap_ffmpeg_wrapper.cc:436:23: error: cannot initialize a variable of type
'AVOutputFormat *' with an rvalue of type 'const AVOutputFormat *'
      AVOutputFormat* foo = av_guess_format     (NULL, filename.c_str (),
NULL);
                      ^    
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 errors generated.
make[1]: *** [Makefile:12: cap_ffmpeg_wrapper.oct] Error 1



Perhaps this is relevant:
https://stackoverflow.com/questions/71565636/replacing-deprecated-avstream-codec-parameter-in-libav

Dmitri.
-- 



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61978>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]