Automake 找不到 pkg-config 宏

Vir*_*boy 6 apt wine 14.04

所以我发现了一个更新 Qt5 的 Wine 问题。修复要求我编译和安装 Mesa 10.4.1。我从 git 得到了源代码。所以,首先我下载/安装正确的依赖性,如flex bison autoconfig aclocal pkg-configUtil-Dev从回购。 libdrm-2.4.58 pixman-0.32.6 dri3proto-1.0并且automake-1.14是使用./configure和 make/sudo make install构建的源代码。在我输入后在终端中遇到这个之后./autogen.sh

configure.ac:152: error: Could not locate the pkg-config autoconf macros.
  These are usually located in /usr/share/aclocal/pkg.m4. If your macros
  are in a different location, try setting the environment variable
ACLOCAL="aclocal -I/other/macro/dir" before running autoreconf.
configure.ac:152: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
Run Code Online (Sandbox Code Playgroud)

GUI 中的证明

当我运行apt-file search pkg.m4 终端结果时

当我做下载./configuremake/install使用这些库,我离开了他们在/ home。pkg-config: /usr/share/aclocal/pkg.m4 mm-common: /usr/share/aclocal/mm-pkg.m4

jar*_*ver 4

我遇到了同样的问题。对我有用的是安装autoconfpkgconf. 然后我就找到了/usr/share/aclocal/pkg.m4


小智 0

如果您使用系统autoconf,则必须导出

AL_OPTS=-I/path/where/you/installed/the/stuff/share/aclocal 
Run Code Online (Sandbox Code Playgroud)

在你的环境中。

如果您从源代码构建并安装autoconf,则必须导出

AL_OPTS=-I/usr/share/aclocal
Run Code Online (Sandbox Code Playgroud)

反而。

要点是您放入该环境变量的路径/path/where/you/installed/the/stuff/share/aclocal必须是包含该文件的路径。/usr/share/aclocalAL_OPTSpkg.m4

如果这不起作用,请尝试导出ACLOCAL设置为

aclocal [what you wanted to put into AL_OPTS]

相反,该变量中 aclocal 的参数是您尝试放入AL_OPTS.