Build a servfox video server on fs2410
[Compiling environment]Ubuntu 8.10 + VMware + Windows XP
[Target machine]Fs2410
[Cross compiler]Arm-softfloat-Linux-GNU-gcc
1. Ensure that the USB and cs8900a work properly, the network communication between the target board and the host is normal, and the camera driver compatible with SPCA works properly.
See another article about camera driver porting: http://blog.csdn.net/boat_man/archive/2011/01/09/6125384.aspx.
2. Download from the networkServfox-R1_1_3.tar.gz
, Decompress the package and go to the findMakefile. Arm
, Change itMakefile
You can also modify the makefile to replace the cross-compiler with what you need (for example, my arm-softfloat-Linux-GNU-GCC ).
3. Make will generateServfox
File, copy it to the target board.
4. IfNo/dev/video0
Create a device file:Mknod/dev/video0 C 81 0
.
5../Servfox-D/dev/video0-g-s 640x480-W 7070
Run it. It is displayed normally:
Servfox version: 1.1.3 date: (c) mxhaard@magic.fr
Waiting... for connection. ctrl_c to stop !!!!
Show: servfox version: 1.1.3 date: (c) mxhaard@magic.fr when abnormal
Error opening v4l Interface
6. Download from the networkSpcaview-20061208.tar.gz
, Decompress the package and go to make. If an SDL error occurs, check the next step.
7. Download To http://www.libsdl.org/download-1.2.phpSDL-1.2.14.tar.gz
Source code package, run the./configure file, compile the file make, install the file make install, and redo make in step 1.
8../Spcaview-g-W 192.168.2.100
(IP address of my target board). If an error occurs:Cocould not initialize SDL: no available video device
, Startx switch to XWindow and then run it.
9. The console of the target machine displays:Got connection from 192.168.2.223
(The IP address of my Ubuntu virtual machine ).
10. You can see the video of the USB camera uploaded from the target board in Ubuntu! So happy!