Skip to content

node-opencv 4.0.0 does not build against OpenCV 3.1.0 with GCC 5.2.0 #355

@rse

Description

@rse

When I try to build node-opencv 4.0.0 (actually the latest "master" form Github) against OpenCV 3.1.0 I get the following errors under GCC 5.2.0:

> [email protected] install /u/rse/prj/opencv/node-opencv
> node-pre-gyp install --fallback-to-build

gmake: Entering directory '/u/rse/prj/opencv/node-opencv/build'
  CXX(target) Release/obj.target/opencv/src/init.o
In file included from ../src/init.cc:5:0:
../src/CascadeClassifierWrap.h:5:7: error: 'CascadeClassifier' in namespace 'cv' does not name a type
   cv::CascadeClassifier cc;
       ^
In file included from ../src/init.cc:6:0:
../src/VideoCaptureWrap.h:5:7: error: 'VideoCapture' in namespace 'cv' does not name a type
   cv::VideoCapture cap;
       ^
In file included from ../src/init.cc:15:0:
../src/Stereo.h:8:7: error: 'StereoBM' in namespace 'cv' does not name a type
   cv::StereoBM stereo;
       ^
../src/Stereo.h:14:29: error: 'cv::StereoBM' has not been declared
   StereoBM(int preset = cv::StereoBM::BASIC_PRESET, int ndisparities = 0,
                             ^
../src/Stereo.h:23:7: error: 'StereoSGBM' in namespace 'cv' does not name a type
   cv::StereoSGBM stereo;
       ^

Before digging deeper, the questions for me now are:

  1. Is node-opencv intended to be built against OpenCV 3 at all?
  2. If (1) is "yes", is just the latest OpenCV 3.1.0 the problem?
  3. If (1) is "yes", is perhaps the GCC 5.2 and its strictness here the problem?

Has anybody successfully built node-opencv against OpenCV 3?

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