node-v4l2camera icon indicating copy to clipboard operation
node-v4l2camera copied to clipboard

GCC 6.3, need to remove parameters

Open sebakerckhof opened this issue 7 years ago • 1 comments

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.

sebakerckhof avatar Oct 12 '17 12:10 sebakerckhof

Maybe a dup of #30

RichAyotte avatar Mar 21 '18 11:03 RichAyotte