--------------servfox移植过程-------------
http://mxhaard.free.fr/spca50x/embedded/Servfox/servfox-R1_0_0.tar.gz下载后,解压后,
make下就行了。
在rcS中添加一句
ln -s /dev/v4l/video0 /dev/video0
[root@Qiu /]# servfox -d /dev/video0 -g -s 640x480 -w 7070
--------------spcaview移植过程--------------
ftp://ftp5.linuxeden.com/hardware/spcaview-20061208.tar.gz
在PC上,spcaview –w 192.168.1.186:7070就可以看到摄像头采集来的图片了。
Servfox和spcaview还有很多选项,可以通过spcaview –h 和servfox –h查阅,其中.
解压后,还会产生,此是WEB客户端,将此客户端上传到开发板上的WEB文件夹中,则在浏览器输入 http://192.168.1.186/index-sample.html则可看到摄像头采集来的图片了。
web SERVER是移植 boa。
下面我boa的移植中www目录下就是用这里WEB客户端的。
上个图。
--------------boa移植过程-------------
1、下载Boa源码
下载地址: http://www.boa.org/
下载 boa-0.94.13.tar.gz,
[root@Localhost source]$tar xzf boa-0.94.13.tar.gz
2、生成Makefile文件
[root@Localhost src]$./configure
3、修改Makefile文件
CC = arm-linux-gcc
CPP = arm-linuxgcc -E
3、出现问题。
util.c:100:1: error: pasting "t" and "->" does not give a valid preprocessing token make: *** [util.o] Error 1
解决方法:
修改 src/compat.h
#define TIMEZONE_OFFSET(foo) foo##->tm_gmtoff
修改成
#define TIMEZONE_OFFSET(foo) (foo)->tm_gmtoff
4、交叉编译
[root@Localhost src]$ make
5、去除调试信息,减小体积,大约能减小一半还多。(可选)
[root@Localhost src]$ arm-linux-strip boa
6、Group的修改
修改 Group 0 (我改成root都不行,而且添加了root,不知道为什么索性改成0了。)
修改 User 0
7、ScriptAlias的修改
修改 ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
#ScriptAlias /cgi-bin/ /var/www/cgi-bin/ (注释掉啦……)
8、ServerName的设置
修改 #ServerName www.your.org.here
为 ServerName Qiu (打开,要不出错)
9、将mime.types文件复制/etc目录下
10、运行出现两个错误。
[root@Qiu /]# boa
[01/Jan/1970:00:00:06 +0000] boa.c:228 - icky Linux kernel bug!: No such file or directory
[root@Qiu /]# boa
[01/Jan/1970:00:00:06 +0000] boa.c:211 - getpwuid: No such file or directory
A:修改 src/boa.c,将以下判断注释掉:
/*if (setuid(0) != -1) {
DIE("icky Linux kernel bug!");
}*/
A:修改 src/boa.c,将以下判断注释掉:
/*if (passwdbuf == NULL) {
DIE("getpwuid");
}
if (initgroups(passwdbuf->pw_name, passwdbuf->pw_gid) == -1) {
DIE("initgroups");
}*/
好了。运行成功。贴图。
[root@Qiu /]# boa
[01/Jan/1970:00:17:08 +0000] boa: server version Boa/0.94.13
[01/Jan/1970:00:17:08 +0000] boa: server built Mar 24 2009 at 21:32:50.
[01/Jan/1970:00:17:08 +0000] boa: starting server pid="719", port 80
[root@Qiu /]# servfox -d /dev/video0 -g -s 640x480 -w 7070
servfox version: 1.1.3 date: 11:12:2005 (C) mxhaard@magic.fr
wrong spca5xx device
Waiting .... for connection. CTrl_c to stop !!!!
[01/Jan/1970:00:17:18 +0000] request from 192.168.0.4 "GET /favicon.ico HTTP/1.1" ("/www/favicon.ico"): document open: No such file or directory
Got connection from 192.168.0.4
[01/Jan/1970:00:17:26 +0000] request from 192.168.0.4 "HEAD /META-INF/services/javax.imageio.spi.ImageTranscoderSpi HTTP/1.1" ("/www/META-INF/services/javax.imageio.spi.ImageTranscoderSpi"): document open: No such file or directory
[01/Jan/1970:00:17:26 +0000] request from 192.168.0.4 "HEAD /META-INF/services/javax.imageio.spi.ImageOutputStreamSpi HTTP/1.1" ("/www/META-INF/services/javax.imageio.spi.ImageOutputStreamSpi"): document open: No such file or directory
[01/Jan/1970:00:17:26 +0000] request from 192.168.0.4 "HEAD /META-INF/services/javax.imageio.spi.ImageWriterSpi HTTP/1.1" ("/www/META-INF/services/javax.imageio.spi.ImageWriterSpi"): document open: No such file or directory
[01/Jan/1970:00:17:26 +0000] request from 192.168.0.4 "HEAD /META-INF/services/javax.imageio.spi.ImageReaderSpi HTTP/1.1" ("/www/META-INF/services/javax.imageio.spi.ImageReaderSpi"): document open: No such file or directory
[01/Jan/1970:00:17:26 +0000] request from 192.168.0.4 "HEAD /META-INF/services/javax.imageio.spi.ImageInputStreamSpi HTTP/1.1" ("/www/META-INF/services/javax.imageio.spi.ImageInputStreamSpi"): document open: No such file or directory
用户603678 2012-10-27 20:33
fanyan_tll_621621837 2012-8-31 23:56
用户377235 2012-8-31 12:47
不错,同感,支持下。
用户377235 2012-8-6 21:41
用户377235 2012-8-3 11:38
用户377235 2012-7-31 19:44
用户377235 2012-7-23 12:30
用户377235 2012-7-18 12:55
有同感
用户527782 2012-7-17 17:38
357854360_973111976 2012-7-11 12:46
谢谢支持。