主题 : mini2440 光盘自带的arm-linux-gcc 4.3.2编译驱动怎么会出现这种结果呢 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 9815
精华: 0
发帖: 5
金钱: 50 两
威望: 22 点
综合积分: 10 分
注册时间: 2009-10-14
最后登录: 2009-12-22
楼主  发表于: 2009-11-17 11:04

 mini2440 光盘自带的arm-linux-gcc 4.3.2编译驱动怎么会出现这种结果呢

mini2440 光盘自带的arm-linux-gcc 4.3.2编译驱动怎么会出现这种结果呢
各位前辈请帮帮忙吧
[root@tom ~]# cd /fbg
[root@tom fbg]# ls
mini2440_adc.c  TLV5636.c  TLV5636TEST.c
[root@tom fbg]# arm-linux-gcc -o TLV5636 TLV5636.c
TLV5636.c:11:24: error: linux/init.h: No such file or directory
TLV5636.c:12:26: error: linux/config.h: No such file or directory
TLV5636.c:14:26: error: linux/module.h: No such file or directory
TLV5636.c:16:39: error: linux/delay.h: No such file or directory
TLV5636.c:17:40: error: linux/slab.h: No such file or directory
TLV5636.c:21:38: error: linux/proc_fs.h: No such file or directory
TLV5636.c:24:38: error: asm/delay.h: No such file or directory
TLV5636.c:25:44: error: asm/system.h: No such file or directory
TLV5636.c:26:59: error: asm/uaccess.h: No such file or directory
TLV5636.c:27:43: error: asm-arm/arch-s3c2410/hardware.h: No such file or directory
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-11-17 11:09
驱动从来就不是这样编译的。正确的编译方法参考这里http://www.aiothome.com/bbs/read.php?tid-2670.html
[ 此帖被kasim在2009-11-17 11:20重新编辑 ]
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 9815
精华: 0
发帖: 5
金钱: 50 两
威望: 22 点
综合积分: 10 分
注册时间: 2009-10-14
最后登录: 2009-12-22
2楼  发表于: 2009-11-17 11:37
十分感谢,呵呵,我是新手,写的第一个驱动,看来非得写 MAKEFILE了