Hmm... how to put this...

ivtv-1.2.0 (and probably others, since this is something I've gotten
used to just patching around) is not likely to build against most
distributions because of some screwiness in the v4l2-ctl.cpp and
v4l2-dbg.cpp, and it's got to do with recent changes to the v4l2
headers, particularly videodev2.h.

In v4l2-dbg.cpp, it's being included as "videodev2.h" which isn't
likely to work because it's not in gcc's default include path, and the
Makefiles supply no -I statements to tell it to look elsewhere.

In v4l2-ctl.cpp, it's being included as <linux/videodev2.h> which is
actually almost correct, but isn't likely to build for anyone that's
not running Gentoo.  While it'll match against the header in
/usr/include/linux/videodev2.h on most people's systems, that version
is simply not likely to be compatible, because that header (unless
something's radically changed) is going to be from the kernel that was
present when glibc was compiled on that system(*)--the variables that
these programs want were not defined until recently, which means
compilation is going to fail (loudly) on anything that hasn't had it's
glibc and kernel headers redone because there's defines missing.  (For
certain, this is a no-go on Slackware and likely others)

Has anyone even been paying attention to this problem?  Basically, in
both cases these should /probably/ be looking to include
/lib/modules/`uname -r`/source/include/linux/videodev2.h if they're
expected to work, but seeing the include in v4l2-dbg.cpp being so far
off the mark makes me wonder.  Is there someone who can explain WTF is
going on with these?  It's getting a little tiresome hacking around
this, and something along these lines has been going on as far back as
0.4.x IIRC.




* - The reason for this is very long and convoluted but if you've been
replacing of the headers under /usr/include/linux as you build each
new kernel, that would be wrong.

_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to