c - 让 : *** No rule to make target 'all' . 停止。 C/C++问题

标签 c linux-kernel embedded-linux beagleboneblack

我正在尝试编译从 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/

相关文章:

c - 使用原始源地址重放 http 流量

c - 数组下标的类型无效 'long int[long int]'

c - 如何在两个 Linux 模块之间共享代码?

c - 如何创建自己的 sysctl 参数

linux-kernel - Linux 用户空间中通过/dev/mem 与 PCIe 设备进行双向通信?

c - MINIX 3 中如何编译/usr/src/kernel/system 目录?

c - 加载自定义图像格式 C/C++ 二进制

linux-kernel - 不禁用中断处理程序(获取锁)中的本地中断如何导致双重获取死锁?

linux - 进程在执行系统调用时切换会发生什么?

memory-management - Linux 内存过量使用详细信息