編集:Sconsがlibavを見つけることができません。

編集:Sconsがlibavを見つけることができません。

引き続き発生するコンパイラエラーは次のとおりです。

error: ‘CODEC_ID_HUFFYUV’ undeclared (first use in this function)
     if (!codec) codec = avcodec_find_encoder(CODEC_ID_HUFFYUV);
                                          ^
error:‘PIX_FMT_YUV422P’ undeclared (first use in this function)
     c->pix_fmt = PIX_FMT_YUV422P;
                  ^
error: ‘PIX_FMT_YUV420P’ undeclared (first use in this function)
     c->pix_fmt = PIX_FMT_YUV420P;
                  ^
error: ‘CODEC_ID_FFV1’ undeclared (first use in this function)
     if (c->codec_id == CODEC_ID_FFV1)
                    ^
error: ‘PIX_FMT_RGB24’

これはlibavに固有のようです。 ffmpegがインストールされており、次の場所pkgconfigに適切なファイルがあります。

/usr/lib/pkgconfig/libavutil.pc
/usr/lib/pkgconfig/libavdevice.pc
/usr/lib/pkgconfig/libavcodec.pc

私は何が起こっているのか分かりません。

編集 - 追加情報:

これらのエラーは、以下を含む単一のソースファイルで発生します。

#if HAVE_LAVC
# include <inttypes.h>
# if HAVE_LIBAVCODEC_AVCODEC_H
#  include <libavcodec/avcodec.h>
# else
#  include <avcodec.h>
# endif
# if HAVE_LIBAVFORMAT_AVFORMAT_H
#  include <libavformat/avformat.h>
# else
#  include <avformat.h>
# endif

ベストアンサー1

おすすめ記事