MV-Tractus icon indicating copy to clipboard operation
MV-Tractus copied to clipboard

compile conflicts

Open mxa opened this issue 2 years ago • 3 comments

./compile
In file included from extract_mvs.c:29:
include/libavformat/avformat.h:1985:16: error: redefinition of ‘struct AVPacketList’
 1985 | typedef struct AVPacketList {
      |                ^~~~~~~~~~~~
In file included from /opt/dev-tools-sources/ffmpeg/build/include/libavcodec/avcodec.h:45,
                 from include/libavformat/avformat.h:319,
                 from extract_mvs.c:29:
/opt/dev-tools-sources/ffmpeg/build/include/libavcodec/packet.h:419:16: note: originally defined here
  419 | typedef struct AVPacketList {
      |                ^~~~~~~~~~~~
In file included from extract_mvs.c:29:
include/libavformat/avformat.h:1988:3: error: conflicting types for ‘AVPacketList’; have ‘struct AVPacketList’
 1988 | } AVPacketList;
      |   ^~~~~~~~~~~~
In file included from /opt/dev-tools-sources/ffmpeg/build/include/libavcodec/avcodec.h:45,
                 from include/libavformat/avformat.h:319,
                 from extract_mvs.c:29:
/opt/dev-tools-sources/ffmpeg/build/include/libavcodec/packet.h:422:3: note: previous declaration of ‘AVPacketList’ with type ‘AVPacketList’
  422 | } AVPacketList;
      |   ^~~~~~~~~~~~
In file included from extract_mvs_with_frames.c:29:
include/libavformat/avformat.h:1985:16: error: redefinition of ‘struct AVPacketList’
 1985 | typedef struct AVPacketList {
      |                ^~~~~~~~~~~~
In file included from /opt/dev-tools-sources/ffmpeg/build/include/libavcodec/avcodec.h:45,
                 from include/libavformat/avformat.h:319,
                 from extract_mvs_with_frames.c:29:
/opt/dev-tools-sources/ffmpeg/build/include/libavcodec/packet.h:419:16: note: originally defined here
  419 | typedef struct AVPacketList {
      |                ^~~~~~~~~~~~
In file included from extract_mvs_with_frames.c:29:
include/libavformat/avformat.h:1988:3: error: conflicting types for ‘AVPacketList’; have ‘struct AVPacketList’
 1988 | } AVPacketList;
      |   ^~~~~~~~~~~~
In file included from /opt/dev-tools-sources/ffmpeg/build/include/libavcodec/avcodec.h:45,
                 from include/libavformat/avformat.h:319,
                 from extract_mvs_with_frames.c:29:
/opt/dev-tools-sources/ffmpeg/build/include/libavcodec/packet.h:422:3: note: previous declaration of ‘AVPacketList’ with type ‘AVPacketList’
  422 | } AVPacketList;
      |   ^~~~~~~~~~~~
extract_mvs_with_frames.c: In function ‘extract_motion_vectors’:
extract_mvs_with_frames.c:338:21: error: ‘AVPicture’ undeclared (first use in this function); did you mean ‘AVPictureType’?
  338 |     avpicture_fill((AVPicture *)pFrameRGB, buffer, AV_PIX_FMT_RGB24,
      |                     ^~~~~~~~~
      |                     AVPictureType
extract_mvs_with_frames.c:338:21: note: each undeclared identifier is reported only once for each function it appears in
extract_mvs_with_frames.c:338:32: error: expected expression before ‘)’ token
  338 |     avpicture_fill((AVPicture *)pFrameRGB, buffer, AV_PIX_FMT_RGB24,
      |    

mxa avatar Oct 30 '21 21:10 mxa

The same problem.

EasonLin536 avatar Nov 01 '21 06:11 EasonLin536

The same problem.

Like.... this closed issue? https://github.com/jishnujayakumar/MV-Tractus/issues/25

mxa avatar Nov 01 '21 18:11 mxa

The same problem.

thsshz avatar Nov 06 '21 04:11 thsshz