Vidcat

How to install vidcat on a Verdex: (this may work on other platforms, but I don't know)

1. Download and uncompress w3cam-0.7.2.tar.gz

2. Build the jpeg and png libraries in your buildroot. This will put the required jpeg and png libraries into your gumstix build. cd gumstix-buildroot make jpeg make png

3. Open and edit the Makefile in w3cam-0.7.2. Replace the contents of the file with: (Edit the location of /gumstix-buildroot/... to represent your saved location)

CC = /gumstix-buildroot/build_arm_nofpu/staging_dir/bin/arm-linux-gcc prefix=/gumstix-buildroot/build_arm_nofpu/root exec_prefix=${prefix} sbindir=${exec_prefix}/sbin cgibindir=$(prefix)/cgi-bin bindir=${exec_prefix}/bin VERSION=0.7.2 CFLAGS = -g -O2 -I/usr/include -I/usr/X11R6/include -I/usr/lib -static -DHAVE_LIBM=0 -DHAVE_LIBZ=0 -DHAVE_LIBPNG=0 -DHAVE_LIBJPEG=0 -DVIDEO_DEV=\"/dev/video0\" -DVERSION=\"$(VERSION)\" LDFLAGS = -L/gumstix-buildroot/build_arm_nofpu/root/usr/lib/ LIBS = -ljpeg -lpng -lz -lm OBJ = w3cam.o cgi.o v4l.o default: w3cam.cgi vidcat vidcat.1 README ppmtoascii w3camd/w3camd w3cam.cgi: $(OBJ) $(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) vidcat: vidcat.o v4l.o 	$(CC) $(LDFLAGS) -o $@ vidcat.o v4l.o $(LIBS) ppmtoascii: ppmtoascii.o 	$(CC) $(LDFLAGS) -o $@ ppmtoascii.o w3camd/w3camd: cd w3camd && make install: w3cam.cgi install w3cam.cgi $(cgibindir)/ test -f $(cgibindir)/w3cam.cgi.scf || \ install w3cam.cgi.scf $(cgibindir)/ install vidcat $(bindir)/ install vidcat.1 $(prefix)/man/man1/ vidcat.1: vidcat.man sed "s/VERSION/$(VERSION)/" < vidcat.man > vidcat.1 clean: rm -f *.o w3cam.cgi vidcat ppmtoascii cd w3camd && make clean && rm -f w3camd msproper: clean rm -f config.status config.log config.cache Makefile index.html: index.in 	sed "s/@VERSION@/$(VERSION)/" < $< > $@ README: index.html lynx -dump http://www/~rasca/w3cam/index.html | \ sed "s%/www/%/home.pages.de/%g" > README tarball: msproper cd .. && tar -czvf w3cam-$(VERSION).tar.gz w3cam-$(VERSION)/

4. Compile vidcat cd w3cam-0.7.2 make vidcat

5. Copy vidcat so it will be included with your next build cp vidcat /gumstix-buildroot/build_arm_nofpu/root/usr/bin

6. Put everything together and reflash your gumstix (note: this step doesn't reflash your gumstix) cd gumstix-buildroot make