compile conflicts
Closed this issue · 3 comments
mxa commented
./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
The same problem.
thsshz commented
The same problem.