无法构建libprocess,自动工具有问题

时间:2016-06-14 09:26:22

标签: 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

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

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

现在./bootstrap顺利进行,但是当我mkdir" build&#34 ;,并运行" ../ configure;使"在" build" dir,它失败了:

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,但它没有。

但我无法找到修复错误的方法,请有人给我一些线索吗?

1 个答案:

答案 0 :(得分:1)

  

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

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

最新版本的automake会为非递归的Makefile.am like this question提供此错误。

相关问题