我用来编译的命令是
./bootstrap研究结果如下:
Usable autoreconf found, running
main::scan_file() called too early to check prototype at
/usr/local/bin/aclocal line 617.
aclocal: couldn't open directory `m4': No such file or directory
autoreconf: aclocal failed with exit status: 1通过跟踪引导,我发现这些错误是由以下原因引起的:
autoreconf --force --installautoreconf版本是:
autoreconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>,
<http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David J. MacKenzie and Akim Demaille有人能帮我解决这个问题吗。
发布于 2018-12-20 09:39:20
实际错误由aclocal (由autoreconf调用)引发。
最近版本的aclocal应该很好地处理这个问题,所以请检查您的aclocal版本(OR:您是否实际运行了正确的aclocal-binary)。
或者,您可以简单地在build中创建一个(空) m4/目录。
可以说,这一点(确保m4/目录的存在)应该由bootstrap脚本处理,但是:
fribidi放弃了自动工具,转而支持meson (尽管它仍然支持autotools)fribidi已经提供了一个非空的m4目录已经有一段时间了。fribidi的最后一个使用autotools并没有m4/目录的版本是0.19.7 (发布时间约为2015-08年)。因此:请使用任何库的最新和最大(稳定)版本。如果不能,您应该在您的问题描述中清楚地说明这一点,并注意您要编译的版本。
https://stackoverflow.com/questions/53844347
复制相似问题