星空语 2020-04-22 16:04 采纳率: 0%
浏览 2046

linux 编译报错:install: 无法获取'testprop' 的文件状态(stat): 没有那个文件或目录

增加testprop文件后(包含Makefile和testprop.c)之后,重新编译报错
图片说明

更改如下

SUBDIRS += fb
SUBDIRS += hwreg
SUBDIRS += vdspd
+SUBDIRS += testprop

Makefile

include ../Makefile.param

.PHONY: clean all install

SUBDIRS = npu
SUBDIRS += npuhld
SUBDIRS += vpu
SUBDIRS += vgs
SUBDIRS += camera
SUBDIRS += fb
SUBDIRS += hwreg
SUBDIRS += vdspd
SUBDIRS += testprop

CLEANSUBDIRS = $(addsuffix .clean, $(SUBDIRS))

INSTALLSUBDIRS = $(addsuffix .install, $(SUBDIRS))

.PHONY: $(SUBDIRS) $(CLEANSUBDIRS)

all: $(SUBDIRS)

$(SUBDIRS):
        $(MAKE) -C $@ all

clean: $(CLEANSUBDIRS)
        find . -name "*.o" | xargs rm -f
        find . -name "*.d" | xargs rm -f

$(CLEANSUBDIRS):
        @cd $(basename $@) ; $(MAKE) clean

install: $(INSTALLSUBDIRS)

$(INSTALLSUBDIRS):
        @cd $(basename $@) ; $(MAKE) install

testprop.c

include ../Makefile.param

.PHONY: clean all install

SUBDIRS = npu
SUBDIRS += npuhld
SUBDIRS += vpu
SUBDIRS += vgs
SUBDIRS += camera
SUBDIRS += fb
SUBDIRS += hwreg
SUBDIRS += vdspd
SUBDIRS += testprop

CLEANSUBDIRS = $(addsuffix .clean, $(SUBDIRS))

INSTALLSUBDIRS = $(addsuffix .install, $(SUBDIRS))

.PHONY: $(SUBDIRS) $(CLEANSUBDIRS)

all: $(SUBDIRS)

$(SUBDIRS):
        $(MAKE) -C $@ all

clean: $(CLEANSUBDIRS)
        find . -name "*.o" | xargs rm -f
        find . -name "*.d" | xargs rm -f

$(CLEANSUBDIRS):
        @cd $(basename $@) ; $(MAKE) clean

install: $(INSTALLSUBDIRS)

$(INSTALLSUBDIRS):
        @cd $(basename $@) ; $(MAKE) install

  • 写回答

1条回答 默认 最新

  • 你知我知皆知 2024-07-25 13:28
    关注

    以下回答参考 皆我百晓生券券喵儿 等免费微信小程序相关内容作答,并由本人整理回复。

    从您提供的信息来看,似乎在编译过程中遇到了问题。libipc库中缺少 testprop 文件。根据您的 Makefile 设置,应该包含了相应的库文件路径。以下是一些建议来解决此问题:

    1. 确保 testprop 文件已正确添加到库列表中。
    2. 检查 testprop 文件是否存在于指定的路径下。
    3. 检查 testprop 文件的权限设置。

    如果您已经尝试了上述步骤,并且仍然遇到问题,请提供更多关于您的环境和配置的信息,以便我能够提供更具体的帮助。

    评论

报告相同问题?