node-v4l2camera
node-v4l2camera copied to clipboard
GCC 6.3, need to remove parameters
When I try to install this on debian stretch with GCC 6.3, the node-gyp rebuild step fails with the following error:
> [email protected] install /home/barco/test/node_modules/v4l2camera
> node-gyp rebuild
make: Entering directory '/home/barco/test/node_modules/v4l2camera/build'
CC(target) Release/obj.target/v4l2camera/capture.o
In file included from ../capture.h:7:0,
from ../capture.c:1:
/usr/include/linux/videodev2.h:2126:20: error: field ‘timestamp’ has incomplete type
struct timespec timestamp;
^~~~~~~~~
v4l2camera.target.mk:112: recipe for target 'Release/obj.target/v4l2camera/capture.o' failed
make: *** [Release/obj.target/v4l2camera/capture.o] Error 1
make: Leaving directory '/home/barco/test/node_modules/v4l2camera/build'
...
If I manually clone this repo to node_modules and remove the -std=c11
and -std=c++14
flags from the binding file, everything seems to build and work.
Maybe a dup of #30