Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod_av build failed #2638

Open
Jiangzuw opened this issue Oct 29, 2024 · 3 comments
Open

mod_av build failed #2638

Jiangzuw opened this issue Oct 29, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Jiangzuw
Copy link

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

@Jiangzuw Jiangzuw added the bug Something isn't working label Oct 29, 2024
@seven1240
Copy link
Collaborator

What OS and what's the version of FreeSWITCH and version of ffmpeg ?

@Jiangzuw
Copy link
Author

What OS and what's the version of FreeSWITCH and version of ffmpeg ?

The FreeSWITCH version is 1.10.11 and ffmpeg version is ffmpeg-2.8.15.tar.gz

@seven1240
Copy link
Collaborator

try ffmpeg 3.x - 6.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants