无法构建 libprocess,autotools 有问题

fail to build libprocess, something wrong with the autotools

我从 https://github.com/3rdparty/libprocess 下载 libprocess,然后按照构建命令 运行:

./bootstrap

会有一条警告说:

Makefile.am:97: warning: source file 'src/tests/time_tests.cpp' is in a subdirectory,
Makefile.am:97: but option 'subdir-objects' is disabled

所以我在 configure.ac 文件中添加了 'subdir-objects' :

AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability foreign subdir-objects])

现在 ./bootstrap 运行顺利,但是当我在 "build" 目录中 mkdir "build" 和 运行 "../configure; make" 时,它失败了:

Making all in 3rdparty
Makefile:879: gmock-1.6.0/src/.deps/libgmock_la-gmock-all.Plo: No such file or directory
Makefile:880: gmock-1.6.0/gtest/src/.deps/libgmock_la-gtest-all.Plo: No such file or directory
Makefile:881: ry-http-parser-1c3624a/.deps/libry_http_parser_la-http_parser.Plo: No such file or directory
Makefile:882: stout/tests/.deps/stout_tests-bytes_tests.Po: No such file or directory
Makefile:883: stout/tests/.deps/stout_tests-duration_tests.Po: No such file or directory

我发现,在 build/3rdparty 目录中,有目录:

$(GMOCK)
$(GTEST)
$(RY_HTTP_PARSER)
$(STOUT)

所以我认为问题是 $(GMOCK) 应该在配置过程中转换为 gmock-1.6.0,但它没有。

但是我找不到修复错误的方法,请谁给我一些线索?

so I've added the 'subdir-objects' in the configure.ac file

这可能是您的问题。您的 bootstrap 问题只是一个警告。

最新版本的 automake 将针对非递归 Makefile.am、like this question.

给出此错误