[Image-SIG] Python Capture image 2

Phillip Neumann bob at sofsis.cl
Sun Sep 12 17:10:05 CEST 2004


El dom, 12-09-2004 a las 03:46, rjkimble at comcast.net escribió:
> I would think that it should work under FreeBSD -- doesn't FreeBSD have Linux compatibility libraries?
> 
> 

Hi, yes, freebsd has some kinf of "binary compatilibilty"...  but not
for such a speficif thing as V4L...

i.e. linux/videodev.h

look:
killfill at book ~/pyv4l-0.5.0> python setup.py install
running install
running build
running build_ext
building 'v4l' extension
cc -fno-strict-aliasing -DNDEBUG -O -pipe -DTHREAD_STACK_SIZE=0x20000
-fPIC -I/usr/local/include/python2.3 -c v4l.c -o
build/temp.freebsd-5.3-BETA3-i386-2.3/v4l.o
v4l.c:31:28: linux/videodev.h: No such file or directory
v4l.c:36:22: X11/Xlib.h: No such file or directory
v4l.c:37:23: X11/Xutil.h: No such file or directory
v4l.c:38:36: X11/extensions/xf86dga.h: No such file or directory
v4l.c:97: error: field `mbuf' has incomplete type
v4l.c:98: error: field `vm' has incomplete type
v4l.c: In function `v4l_getCapabilities':
v4l.c:340: error: storage size of 'vc' isn't known
v4l.c:342: error: `VIDIOCGCAP' undeclared (first use in this function)
v4l.c:342: error: (Each undeclared identifier is reported only once
v4l.c:342: error: for each function it appears in.)
v4l.c: In function `v4l_getChannel':
v4l.c:364: error: storage size of 'vc' isn't known
v4l.c:367: error: `VIDIOCGCHAN' undeclared (first use in this function)
v4l.c: In function `v4l_setChannel':
v4l.c:385: error: storage size of 'vc' isn't known
v4l.c:389: error: `VIDIOCGCHAN' undeclared (first use in this function)
v4l.c:396: error: `VIDIOCSCHAN' undeclared (first use in this function)
v4l.c: In function `v4l_getTuner':
v4l.c:406: error: storage size of 'vt' isn't known
v4l.c:409: error: `VIDIOCGTUNER' undeclared (first use in this function)
v4l.c: In function `v4l_setTuner':
v4l.c:429: error: storage size of 'vt' isn't known
v4l.c:431: error: `VIDIOCGTUNER' undeclared (first use in this function)
v4l.c:438: error: `VIDIOCSTUNER' undeclared (first use in this function)
v4l.c: In function `v4l_getPicture':
v4l.c:450: error: storage size of 'vp' isn't known
v4l.c:452: error: `VIDIOCGPICT' undeclared (first use in this function)
v4l.c: In function `v4l_setPicture':
v4l.c:480: error: storage size of 'vp' isn't known
v4l.c:489: error: `VIDIOCSPICT' undeclared (first use in this function)
v4l.c: In function `v4l_startCapture':


etc
etc
etc




thanks!

> > Hello...
> > 
> > 
> > Ive just find this file on the net: http://www.sofsis.cl/v4l.c
> > 
> > seems to be what im looking for. Its for linux.
> > 
> > How much difficult is it to port this to freebsd?.. i see there some
> > linuxism?...
> > 
> > 
> > thanks!
> > 
> > -- 
> > Phillip Neumann <bob at sofsis.cl>
> > 
> > _______________________________________________
> > Image-SIG maillist  -  Image-SIG at python.org
> > http://mail.python.org/mailman/listinfo/image-sig
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig
-- 
Phillip Neumann <bob at sofsis.cl>



More information about the Image-SIG mailing list