automake出错

use*_*414 9 automake autoconf autotools configure

我正在尝试为hello world示例C程序创建安装包.

我已经完成了以下工作.

自动扫描

mv configure.scan configure.ac编辑configure.ac以添加一些宏.

aclocal会

在其中创建Makefile.am

bin_PROGRAMS = hello
hello_SOURCES = hello.c
Run Code Online (Sandbox Code Playgroud)

最后我做了automake.

然后我收到了消息..

configure.ac:12: error: required file './compile' not found
configure.ac:12:   'automake --add-missing' can install 'compile'
configure.ac:6: error: required file './missing' not found
configure.ac:6:   'automake --add-missing' can install 'missing'
Makefile.am: error: required file './INSTALL' not found
Makefile.am:   'automake --add-missing' can install 'INSTALL'
Makefile.am: error: required file './NEWS' not found
Makefile.am: error: required file './README' not found
Makefile.am: error: required file './AUTHORS' not found
Makefile.am: error: required file './ChangeLog' not found
Makefile.am: error: required file './COPYING' not found
Makefile.am:   'automake --add-missing' can install 'COPYING'
Makefile.am: error: required file './depcomp' not found
Makefile.am:   'automake --add-missing' can install 'depcomp'
Run Code Online (Sandbox Code Playgroud)

有没有任何条件包括compile,missing,NEW,README或者说被要求在Makefile.am按摩的configure.ac文件.

我该怎么办?

这些是有关某些产品版本的信息.

CentOS发布6.4

autocomf-2.69

automake的1.14

m4-1.4

lor*_*nix 16

这些文件需要存在以符合标准的"automake/autoconf"文件集.

按照它给你的说明:"automake --add-missing",丢失的文件将使用虚拟信息创建,你可以(在一个完美的世界中)适当填写.

尝试仔细阅读autotools教程,或者编写自动提醒.另请参阅StackOverflow:autotools入门.

另外,阅读手册页,尝试automake --help阅读实用程序帮助输出的内容以帮助您?


Onl*_*job 9

在这种情况下,可能添加foreignAM_INIT_AUTOMAKEconfigure.ac可能会有所帮助.

  • 我面临类似的问题,但是已经定义了“ foreign”,有什么建议吗? (2认同)