【发布时间】:2020-01-07 08:33:18
【问题描述】:
我正在尝试编译我在 Eclipse CDT 3.8.1 上从 GitHub https://github.com/severinson/VLC-driver 下载的代码并收到此错误:"make: *** No rule to make target '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吗?
-
@cocool97,我添加了一个在编译代码时生成的 makefile。如何更改此 makefile?
标签: c linux-kernel embedded-linux beagleboneblack