Do you know where your variables are? | |
PerlMonks |
Re^2: XS, raspberry pi, and a hundred bucksby Aldebaran (Curate) |
on Nov 09, 2021 at 08:40 UTC ( [id://11138598]=note: print w/replies, xml ) | Need Help?? |
Thanks for buying the book! :)
Youbetcha. Buy a Pi 3 and a NoIR Camera Board v2. Make sure you've got a 2.1A USB charger plug with a good quality cable. You'll also need a good micro SD card. Mine all range from 16-64GB. Spend a little more here; a quality card makes a difference. All in all, you should be right there in around $100.I got a pi 3B+, NoIR Camera Board v2, 3000 mA power, 32 gig micro sd card. I can hardly believe that it already works. I did not fdisk the sd card as it was already loaded with a perfectly-good unix. Output is vivid and quick. I learned XS over time and don't remember the reading I did. WiringPi, which is the backend to RPi::WiringPi which the Raspberry Pi book is based on is an XS module. Most of the code wraps an external C/C++ library, but there is some XS involved. A very trivial XS module I've written is Bit::Manip. There's not much XS there either, but it's a good example of how to present C functions to Perl code, how the files all hang together and such.It was very helpful for me to work through the first 2 examples, EX-1. XS interface description is comprehensive, and difficult. Before this, I never understood what was happening in the command: h2xs -A -n MytestIt finally covers page 176 of Intermediate Perl to work through it. Regarding the install, things are moving forward pretty well, but I have run into my first roadblock. I'm getting 404's beginning with this guy: libgstreamer-plugins-base1.0-devand it tanks whatever is to follow. Update: I've isolated the commands that result in 404-errors:
Since the problem seems to be in the plugins department, I thought I might be able to get away with autogen.sh, but no dice:
I think this brands me as a debian user:
I took a look around to see what what I could checking both gst-plugins-base1.0 and gstreamer. I seem not to have a lot of elbow grease when it comes to distributions, if it veers off the main path.... Q1) Do I look for newer versions or change my settings? Thx all for comments,
In Section
Seekers of Perl Wisdom
|
|