jishnujayakumar / MV-Tractus

A simple tool to extract motion vectors from h264 encoded videos.
108 stars 27 forks source link

compile conflicts #28

Closed mxa closed 1 year ago

mxa commented 2 years ago
./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,
      |    
EasonLin536 commented 2 years ago

The same problem.

mxa commented 2 years ago

The same problem.

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

thsshz commented 2 years ago

The same problem.