我正在尝试编译从 GitHub https://github.com/severinson/VLC-driver 下载的代码在 Eclipse CDT 3.8.1 上并收到此错误:
“make:***没有规则可以创建目标'x86_64all'”
。
我已经包含了所有 linux-headers(linux-headers 4.15.0-58 generic),并且我已经搜索了很多这个错误,每个人都说要对 makefile 进行更改。我无法找到 makefile,如何更改 makefile?
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
-include ../makefile.init
RM := rm -rf
# All of the sources participating in the build are defined here
-include sources.mk
-include src/subdir.mk
-include subdir.mk
-include objects.mk
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif
-include ../makefile.defs
# Add inputs and outputs from these tool invocations to the build variables
# All Target
all: VLC_Driver
# Tool invocations
VLC_Driver: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: GCC C Linker'
gcc -o "VLC_Driver" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '
# Other Targets
clean:
-$(RM) $(EXECUTABLES)$(OBJS)$(C_DEPS) VLC_Driver
-@echo ' '
.PHONY: all clean dependents
.SECONDARY:
-include ../makefile.targets
最佳答案
在您的 Makefile 中,您可以看到如下标签:
VLC_Driver: $(OBJS) $(USER_OBJS)
这里的VLC_Driver是一个目标。 标准 make 命令中此 make 命令的默认目标是 all
。无论出于何种原因,Eclipse 的目标都是您没有的 x86_64all
。要在 Eclipse 中编辑构建目标,请转至 Make Target View :
窗口 > 显示 View > 创建目标
您需要将其设置为全部
。
更多信息here .
关于c - 让 : *** No rule to make target 'all' . 停止。 C/C++问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57788547/