makefile - .deps/*.Po : No such file or directory compiler error

标签 makefile gnu-make autoconf

我的configure.ac看起来像

AC_PREREQ(2.61)
AC_INIT(MyProject, 1.0.0, BUG-REPORT-ADDRESS)
AM_INIT_AUTOMAKE([1.10 no-define foreign])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR(configure.ac)
AC_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([obj/threading/Makefile])
#AC_OUTPUT([Makefile obj/Makefile obj/threading/Makefile])

AC_USE_SYSTEM_EXTENSIONS
AC_LANG([C++])
AC_PROG_CXX([clang++ g++])

AX_CXX_COMPILE_STDCXX_11()
AS_IF([test "x$HAVE_CXX11" != "x1"],
      [AC_MSG_ERROR([** A compiler with C++11 language features is required.])])

CXXFLAGS='-Wall -std=c++11'
AC_SUBST(CXXFLAGS)

AC_OUTPUT

我的 Makefile.am 看起来像

AUTOMAKE_OPTIONS = subdir-objects

SRCDIR = $(top_srcdir)/src/threading

bin_PROGRAMS = node                 

node_SOURCES  = $(SRCDIR)/UnitTests/node.cpp
node_CPPFLAGS = 
node_LDFLAGS  = 
node_CXXFLAGS = $( CXXFLAGS ) 

我收到以下错误

Makefile:394: ../../src/threading/UnitTests/.deps/node-node.Po: No such file or directory

最佳答案

当我升级 autoconf 版本时,我的 autoconf 文件也遇到了类似的问题。我注意到 Debian 列表上有一个错误报告:Bug #752993这似乎与这个问题有关。因此,我们似乎在 autoconf 项目中遇到了错误。

我已遵循错误报告中的解决方法,这对我来说效果很好。因此,这意味着我删除了 Makefile.am 中的“AUTOMAKE_OPTIONS = subdir-objects”。这样做之后,我收到了很多关于 autoreconf 的警告,但之后它确实起作用了。所以,你可能想尝试一下。希望它能帮助你前进(9个月后!)

关于makefile - .deps/*.Po : No such file or directory compiler error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18839857/

相关文章:

makefile - Makefile 模式规则中的目录通配符

c - AC_CHECK_LIB 检查什么类型的符号?

makefile - 编译源子集时应用不同的标志

Linux Kernel makefile 过程详解

linux - 为 freetds 安装 sqsh (Sql Server)

visual-c++ - 每个 .exe 文件都需要在 Microsoft Visual C++ 中创建一个新项目吗?

makefile - 如何生成 Makefile 规则

autotools - 抑制不必要的输出到 config.h.in

macos - 如何在 Mac OS X 10.6 上升级到 Autoconf 2.6.2 或更高版本?

makefile - @…@在此Makefile代码段中是什么意思?