首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >制定:*没有制定“所有”所需目标“工具”的规则。停止播放

制定:*没有制定“所有”所需目标“工具”的规则。停止播放
EN

Stack Overflow用户
提问于 2011-11-09 11:24:12
回答 1查看 9.9K关注 0票数 0

我试图安装Flite1.4。安装分为两个步骤

  1. ./configure
  2. make

但是make给了我这个错误:

代码语言:javascript
复制
make: *** No rule to make target `tools', needed by `all'.  Stop.

请帮助解决此错误。

代码语言:javascript
复制
[angus@bu flite-1.4-release]$ ls
ACKNOWLEDGEMENTS  config.status  Exports.def      Makefile       src
bin               config.sub     fliteDll.vcproj  missing        testsuite
build             configure      flite.sln        mkinstalldirs  wince
config            configure.in   include          palm
config.guess      COPYING        install-sh       README
config.log        doc            lang             sapi

[angus@cebu flite-1.4-release]$ ./configure

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for ar... ar
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for mmap... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking machine/soundcard.h usability... no
checking machine/soundcard.h presence... no
checking for machine/soundcard.h... no
checking sys/audioio.h usability... no
checking sys/audioio.h presence... no
checking for sys/audioio.h... no
checking mmsystem.h usability... no
checking mmsystem.h presence... no
checking for mmsystem.h... no
configure: creating ./config.status
config.status: creating config/config
config.status: creating config/system.mak


[angus@bu flite-1.4-release]$ make

make: *** No rule to make target `tools', needed by `all'.  Stop.
EN

回答 1

Stack Overflow用户

发布于 2011-11-09 11:37:56

你的Makefile看起来糟透了。在它的某个地方有一个类似的样子:

代码语言:javascript
复制
all: <some-other-targets> tools

这意味着目标all需要创建目标tools。但是Makefile中没有定义目标tools的行。

对于发布的代码来说,这似乎很奇怪。关于如何继续下去的一些想法:

  1. 确保目标tools拼写正确。情况很重要。
  2. 您可以尝试通过删除上面描述的行上的工具并重新运行make来消除alltools的依赖。这并不能完整地构建包,但至少您知道是否还有其他问题需要解决。
  3. 运行configure --help并查看可用于configure的可用选项,如--enable-XXXXX。与configure一起使用选项可能会修改Makefile并避免构建tools目标.

请注意,每次调用configure时,都会重新生成Makefile:因此您的修改可能会丢失。

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

https://stackoverflow.com/questions/8064307

复制
相关文章

相似问题

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