代码之家  ›  专栏  ›  技术社区  ›  Jerrylk

未能构建libprocess,autotools出现问题[重复]

  •  0
  • Jerrylk  · 技术社区  · 9 年前

    我从下载libprocess https://github.com/3rdparty/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对象”。ac文件:

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

    现在./bootstrap运行顺利,但当我在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,但它没有。

    但我找不到修复这个bug的方法,谁能给我一些线索?

    1 回复  |  直到 9 年前
        1
  •  1
  •   Community CDub    8 年前

    所以我在配置中添加了“subdir对象”。ac文件

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

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