首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >automake中的错误

automake中的错误
EN

Stack Overflow用户
提问于 2014-02-14 15:13:07
回答 2查看 37.2K关注 0票数 11

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

我已经完成了下面的步骤。

自动扫描

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

aclocal

在内创建Makefile.am

代码语言:javascript
复制
bin_PROGRAMS = hello
hello_SOURCES = hello.c

最后我做了automake。

然后我收到了下面的信息。。

代码语言:javascript
复制
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'

在Makefile.am和configure.ac文件中没有任何字符串,包括compilemissingNEWREADME或所说的必需的消息。

我该怎么办?

这些是关于某些产品的版本的信息。

CentOS 6.4版

autocomf-2.69

automake-1.14

m4-1.4

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-02-14 16:03:09

这些文件需要存在才能符合标准的'automake/autoconf‘文件集。

遵循它给你的指令:“and -add- missing”,缺失的文件将被创建为虚拟信息,你可以(在理想情况下)适当地填写这些信息。

尝试仔细阅读autotools tutorial,或者autobook。另请参见StackOverflow: Getting started with autotools

此外,请阅读手册页,尝试automake --help,阅读该实用程序对您有帮助的输出?

票数 24
EN

Stack Overflow用户

发布于 2014-12-08 08:03:24

在这种情况下,将foreign添加到configure.ac中的AM_INIT_AUTOMAKE宏中可能会有所帮助。

票数 12
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21773003

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档