我已成功在Windows上安装了广播使用此工具(BUTT)和Icecast2,我可以流式传输音频。但是,我无法在Linux上安装Broadcast Using This Tool(BUTT)。我试图在Linux Mint版本17,Linux Fedora版本21和Linux Ubuntu版本14上安装BUTT。我使用这些命令在Linux中安装这些依赖项:
如果我使用 sudo apt-get install butt 安装BUTT,当我在终端输入“butt”时,我会收到此输出。
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
如果我从sourceforge下载任何BUTT .deb文件,并从.deb安装BUTT,则在“终端”中输入“butt”时会得到相同的输出。
最后,我尝试从源.tar.gz安装BUTT。我可以在终端中运行这些命令。
接下来,当我在终端输入 make 时,我得到了这个输出。
make all-recursive
make[1]: Entering directory `/home/jeremy/Downloads/butt-0.1.13'
Making all in src
make[2]: Entering directory `/home/jeremy/Downloads/butt-0.1.13/src'
depbase=`echo butt.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I.. -IFLTK -g -O2 -I/usr/include/cairo -I/usr/include
/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT -MT butt.o -MD -MP -MF $depbase.Tpo -c -o butt.o butt.cpp &&\
mv -f $depbase.Tpo $depbase.Po
In file included from cfg.h:19:0,
from butt.cpp:37:
port_audio.h:61:24: error: ‘PaStreamCallbackTimeInfo’ does not name a type
const PaStreamCallbackTimeInfo* timeInfo,
^
port_audio.h:61:50: error: ISO C++ forbids declaration of ‘timeInfo’ with no type [-fpermissive]
const PaStreamCallbackTimeInfo* timeInfo,
^
port_audio.h:62:18: error: ‘PaStreamCallbackFlags’ has not been declared
PaStreamCallbackFlags statusFlags,
^
make[2]: *** [butt.o] Error 1
make[2]: Leaving directory `/home/jeremy/Downloads/butt-0.1.13/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jeremy/Downloads/butt-0.1.13'
make: *** [all] Error 2
答案 0 :(得分:2)
我不知道我是否迟到了,但希望它可以帮助某人在ubuntu 16.04上安装BUTT(我的情况)。对不起如果我不在话题。
apt-get install libfltk1.3-dev
apt-get install libportaudio-dev
apt-get install libvorbis-dev
apt-get install libogg-dev
apt-get install libopus-dev
apt-get install libflac-dev
apt-get install libsamplerate-dev
apt-get install libmp3lame-dev
apt-get install build-essentials
apt-get install gcc
apt-get install gcc-c ++
apt-get install portaudio19-dev
apt-get install libasound2 alsa-utils alsa-oss
apt-get install jackd2
转到:http://www.portaudio.com/download.html并下载(在我的情况下)pa_stable_v190600_20161030.tgz
提取文件并执行:
tar -xzf pa_stable__date.tgz
cd portaudio
./ configure
制作
make install
apt-get install libfdk-aac-dev
tar -xzf butt-.tar.gz #your butt version in my case:tar -xzf
对接0.1.16.tar.gz
cd butt-0.1.13
./ configure
请
sudo make install
答案 1 :(得分:0)
发表这篇文章之后,我继续尝试解决这个问题,但我无法在Linux中检测BUTT来检测音频。我认为这可能与Linux中的依赖关系有关,比如portaudio或jack,但我还没有找到罪魁祸首。作为临时解决方案,我在Windows上运行BUTT,因此可能只建议使用Windows来获取BUTT软件。
答案 2 :(得分:0)
不知道这是否会有所帮助,但我自从Fedora 20以来一直在使用BUTT,现在已经在Fedora 24上安装了它。相同的步骤适用于所有版本的Fedora 20+:
使用此工具(Butt)存储库安装广播。 创建一个名为/etc/yum.repos.d/butt.repo的文件,并包含以下行:
[fedora的对接]
name =使用此工具广播
baseURL时= http://repos.fedorapeople.org/repos/comzeradd/butt/fedora-20/x86_64/
启用= 1
skip_if_unavailable = 1
gpgcheck = 0
[fedora的对接源]
name =使用此工具进行广播 - 来源
baseURL时= http://repos.fedorapeople.org/repos/comzeradd/butt/fedora-20/SRPMS
使能= 0
skip_if_unavailable = 1
gpgcheck = 0
安装对接应用程序:
dnf install butt
或
yum install butt
祝你好运