尝试以下操作时出现的错误:
$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 :(得分: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