mac 10.7.5上的xmms2安装使用macport失败

时间:2012-12-29 14:55:39

标签: macos osx-lion macports

尝试以下操作时出现的错误:

$cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_xmms2/xmms2/work/xmms2-0.8DrO_o
$sudo ./waf build

是:

Build failed
 -> task failed (exit status 1): 
    {task 4561778192: c avcodec.c -> avcodec.c.1.o}

我收到错误:

error: implicit declaration of function 'avcodec_init' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

和四个警告:

warning: 'avcodec_alloc_context' is deprecated [-Wdeprecated-declarations]

warning: 'avcodec_open' is deprecated [-Wdeprecated-declarations]

warning: 'avcodec_decode_audio3' is deprecated [-Wdeprecated-declarations]

warning: 'avcodec_decode_audio3' is deprecated [-Wdeprecated-declarations]

1 个答案:

答案 0 :(得分:0)

尝试安装xmms2的其他变体。输入port variants xmms2

xmms2 has the variants:
   cpp: C++ development support
   perl: Perl development support
   ruby: Ruby development support
   universal: Build for multiple architectures

尝试此命令以安装cpp

的变体xmms2
sudo port install xmms2 +cpp