我尝试为hello world示例C程序创建安装包。
我已经完成了下面的步骤。
自动扫描
mv configure.scan configure.ac编辑configure.ac以添加一些宏。
aclocal
在内创建Makefile.am
bin_PROGRAMS = hello
hello_SOURCES = hello.c最后我做了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'在Makefile.am和configure.ac文件中没有任何字符串,包括compile,missing,NEW,README或所说的必需的消息。
我该怎么办?
这些是关于某些产品的版本的信息。
CentOS 6.4版
autocomf-2.69
automake-1.14
m4-1.4
发布于 2014-02-14 16:03:09
这些文件需要存在才能符合标准的'automake/autoconf‘文件集。
遵循它给你的指令:“and -add- missing”,缺失的文件将被创建为虚拟信息,你可以(在理想情况下)适当地填写这些信息。
尝试仔细阅读autotools tutorial,或者autobook。另请参见StackOverflow: Getting started with autotools。
此外,请阅读手册页,尝试automake --help,阅读该实用程序对您有帮助的输出?
发布于 2014-12-08 08:03:24
在这种情况下,将foreign添加到configure.ac中的AM_INIT_AUTOMAKE宏中可能会有所帮助。
https://stackoverflow.com/questions/21773003
复制相似问题