sipwise / rtpengine

The Sipwise media proxy for Kamailio
GNU General Public License v3.0
765 stars 362 forks source link

CentOS7 installation of rtpengine with the following error undefined reference to 'av_get_default_channel_layout' #1746

Open SLINYI opened 8 months ago

SLINYI commented 8 months ago

hi: I have the following error when installing rtpengine in centos source code My installed version: rtpengine-mr10.3.1.7

cc -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -pthread -fno-strict-aliasing -std=c99 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libxml2 -I/usr/include/libxml2 -pthread -I/usr/include/json-glib-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DWITH_IPTABLES_OPTION -I. -I../kernel-module/ -I../lib/ -I../include/ -D_GNU_SOURCE -DWITH_TRANSCODING -I/usr/include/mysql -DRE_PLUGIN_DIR="\"/usr/lib/rtpengine\"" -DHAVE_BCG729 -I/usr/local/include/ -DHAVE_MQTT -DRTPENGINE_VERSION="\"undefined\"" -rdynamic fix_frame_channel_layout-test.c -lm -lglib-2.0 -pthread -lgthread-2.0 -lglib-2.0 -lz -lpcre -lcrypto -lssl -lcrypto -levent_pthreads -levent -lpcap -lxmlrpc_client -lxmlrpc -lxmlrpc_util -lhiredis -ljson-glib-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lwebsockets -lip4tc -lip6tc -L$(exec_prefix)/lib64 -lspandsp -ltiff -lm -L/usr/lib64/mysql -lmysqlclient -lpthread -lz -lm -ldl -lssl -lcrypto -L/usr/local/lib64/ -lbcg729 -lmosquitto -o fix_frame_channel_layout-test /bin/sh: exec_prefix: command not found /tmp/ccWDDX8n.o: In function fix_frame_channel_layout': /root/rtpengine-mr10.3.1.7/daemon/fix_frame_channel_layout.h:9: undefined reference toav_get_default_channel_layout' collect2: error: ld returned 1 exit status make[3]: [fix_frame_channel_layout-test] Error 1 make[3]: Leaving directory `/root/rtpengine-mr10.3.1.7/daemon' Failed build with ../lib/fix_frame_channel_layout-04.h make[2]: [fix_frame_channel_layout.h] Error 1 rm sdp.strhash.c control_ng.strhash.c call_interfaces.strhash.c janus.strhash.c make[2]: Leaving directory /root/rtpengine-mr10.3.1.7/daemon' make[1]: *** [all] Error 2 make[1]: Leaving directory/root/rtpengine-mr10.3.1.7/daemon' make: *** [all] Error 2

How can I solve it?thank you