NetBSD supports the v4l2 API, but it uses different headers and does not provide all the symbols.
I'll attach a patch for (the generated file) xpra/codecs/v4l2/pusher.c, but I don't know what the corresponding changes to the pyx file look like.
patch-xpra_codecs_v4l2_pusher.c​ (1.5 KB) - added by Thomas Klausner 3 years ago.
Patch for the generated file pusher.c to make it compile on NetBSD.
r12754 should make it easier for you.
This cannot be made conditional from cython, so you will have to carry that patch on the netbsd side.
If you're OK with the patch approach, please close this ticket. Otherwise, please test the header file approach.
Thank you, r12755 did make it much better.
r12754 commented out the wrong defines though.
When I comment out V4L2_FIELD_INTERLACED_TB and V4L2_FIELD_INTERLACED_BT in pusher.pyx (two places) the build succeeds.
r12759 should comment out the correct defines.
Please close if this builds out of the box for you.
I'm afraid that I've probably broken it again in fixing trunk build for centos, see r12930.
Can you please post your header file so that I can see where we need to ifdef contants?
Made some mistakes along the way.. but as of r12935, we should get the new "device_caps" support on newer linux systems and still be able to build on older ones (including centos6, and I hope netbsd). Feel free to comment or re-open if I've broken it again..