mod_av.c: In function ‘mod_av_shutdown’: mod_av.c:121:2: error: ‘av_lockmgr_register’ is deprecated [-Werror=deprecated-declarations] av_lockmgr_register(NULL); ^ In file included from mod_av.c:34:0: /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:6103:5: note: declared here int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op)); ^ mod_av.c: In function ‘mod_av_load’: mod_av.c:127:2: error: ‘av_lockmgr_register’ is deprecated [-Werror=deprecated-declarations] av_lockmgr_register(&mod_av_lockmgr_cb); ^ In file included from mod_av.c:34:0: /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:6103:5: note: declared here int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op)); ^ mod_av.c:131:2: error: ‘av_register_all’ is deprecated [-Werror=deprecated-declarations] av_register_all(); ^ In file included from mod_av.c:35:0: /usr/include/x86_64-linux-gnu/libavformat/avformat.h:2043:6: note: declared here void av_register_all(void); ^ cc1: all warnings being treated as errors Makefile:681: recipe for target 'mod_av_la-mod_av.lo' failed make[4]: *** [mod_av_la-mod_av.lo] Error 1 make[4]: Leaving directory '/opt/freeswitch-1.6.19/src/mod/applications/mod_av' Makefile:667: recipe for target 'mod_av-all' failed
[solution3]:需要安装libav
1 2 3 4 5 6 7
sudo apt-get install yasm libvpx. libx264. libx264-dev # install libav git clone https://freeswitch.org/stash/scm/sd/libav.git cd libav ./configure --enable-shared --enable-libx264 --enable-gpl make sudo make install
[error4]: 安装mod_shout缺包
1
Makefile:932: *** You must install libshout3-dev to build mod_shout。 停止。
1
sudo apt-get install libshout3-dev
1
Makefile:927: *** You must install libmpg123-dev to build mod_shout。 停止。
1
sudo apt-get install libmpg123-dev
1
Makefile:922: *** You must install libmp3lame-dev to build mod_shout。 停止。
1
sudo apt-get install libmp3lame-dev
[error5]: You must install libilbc-dev to build mod_ilbc
[solution5]
1 2 3 4 5 6
# install libilbc 因为apt包里没有libilbc-dev git clone https://freeswitch.org/stash/scm/sd/libilbc.git ./bootstrap.sh ./configure make -j8 make install