天嵌 ARM开发社区

 找回密码
 注册
查看: 1877|回复: 1

请问:基于TQ2440的示例程序cam2jpg在2.6.30.4编译不过去?

[复制链接]
小布丁 发表于 2009-11-2 11:06:34 | 显示全部楼层 |阅读模式
请问:基于TQ2440的示例程序cam2jpg在2.6.30.4编译不过去?
     错误信息:
    [root@localhost cam2jpg]# make
     /opt/EmbedSky/4.3.3/bin/arm-linux-gcc-4.3.3  -O2 -Wall -c -o main.o main.c
    In file included from main.c:18:
    videodev.h:4:28: error: linux/compiler.h: No such file or directory
     main.c: In function 'main':
     main.c:66: warning: pointer targets in passing argument 1 of 'getJpegPicture'    differ in signedness
     main.c:86: warning: pointer targets in passing argument 1 of 'getJpegPicture' differ in signedness
     make: *** [main.o] 错误 1

    没有包含linux/compiler.h ,说明编译时候没去找2.6.30.4内核的头文件
  请问编译时候是不是还要加什么参数?
亚瑟王 发表于 2009-11-12 16:51:56 | 显示全部楼层
不用加参数直接编译即可啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-4-30 06:06 , Processed in 1.078132 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表