Guide to test USB camera with luvcview

本文详细介绍了如何在ARM-Android设备上使用luvcview应用测试USB摄像头的方法。包括luvcview源码下载、编译安装所需的依赖库、解决链接错误以及指定参数运行等步骤。

Recently, I was focusing on USB camera integration to ARM- Android device.

Firstly, share the steps to test USB camera with luvcview user space application.

Test envriment: linux kernel 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux

1. Download the luvcview source code from linuxidc:

http://www.linuxidc.com/Linux/2012-06/62341.htm

extract the tar and find the README guide. Following the README guide, goto http://www.libsdl.org to install the SDL firstly.

Then, install the X11 using apt-get install libx11-dev .

2. Goto luvcview-20070512 folder, then execute make command to compile the source code.

3. How to fix the link error?

Makefile change below line

CFLAGS += -DUSE_SDL -O2 -DLINUX -DVERSION=\"$(VERSION)\" -I$(SDLFLAGS) $(WARNINGS) -ldl -lm

reference url:

http://blog.chinaunix.net/uid-22263887-id-1778992.html

4. chmod 755 luvcview, then ./luvcview, it will fail.

Then execute luvcview with below argument:

luvcview -d /dev/video0 -f yuv -s 320x240

http://blog.youkuaiyun.com/xbpkid/article/details/7167778


OK. Very Good ! Now USB camera works~~

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值