Skip to content

Make command error: not declared in this scope #2

@majzlik

Description

@majzlik

I've managed to solve some issues while trying to 'make' the KinectTouch, but I can't get through this one:

../src/KinectTouch.cpp:76: error: ‘Mat1s’ was not declared in this scope
../src/KinectTouch.cpp:76: error: template argument 1 is invalid
../src/KinectTouch.cpp:76: error: template argument 2 is invalid
../src/KinectTouch.cpp:76: error: ‘Mat1s’ has not been declared
../src/KinectTouch.cpp: In function ‘void average(int&, int&)’:
../src/KinectTouch.cpp:77: error: ‘Mat1d’ was not declared in this scope
../src/KinectTouch.cpp:77: error: expected ;' before ‘acc’ ../src/KinectTouch.cpp:78: error: expected;' before ‘frame’
../src/KinectTouch.cpp:80: error: request for member ‘size’ in ‘frames’, which is of non-class type ‘int’
../src/KinectTouch.cpp:81: error: invalid types ‘int[unsigned int]’ for array subscript
../src/KinectTouch.cpp:81: error: ‘frame’ was not declared in this scope
../src/KinectTouch.cpp:82: error: ‘acc’ was not declared in this scope
../src/KinectTouch.cpp:85: error: ‘acc’ was not declared in this scope
../src/KinectTouch.cpp:85: error: request for member ‘size’ in ‘frames’, which is of non-class type ‘int’
../src/KinectTouch.cpp: In function ‘int main()’:
../src/KinectTouch.cpp:112: error: ‘Mat1s’ was not declared in this scope
../src/KinectTouch.cpp:112: error: expected ;' before ‘depth’ ../src/KinectTouch.cpp:113: error: ‘Mat1b’ was not declared in this scope ../src/KinectTouch.cpp:113: error: expected;' before ‘depth8’
../src/KinectTouch.cpp:114: error: ‘Mat3b’ was not declared in this scope
../src/KinectTouch.cpp:114: error: expected ;' before ‘rgb’ ../src/KinectTouch.cpp:116: error: expected;' before ‘debug’
../src/KinectTouch.cpp:118: error: expected ;' before ‘foreground’ ../src/KinectTouch.cpp:119: error: expected;' before ‘foreground8’
../src/KinectTouch.cpp:121: error: expected ;' before ‘touch’ ../src/KinectTouch.cpp:123: error: expected;' before ‘background’
../src/KinectTouch.cpp:124: error: ‘Mat1s’ cannot appear in a constant-expression
../src/KinectTouch.cpp:124: error: template argument 1 is invalid
../src/KinectTouch.cpp:124: error: template argument 2 is invalid
../src/KinectTouch.cpp:124: error: invalid type in declaration before ‘(’ token
/System/Library/Frameworks/opencv.framework/Headers/highgui.hpp:53: error: too few arguments to function ‘void cv::namedWindow(const std::string&, int)’
../src/KinectTouch.cpp:138: error: at this point in file
../src/KinectTouch.cpp:147: error: ‘depth’ was not declared in this scope
../src/KinectTouch.cpp:148: error: invalid types ‘int[unsigned int]’ for array subscript
../src/KinectTouch.cpp:150: error: ‘background’ was not declared in this scope
../src/KinectTouch.cpp:157: error: ‘depth’ was not declared in this scope
../src/KinectTouch.cpp:167: error: ‘foreground’ was not declared in this scope
../src/KinectTouch.cpp:170: error: ‘touch’ was not declared in this scope
../src/KinectTouch.cpp:211: error: ‘depth8’ was not declared in this scope
../src/KinectTouch.cpp:212: error: ‘debug’ was not declared in this scope

I've googled it and it seems to have something with including OpenCV libs (or something). I've tried to uninstall and install newest OpenCV, but I'm getting the same error.

Any ideas? Thanks.

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