On Thursday 11 March 2010 17:03:09 Frank Schaefer wrote:
> Pascal Stumpf schrieb:
> > Hello guys,
> >
> > I’d very much like to help out with this, at least on FreeBSD.
> 
> Great !
> 
> > V4L
> > compatibility was released recently, so it shouldn’t be too 
hard to get
> > this to work.
> 
> Does FreeBSD support the V4L2-API or only V4L1 ?
> What about other BSDs ?
Both V4L2 and V4L are supported. Currently it’s only for 
FreeBSD, and I don’t know about any plans for other BSDs. 
> 
> > First off, I noticed that building kdenetwork4 (from ports) 
actually
> > fails when v4l is installed, since cmake tries to configure it 
with
> > v4l-support and make then does not find the required 
header files
> > although they are installed by the multimedia/libv4l and
> > multimedia/v4l_compat ports. Looking at the source code, 
it now became
> > obvious to me why. -_-
> > I’ll try again as soon as I get on my FreeBSD system again 
and report
> > back.
> 
> Hmm... compilation should not fail on FreeBSD...
> I can't see why, the v4l-headers are included only #ifdef 
__linux__ .
> Could you please post the error messages ?
Well: Since v4l is found on the system by cmake, it tries to 
compile it with webcam support. However, since the necessary 
headers are only included by #ifdef __linux__, compilation fails. I 
have now tried removing the "defined (__linux__)" stuff in the 
sourcecode, but it seems there are problems with the header 
files provided by the multimedia/v4l_compat port:

[  0%] Built target kopete_automoc
[ 10%] Built target kopete
[ 10%] Built target kopete_videodevice_automoc
[ 10%] Building CXX object 
libkopete/avdevice/CMakeFiles/kopete_videodevice.dir/kopete_videodevice_automoc.o
In file included from /usr/local/include/linux/videodev.h:17,
                 from /home/pascal/src/kopete-
build/libkopete/avdevice/../../../kopete/libkopete/avdevice/videodevice.h:52,
                 from /home/pascal/src/kopete-
build/libkopete/avdevice/../../../kopete/libkopete/avdevice/videodevicepool.h:31,
                 from /home/pascal/src/kopete-
build/libkopete/avdevice/moc_videodevicepool.cpp:10,
                 from /home/pascal/src/kopete-
build/libkopete/avdevice/kopete_videodevice_automoc.cpp:4:
/usr/local/include/linux/videodev2.h:67: error: declaration does 
not declare anything
/usr/local/include/linux/videodev2.h:72: error: declaration does 
not declare anything
*** Error code 1

Stop in /home/pascal/src/kopete-build.
*** Error code 1

Stop in /home/pascal/src/kopete-build.
*** Error code 1

Stop in /home/pascal/src/kopete-build.


The lines in question are:
typedef uint64_t __u64;
and
typedef int64_t __s64;

Could this possibly have anything to do with the architecture 
(amd64)? :/
> 
> > Regards,
> > Pascal
> >
> > PS: Please CC me on replies since I’m not subscribed to 
the list.
> 
> You should subscribe to the list, otherwise Matt has to 
approve all you
> posts :(.
Ok, I’ll subscribe. :)
> 
> Regards,
> Frank
Regards,
Pascal
> 
> >> I noticed that we currently enable video-support only for 
Linux.
> >> It should be possible to enable it for other (Unix-) 
systems, too, if
> >> they provide the V4L or V4L2-API (using compat-ioctls or 
whatever).
> >>
> >> If anyone want to test it/work on it, he should start with 
modifying the
> >> lines
> >>
> >> #if defined(__linux__) && defined(ENABLE_AV)
> >>
> >> in libkopete/avdevice/videodevicepool.cpp.
> >>
> >> Maybe that and possibly a different #include for the API-
headers are
> >> already sufficent to get it work.
> >>
> >> Cheers,
> >> Frank
> 
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to