You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed libav or ffmpeg, and then compile freeswitch,this problem was occured。
making all mod_av
make[4]: 进入目录“/root/freeswitch/src/mod/applications/mod_av”
CC libavmod_la-mod_av.lo
CC libavmod_la-avformat.lo
avformat.c: In function 'flush_video_pkt_queue':
avformat.c:943:3: error: implicit declaration of function 'av_packet_free' [-Werror=implicit-function-declaration]
av_packet_free(&pkt);
^
avformat.c: In function 'video_thread_run':
avformat.c:1084:3: error: implicit declaration of function 'av_packet_alloc' [-Werror=implicit-function-declaration]
pkt = av_packet_alloc();
^
avformat.c:1084:7: error: assignment makes pointer from integer without a cast [-Werror]
pkt = av_packet_alloc();
^
avformat.c:1147:19: error: initialization makes pointer from integer without a cast [-Werror]
AVPacket *pkt = av_packet_alloc();
^
avformat.c: In function 'file_read_thread_run':
avformat.c:1751:7: error: assignment makes pointer from integer without a cast [-Werror]
pkt = av_packet_alloc();
^
avformat.c:1782:26: error: initialization makes pointer from integer without a cast [-Werror]
AVPacket *new_pkt = av_packet_alloc();
^
avformat.c: In function 'av_file_write':
avformat.c:2597:10: error: assignment makes pointer from integer without a cast [-Werror]
pkt[0] = av_packet_alloc();
^
avformat.c:2598:10: error: assignment makes pointer from integer without a cast [-Werror]
pkt[1] = av_packet_alloc();
^
avformat.c: In function 'no_video_decode_packets':
avformat.c:3028:59: error: 'AVStream' has no member named 'codecpar'
switch_packetizer_feed_extradata(context->packetizer, st->codecpar->extradata, st->codecpar->extradata_size);
^
avformat.c:3028:84: error: 'AVStream' has no member named 'codecpar'
switch_packetizer_feed_extradata(context->packetizer, st->codecpar->extradata, st->codecpar->extradata_size);
^
cc1: all warnings being treated as errors
make[4]: *** [libavmod_la-avformat.lo] 错误 1
make[4]: 离开目录“/root/freeswitch/src/mod/applications/mod_av”
make[3]: *** [mod_av-all] 错误 1
make[3]: 离开目录“/root/freeswitch/src/mod”
make[2]: *** [all-recursive] 错误 1
make[2]: 离开目录“/root/freeswitch/src”
make[1]: *** [all-recursive] 错误 1
make[1]: 离开目录“/root/freeswitch”
make: *** [all] 错误 2
The text was updated successfully, but these errors were encountered:
I have installed libav or ffmpeg, and then compile freeswitch,this problem was occured。
making all mod_av
make[4]: 进入目录“/root/freeswitch/src/mod/applications/mod_av”
CC libavmod_la-mod_av.lo
CC libavmod_la-avformat.lo
avformat.c: In function 'flush_video_pkt_queue':
avformat.c:943:3: error: implicit declaration of function 'av_packet_free' [-Werror=implicit-function-declaration]
av_packet_free(&pkt);
^
avformat.c: In function 'video_thread_run':
avformat.c:1084:3: error: implicit declaration of function 'av_packet_alloc' [-Werror=implicit-function-declaration]
pkt = av_packet_alloc();
^
avformat.c:1084:7: error: assignment makes pointer from integer without a cast [-Werror]
pkt = av_packet_alloc();
^
avformat.c:1147:19: error: initialization makes pointer from integer without a cast [-Werror]
AVPacket *pkt = av_packet_alloc();
^
avformat.c: In function 'file_read_thread_run':
avformat.c:1751:7: error: assignment makes pointer from integer without a cast [-Werror]
pkt = av_packet_alloc();
^
avformat.c:1782:26: error: initialization makes pointer from integer without a cast [-Werror]
AVPacket *new_pkt = av_packet_alloc();
^
avformat.c: In function 'av_file_write':
avformat.c:2597:10: error: assignment makes pointer from integer without a cast [-Werror]
pkt[0] = av_packet_alloc();
^
avformat.c:2598:10: error: assignment makes pointer from integer without a cast [-Werror]
pkt[1] = av_packet_alloc();
^
avformat.c: In function 'no_video_decode_packets':
avformat.c:3028:59: error: 'AVStream' has no member named 'codecpar'
switch_packetizer_feed_extradata(context->packetizer, st->codecpar->extradata, st->codecpar->extradata_size);
^
avformat.c:3028:84: error: 'AVStream' has no member named 'codecpar'
switch_packetizer_feed_extradata(context->packetizer, st->codecpar->extradata, st->codecpar->extradata_size);
^
cc1: all warnings being treated as errors
make[4]: *** [libavmod_la-avformat.lo] 错误 1
make[4]: 离开目录“/root/freeswitch/src/mod/applications/mod_av”
make[3]: *** [mod_av-all] 错误 1
make[3]: 离开目录“/root/freeswitch/src/mod”
make[2]: *** [all-recursive] 错误 1
make[2]: 离开目录“/root/freeswitch/src”
make[1]: *** [all-recursive] 错误 1
make[1]: 离开目录“/root/freeswitch”
make: *** [all] 错误 2
The text was updated successfully, but these errors were encountered: