2012-12-29 115 views
0

嘗試以下時,我得到的錯誤:XMMS2安裝失敗的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] 
+0

cpp不能很好地理解前3行你的問題......? – 2012-12-30 13:33:56

回答

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 

試試這個命令來安裝變種的xmms2

sudo port install xmms2 +cpp