[PD] pdp removing v4l in favour of v4l2 [WAS] Re: Pd-extended build for Ubuntu 11.04 x64 ?
Lorenzo Sutton
lsutton at libero.it
Wed Jun 29 15:31:10 CEST 2011
Previously sent to Hans only forwarding to the list.
Hi again...
> The best thing would be to help Lorenzo get pdp working with v4l2 and
> remove the v4l stuff.
It doesn't seem so trivial though... I hadn't understood correctly that
pdp_v4l2 is actually part of pidip, not pdp.
So following the radical approach of totally getting rid of v4l in
favour of v4l2 here's my first attempt where I brutally replaced
pdp_v4l.c with the contents of pdp_v4l2.c, replaced #include
<linux/videodev2.h> with #include <libv4l1-videodev.h> and renamed the
setup function and symbol in the setup function to pdp_v4l (i.e. the
object is still [pdp_v4l] when you load the pdp library).
It seems to work (only the [pdp_v4l] didn't test the rest) on a vanilla
build of 0.43
I did some changes to configure.ac concerning the ability to pick up the
pd source file (giving for granted puredata-dev is installed) and the
videodev.h headers.
- changed the default prefix to /usr
- changed videodev.h to videodev2.h
Sorry this is all very hacky... but as I said I'm very new to this kind
of 'packaging' thing.
Lorenzo.
> You could also try removing pdp from the build,
> in externals/Makefile, see the variable LIB_TARGETS. Then at least
> you'll have all of Pd-extended minus pdp. Or another kludge is to make
> a symlink to the old v4l:
>
> sudo apt-get install libv4l-dev
> sudo ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h
>
> .hc
>
> On Mon, 27 Jun 2011 18:20 +0200, "batinste"<dwanafite at yahoo.fr> wrote:
>> Hi list
>>
>> I'm looking for some Pd-extended build for Ubuntu 11.04 x64 (Natty
>> Narwhal, 2.6.38 kernel). I've tried to compile 0.42.5 by myself (with
>> this guide : http://puredata.info/docs/developer/DebianWheezyAmd64 and
>> http://ubuntuforums.org/showthread.php?t=1767292) but got stuck because
>> of issues between 2.6.38, V4L and pdp.
>>
>> _______________________________________________
>> Pd-list at iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> http://lists.puredata.info/listinfo/pd-list
>>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdp-0.12.6-lorenzo.tar.gz
Type: application/x-gzip
Size: 485759 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110629/ec0b516d/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdp_v4l_test_patch.pd
Type: text/x-puredata
Size: 2194 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110629/ec0b516d/attachment-0003.bin>
More information about the Pd-list
mailing list