在debian8上编译freeswitch,显示./.lib/libfreeswitch.so:未定义引用`vpx_img_alloc'

时间:2015-06-12 06:04:00

标签: freeswitch

我按照第https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video页上的说明构建了freeswitch。

我下载并制作&& make install libyuv和libvpx。

但是当我制作freeswtich时,会显示错误消息: ./.lib/libfreeswitch.so:对vpx_img_alloc' ./.lib/libfreeswitch.so: undefined reference to vpx_img_flip'的未定义引用 ./.lib/libfreeswitch.so:对vpx_img_set_rect' ./.lib/libfreeswitch.so: undefined reference to vpx_img_free'的未定义引用 ./.lib/libfreeswitch.so:对'vpx_img_wrap'的未定义引用

为什么?

1 个答案:

答案 0 :(得分:1)

FreeSWITCH 1.6现在为Debian Jessie打包了视频依赖项,你不必自己下载和编译,请确保你完全按照这些步骤进行描述。

  1. 设置debian repo:

    echo "deb http://files.freeswitch.org/repo/deb/debian/ jessie main" > /etc/apt/sources.list.d/99FreeSWITCH.test.list
    wget -O - http://files.freeswitch.org/repo/deb/debian/key.gpg |apt-key add -
    apt-get update
    
  2. 安装deps:

    DEBIAN_FRONTEND=none APT_LISTCHANGES_FRONTEND=none apt-get install -y --force-yes freeswitch-video-deps-most
    
  3. 结帐并编译(如果您之前已经完成此操作,请确保执行新的结帐):

    git clone https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch.git
    cd freeswitch.git
    ./bootstrap.sh -j
    ./configure -C
    
  4. 按照https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video#FreeSWITCH1.6Video-Compiling

    中的后续步骤操作