编译 pulseaudio 修补版本时出现问题

编译 pulseaudio 修补版本时出现问题

我一直在尝试编译此版本的 Pulseaudio 有一个补丁但是当我跑的时候

./configure 

我得到这个输出

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
configure: error: git-version-gen failed
` 

以下是 automake 的输出

`configure.ac:89: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:89: the top level
configure.ac:106: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is discouraged.
configure.ac:106: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.ac:106: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.

以下是 autoconf 的输出

configure.ac:89: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:368: AC_USE_SYSTEM_EXTENSIONS is expanded from...
configure.ac:89: the top level

我该怎么办?我搜索了互联网,但没有找到任何关于这个问题的信息。

答案1

使用 git 克隆而不是下载 tar。

跑步

sudo apt install git
git clone https://github.com/dmitryvk/pulseaudio.git
cd pulseaudio

你还需要一些库

sudo apt-get install libjson0 libjson0-dev libsndfile1-dev
./autogen.sh
CFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3" ./configure --without-caps
make

并且它构建成功。

相关内容