天嵌 ARM开发社区

 找回密码
 注册
查看: 1852|回复: 7

编译apps下的cam2jpg出错?

[复制链接]
duhaoke 发表于 2010-12-23 11:08:10 | 显示全部楼层 |阅读模式
求助:错误如下:如何解决啊!
arm-linux-gcc  -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] 错误
天嵌_support1 发表于 2010-12-23 11:17:52 | 显示全部楼层
1# duhaoke


你安装好编译器,
直接执行make就是了
 楼主| duhaoke 发表于 2010-12-23 11:41:05 | 显示全部楼层
2# embedsky_lxt


应该是安装好了啊!执行 arm-linux-gcc
gcc version 4.3.3 (Sourcery G++ Lite 2009q1-176)
天嵌_support1 发表于 2010-12-23 12:07:47 | 显示全部楼层
3# duhaoke


你将vediodev.h 中 的
#include <linux/compiler.h>
注释掉吧
//#include <linux/compiler.h>
 楼主| duhaoke 发表于 2010-12-23 13:50:04 | 显示全部楼层
4# embedsky_lxt


问题果然解决了,但是出现了一大堆warning。不过能编译运行出来!
谢谢你啊!
天嵌_support1 发表于 2010-12-23 14:20:18 | 显示全部楼层
:)
karensu273 发表于 2011-4-21 00:09:42 | 显示全部楼层
遇到相同问题的飘过
it1988 发表于 2012-4-1 20:13:19 | 显示全部楼层
MARK一下。
编译Ccam2jpg出错。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-9-28 11:25 , Processed in 1.028360 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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