Cygwin configure: error: source directory already configured; run "make distclean" there first

Cygwin configure: error: source directory already configured; run "make distclean" there first

您好,我正在使用 cygwin 构建 FFTW 库。

但是,当我键入 'configure' 时,错误弹出为- configure: error: source directory already configured; 运行 "make distclean" 先有

但是,当我再次键入 'make distclean' 时,另一个错误弹出:make: *** No rule to make target 'distclean'。停止。

请对此提出建议。

我无法确定你的环境,所以我只能猜测。
首先,你应该执行bootstrap.sh,然后执行configure和其他make命令。

编辑:
直接原因在 configure 中的代码下方。 您应该尝试删除 config.status 并执行 bootstrap.sh && ./configure.

1715  # test to see if srcdir already configured
1716 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1717    test -f $srcdir/config.status; then
1718   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1719 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1720    { (exit 1); exit 1; }; }
1721 fi