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.
The best thing would be to help Lorenzo get pdp working with v4l2 and remove the v4l stuff. 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@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@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
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.
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@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@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
hi
i haven't had a look at your code but:
On 2011-06-29 15:31, Lorenzo Sutton wrote:
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,
now this sounds really really like bad practice.
#1 imho, [pdp_v4l] is a v4l1 object, and should stay like that. by changing it, you break all the patches that rely on [pdp_v4l] accessing their v4l1-webcam.
#2 pidip has been removed from the puredata repositories because of license issues. just using the code and assuming whatever license is a no-go.
replaced #include
<linux/videodev2.h> with #include <libv4l1-videodev.h> and renamed the
you should not hardcode this. pdp comes with an autoconf system. write a check whether a header exists and use the result of the check to include the header file. (esp. when replacing a header that comes with virtually any modern linux by one for which you need to install a 3rd party library)
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).
see above.
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
don't take anything for granted! pdp comes with autoconf: use it to write tests to check whether a system matches your expectation.
videodev.h headers.
- changed the default prefix to /usr
don't! the default prefix for every build should always be /usr/local. /usr is reserved for package managers (like apt).
packagers can easily install to /usr by specifiying "--prefix=/usr" in their packaging rules.
Sorry this is all very hacky... but as I said I'm very new to this kind of 'packaging' thing.
sorry for being so down-to-earth. the above mentioned issues shouldn't be too hard to resolve though, and it would make you skip the "packaging noob" status :-)
fgamdr IOhannes
IOhannes m zmoelnig wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
hi
i haven't had a look at your code but:
Should have mentioned this wasn't intended as anything definitive (and probably was a mistake to forward to the ml at this stage)
On 2011-06-29 15:31, Lorenzo Sutton wrote:
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,
now this sounds really really like bad practice.
#1 imho, [pdp_v4l] is a v4l1 object, and should stay like that. by changing it, you break all the patches that rely on [pdp_v4l] accessing their v4l1-webcam.
#2 pidip has been removed from the puredata repositories because of license issues. just using the code and assuming whatever license is a no-go.
Ok. It would make sense then to have pdp_v4l2 in pdp. Anyhow pidip is still in the official source for 0.42 extended presented on the front page of puredata.info
That said I don't have the skills/time to create a pdp_v4l2 so I guess if the pidip code can't be used someone (tm) should pick up the task.
replaced #include
<linux/videodev2.h> with #include<libv4l1-videodev.h> and renamed the
you should not hardcode this. pdp comes with an autoconf system. write a check whether a header exists and use the result of the check to include the header file. (esp. when replacing a header that comes with virtually any modern linux by one for which you need to install a 3rd party library)
I don't understand.
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).
see above.
Yes.
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
don't take anything for granted! pdp comes with autoconf: use it to write tests to check whether a system matches your expectation.
For granted I meant once the dependency has been checked as satisfied.
videodev.h headers.
- changed the default prefix to /usr
don't! the default prefix for every build should always be /usr/local. /usr is reserved for package managers (like apt).
packagers can easily install to /usr by specifiying "--prefix=/usr" in their packaging rules.
Ok
Sorry this is all very hacky... but as I said I'm very new to this kind of 'packaging' thing.
sorry for being so down-to-earth. the above mentioned issues shouldn't be too hard to resolve though, and it would make you skip the "packaging noob" status :-)
See above. Lorenzo
fgamdr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk4LLwYACgkQkX2Xpv6ydvS4TQCg55gsNileBf8h8mG6WAFupaVU fFAAoI+juwrr+u4vcFo1lGaZae1p4nVU =4xlr -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Jun 29, 2011, at 10:36 AM, Lorenzo Sutton wrote:
IOhannes m zmoelnig wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
hi
i haven't had a look at your code but:
Should have mentioned this wasn't intended as anything definitive
(and probably was a mistake to forward to the ml at this stage)On 2011-06-29 15:31, Lorenzo Sutton wrote:
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,
now this sounds really really like bad practice.
#1 imho, [pdp_v4l] is a v4l1 object, and should stay like that. by changing it, you break all the patches that rely on [pdp_v4l] accessing their v4l1-webcam.
#2 pidip has been removed from the puredata repositories because of
license issues. just using the code and assuming whatever license is a no-go.Ok. It would make sense then to have pdp_v4l2 in pdp. Anyhow pidip
is still in the official source for 0.42 extended presented on the
front page of puredata.infoThat said I don't have the skills/time to create a pdp_v4l2 so I
guess if the pidip code can't be used someone (tm) should pick up
the task.
We can definitely help with the tricky bits. It would be a valuable
contribution to PDP. You could also contact Yves directly (the pidip
author) and see if he would be willing to let you include the pdp_v4l2
code in PDP as the same license.
At the very least, it should be easy to get pdp_v4l compiling again
using the new header.
.hc
replaced #include
<linux/videodev2.h> with #include<libv4l1-videodev.h> and
renamed theyou should not hardcode this. pdp comes with an autoconf system. write a check whether a header
exists and use the result of the check to include the header file. (esp. when replacing a header that comes with virtually any modern
linux by one for which you need to install a 3rd party library)I don't understand.
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).
see above.
Yes.
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
thedon't take anything for granted! pdp comes with autoconf: use it to write tests to check whether a
system matches your expectation.For granted I meant once the dependency has been checked as satisfied.
videodev.h headers.
- changed the default prefix to /usr
don't! the default prefix for every build should always be /usr/local. /usr is reserved for package managers (like apt).
packagers can easily install to /usr by specifiying "--prefix=/usr"
in their packaging rules.Ok
Sorry this is all very hacky... but as I said I'm very new to this
kind of 'packaging' thing.sorry for being so down-to-earth. the above mentioned issues shouldn't be too hard to resolve though,
and it would make you skip the "packaging noob" status :-)See above. Lorenzo
fgamdr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk4LLwYACgkQkX2Xpv6ydvS4TQCg55gsNileBf8h8mG6WAFupaVU fFAAoI+juwrr+u4vcFo1lGaZae1p4nVU =4xlr -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
"We have nothing to fear from love and commitment." - New York Senator
Diane Savino, trying to convince the NY Senate to pass a gay marriage
bill
On Wed, 29 Jun 2011, Lorenzo Sutton wrote:
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,
Does V4L2 totally support PWC cameras' special options ?
I ask because V4L1 has an extension for it, and V4L2 doesn't, so, I was wondering whether V4L2 could cover all of PWC's options.
If not, then it's a good idea to use pdp_v4l.c in order to get to special features of those cams. (Though that doesn't work with most recent kernels... I just have to not upgrade it)
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
batinste 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
As stated on the wiki page that is currently broken (on wheezy not sure about ubuntu). I still have the .deb which I managed to install on a fresh system (again wheezy so not sure about ubuntu).
Lorenzo.
and http://ubuntuforums.org/showthread.php?t=1767292) but got stuck because of issues between 2.6.38, V4L and pdp.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2011-06-28 17:50, Lorenzo Sutton wrote:
this guide : http://puredata.info/docs/developer/DebianWheezyAmd64
As stated on the wiki page that is currently broken (on wheezy not sure about ubuntu). I still have the .deb which I managed to install on a fresh system (again wheezy so not sure about ubuntu).
it seems like part of the brokenness of the wiki-page is, that Gem (and pd-pdp) are currently not in wheezy. at least for Gem i can confirm, that it (re-)entered Debian/testing yesterday. it was blocked for several days (and even removed from testing) by a transition of ImageMagick.
fgmsdf IOhannes
On 28/06/2011 17:50, Lorenzo Sutton wrote:
batinste 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
As stated on the wiki page that is currently broken (on wheezy not sure about ubuntu). I still have the .deb which I managed to install on a fresh system (again wheezy so not sure about ubuntu).
I managed to compile pd-extended by tweaking /externals/Makefile as Hans previously suggested :
#LIB_TARGETS += hid pdp pidip gem2pdp iem16 pdp_opengl postlude
LIB_TARGETS += hid iem16 postlude
I don't use pd to make graphics (for now ;) ), so i removed all the pdp-related libs. I can upload my build somewhere if someone needs it, just contact me by e-mail as im not always reading the list.
Lorenzo.
and http://ubuntuforums.org/showthread.php?t=1767292) but got stuck because of issues between 2.6.38, V4L and pdp.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list