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

被折叠的 条评论
为什么被折叠?



