天嵌 ARM开发社区

 找回密码
 注册
查看: 1762|回复: 0

编译TQCamera_210出错

[复制链接]
NITV 发表于 2016-1-7 22:58:18 | 显示全部楼层 |阅读模式
编译TQ210的摄像头例子代码时候出现:
main.cpp: In function 'int main(int, char**)':
main.cpp:66: error: 'V4L2_DEV_NODE' was not declared in this scope
main.cpp:73: error: 'CAMERA_SET_SIZE' was not declared in this scope
main.cpp:73: error: 'CAMERA_SIZE_ARG' was not declared in this scope
main.cpp:74: error: 'CAMERA_SET_FORMAT' was not declared in this scope
main.cpp:74: error: 'CAMERA_FORMAT_ARG' was not declared in this scope
main.cpp:77: error: 'FB_DEV_NODE' was not declared in this scope
main.cpp:84: error: 'fb_grab' was not declared in this scope
main.cpp:94: error: 'v4l2_show_on_fb' was not declared in this scope
main.cpp:103: error: 'fb_ungrab' was not declared in this scope
make: *** [main.o] Error 1

文件中已经添加了:
#include <linux/videodev2.h>

请问怎样解决?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-5-5 18:51 , Processed in 1.062500 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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