Skip to content

GCC 6.3, need to remove parameters #39

@sebakerckhof

Description

@sebakerckhof

When I try to install this on debian stretch with GCC 6.3, the node-gyp rebuild step fails with the following error:

> v4l2camera@1.0.4 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions