make[1]: *** No rule to make target `modules'. Stop.
来源:互联网 发布:商家给淘宝开消费积分 编辑:程序博客网 时间:2024/05/25 08:15
按照教程写hello world模块make时出现
make[1]: *** No rule to make target `modules'. Stop.
错误
原makefile为
#!/bin/bash
#通知编译器我们要编译模块的哪些源码
obj-m += mini_linux_module.o
#源码目录变量,这里用户需要根据实际情况选择路径
#作者是将Linux的源码拷贝到目录/media/lichee/linux-3.4下并解压的
KDIR := /media/lichee/linux-3.4
#当前目录变量
PWD ?= $(shell pwd)
#make命名默认寻找第一个目标
#make -C就是指调用执行的路径
#$(KDIR)Linux源码目录,作者这里指的是/media/lichee/linux-3.4
#$(PWD)当前目录变量
#modules要执行的操作
all:
make -C $(KDIR) M=$(PWD) modules
#make clean执行的操作是删除后缀为o的文件
clean:
rm -rf *.o
改为
#!/bin/bash
#通知编译器我们要编译模块的哪些源码
obj-m += mini_linux_module.o
#源码目录变量,这里用户需要根据实际情况选择路径
#作者是将Linux的源码拷贝到目录/media/lichee/linux-3.4下并解压的
KDIR := /media/lichee/linux-3.4
#当前目录变量
PWD ?= $(shell pwd)
#make命名默认寻找第一个目标
#make -C就是指调用执行的路径
#$(KDIR)Linux源码目录,作者这里指的是/media/lichee/linux-3.4
#$(PWD)当前目录变量
#modules要执行的操作
build: kernel_modules
kernel_modules:
make -C $(KDIR) M=$(PWD) modules
#make clean执行的操作是删除后缀为o的文件
clean:
rm -rf *.o
其实就是指明要执行的命令后编译就能通过了
- make[1]: *** No rule to make target `modules'. Stop.
- make: *** No rule to make target ' ', needed by ' '. Stop.
- make: *** No rule to make target `clean'(archive). Stop.
- make: *** No rule to make target `all'. Stop.
- “make: *** No rule to make target `all'. Stop”的解决方案
- 出现make: *** No rule to make target `all'. Stop.解决办法
- make: *** No rule to make target `configure'. Stop.
- *** No rule to make target `xxx1', needed by `xxx2'. Stop
- No rule to make target
- No rule to make target
- No rule to make target
- *** No rule to make target
- make menuconfig后命令,提示make: No rule to make target ‘menuconfig’.Stop.
- make menuconfig后命令,提示make: No rule to make target ‘menuconfig’.Stop.
- make menuconfig后命令,提示make: No rule to make target ‘menuconfig’.Stop.
- make:No rule to make target
- make ***No rule to make target
- make: *** No rule to make target
- 如何在Python 2.7上安装PyGraphviz
- 百度地图api 自定义驾车线路规划 车辆实时定位
- Linux 软件下载安装个人经验
- 京东2016笔试编程题
- PointGrey相机同步采集中使用boost::barrier
- make[1]: *** No rule to make target `modules'. Stop.
- redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
- socket 知识点
- SQL进行字符的拼接与拆分
- Qt Creator5.8调用大漠插件
- C++继承详解三 ----菱形继承、虚继承
- sh/bash/csh/Tcsh/ksh/pdksh等shell的区别
- 计算机视觉方面的数据集收藏(CV Datasets on the web)
- Pybrain学习笔记-1 pybrain介绍