make: *** 没有规则使目标"distclean"。停



我正在尝试编译VLC,我已经做了./configure,导出PKG_CONFIG_LIBDIR,当我尝试 configure.sh 时,我得到:

64-pc-linux-gnu
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-linux-gnu-strip... x86_64-linux-gnu-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
configure: error: source directory already configured; run "make distclean" there first

当我运行"make distclean"时,我得到

make: *** No rule to make target 'distclean'.  Stop.

我能做什么?

当构建不在源目录并且配置了源目录时,例如存在config.status文件时,会产生此错误。

# test to see if srcdir already configured
if test -f $srcdir/config.status; then
as_fn_error $? "source directory already configured; run "make distclean" there first" "$LINENO" 5
fi

在源目录中运行make distclean或从那里删除config.status

相关内容

  • 没有找到相关文章

最新更新