生成错误:循环 filex <- filey 依赖项已删除

发布于 2025-01-09 18:01:44 字数 2349 浏览 0 评论 0 原文

我正在使用 make 文件目标从服务器复制两种类型的输入(.y 和 .yuv)。 我想从服务器位置复制 ../input 文件夹中的灰色图像和 yuv 图像。

#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
# Gray scale images
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
VID_INPUT_YUV_PATH = ../input
VID_INPUT_GRAYIMG_FILES =   \
    inputGray0.y    \
    inputGray1.y
VID_INPUTGRAY = $(addprefix $(VID_INPUT_YUV_PATH)/, $(VID_INPUT_GRAYIMG_FILES))
VID_INPUTGRAY_NOCLEAN = $(addprefix -e , $(VID_INPUTGRAY))

vpath %.y server:/stddataset/ped server:/stddataset/car

.PRECIOUS: $(VID_INPUT_YUV_PATH)/%
$(VID_INPUT_YUV_PATH)/% : %
    mkdir -p $(VID_INPUT_YUV_PATH)
    scp server:$^ $@

#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
# YUV images
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
VID_INPUT_YUV_FILES =   \
    inputYuv0.yuv \
    inputYuv1.yuv \
    inputYuv2.yuv \
    inputYuv3.yuv   
VID_INPUT_YUV = $(addprefix $(VID_INPUT_YUV_PATH)/, $(VID_INPUT_YUV_FILES))
VID_INPUT_NOCLEAN = $(addprefix -e , $(VID_INPUT_YUV))

$(VID_INPUT_YUV) : $(VID_INPUTGRAY) $(VID_INPUT_YUV) 

.PRECIOUS: $(VID_INPUT_YUV_PATH)/%.yuv
$(VID_INPUT_YUV_PATH)/%.yuv : 
    mkdir -p $(VID_INPUT_YUV_PATH)
    scp server:/stddataset/crowd/yuv/$(notdir $@) $@

错误:

make: Circular ../input/ inputYuv0.yuv <- ../input/ inputYuv0.yuv dependency dropped.
make: Circular ../input/ inputYuv1.yuv <- ../input/ inputYuv0.yuv dependency dropped.
make: Circular ../input/ inputYuv1.yuv <- ../input/ inputYuv1.yuv dependency dropped.
make: Circular ../input/ inputYuv2.yuv <- ../input/ inputYuv0.yuv dependency dropped.
make: Circular ../input/ inputYuv2.yuv <- ../input/ inputYuv1.yuv dependency dropped.
make: Circular ../input/ inputYuv2.yuv <- ../input/ inputYuv2.yuv dependency dropped.
make: Circular ../input/ inputYuv3.yuv <- ../input/ inputYuv0.yuv dependency dropped.
make: Circular ../input/ inputYuv3.yuv <- ../input/ inputYuv1.yuv dependency dropped.
make: Circular ../input/ inputYuv3.yuv <- ../input/ inputYuv2.yuv dependency dropped.
make: Circular ../input/ inputYuv3.yuv <- ../input/ inputYuv3.yuv dependency dropped.

如何解决此循环依赖关系。

I am copying two types of inputs (.y and .yuv) from server using make file target.
I Wants to copy gray images and yuv images at ../input folder from server location.

#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
# Gray scale images
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
VID_INPUT_YUV_PATH = ../input
VID_INPUT_GRAYIMG_FILES =   \
    inputGray0.y    \
    inputGray1.y
VID_INPUTGRAY = $(addprefix $(VID_INPUT_YUV_PATH)/, $(VID_INPUT_GRAYIMG_FILES))
VID_INPUTGRAY_NOCLEAN = $(addprefix -e , $(VID_INPUTGRAY))

vpath %.y server:/stddataset/ped server:/stddataset/car

.PRECIOUS: $(VID_INPUT_YUV_PATH)/%
$(VID_INPUT_YUV_PATH)/% : %
    mkdir -p $(VID_INPUT_YUV_PATH)
    scp server:$^ $@

#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
# YUV images
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++#
VID_INPUT_YUV_FILES =   \
    inputYuv0.yuv \
    inputYuv1.yuv \
    inputYuv2.yuv \
    inputYuv3.yuv   
VID_INPUT_YUV = $(addprefix $(VID_INPUT_YUV_PATH)/, $(VID_INPUT_YUV_FILES))
VID_INPUT_NOCLEAN = $(addprefix -e , $(VID_INPUT_YUV))

$(VID_INPUT_YUV) : $(VID_INPUTGRAY) $(VID_INPUT_YUV) 

.PRECIOUS: $(VID_INPUT_YUV_PATH)/%.yuv
$(VID_INPUT_YUV_PATH)/%.yuv : 
    mkdir -p $(VID_INPUT_YUV_PATH)
    scp server:/stddataset/crowd/yuv/$(notdir $@) $@

Error:

make: Circular ../input/ inputYuv0.yuv <- ../input/ inputYuv0.yuv dependency dropped.
make: Circular ../input/ inputYuv1.yuv <- ../input/ inputYuv0.yuv dependency dropped.
make: Circular ../input/ inputYuv1.yuv <- ../input/ inputYuv1.yuv dependency dropped.
make: Circular ../input/ inputYuv2.yuv <- ../input/ inputYuv0.yuv dependency dropped.
make: Circular ../input/ inputYuv2.yuv <- ../input/ inputYuv1.yuv dependency dropped.
make: Circular ../input/ inputYuv2.yuv <- ../input/ inputYuv2.yuv dependency dropped.
make: Circular ../input/ inputYuv3.yuv <- ../input/ inputYuv0.yuv dependency dropped.
make: Circular ../input/ inputYuv3.yuv <- ../input/ inputYuv1.yuv dependency dropped.
make: Circular ../input/ inputYuv3.yuv <- ../input/ inputYuv2.yuv dependency dropped.
make: Circular ../input/ inputYuv3.yuv <- ../input/ inputYuv3.yuv dependency dropped.

How to resolve this circular dependency.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文