Failed to build a project using opencv libs and headers.
Additional include directories MVS:
C:\OpenCV\build\install\include
In a header file:
#include < opencv2/core/core.hpp >
#include < opencv2/imgproc/imgproc.hpp >
Build Output
2>c:\opencv\build\install\include\opencv2\core\cvdef.h(58): error C2059: syntax error: 'namespace'
2>c:\opencv\build\install\include\opencv2\core\cvdef.h(58): error C2143: syntax error: missing ';' before '{'
2>c:\opencv\build\install\include\opencv2\core\cvdef.h(58): error C2447: '{': missing function header (old-style formal list?)
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(437): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(437): error C2143: syntax error: missing ';' before '&'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(437): error C2530: 'cv::InputArray': references must be initialized
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(438): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(438): error C2378: 'cv::InputArray': redefinition; symbol cannot be overloaded with a typedef
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(437): note: see declaration of 'cv::InputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(438): error C2146: syntax error: missing ';' before identifier 'InputArrayOfArrays'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(439): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(439): error C2143: syntax error: missing ';' before '&'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(439): error C2530: 'cv::OutputArray': references must be initialized
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(440): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(440): error C2378: 'cv::OutputArray': redefinition; symbol cannot be overloaded with a typedef
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(439): note: see declaration of 'cv::OutputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(440): error C2146: syntax error: missing ';' before identifier 'OutputArrayOfArrays'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(441): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(441): error C2143: syntax error: missing ';' before '&'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(441): error C2530: 'cv::InputOutputArray': references must be initialized
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(442): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(442): error C2378: 'cv::InputOutputArray': redefinition; symbol cannot be overloaded with a typedef
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(441): note: see declaration of 'cv::InputOutputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(442): error C2146: syntax error: missing ';' before identifier 'InputOutputArrayOfArrays'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(444): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(444): error C2040: 'cv::InputOutputArray': 'int' differs in levels of indirection from 'int &'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(444): error C2146: syntax error: missing ';' before identifier 'noArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(1205): error C2061: syntax error: identifier 'OutputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(1213): error C2061: syntax error: identifier 'OutputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(1213): error C2535: 'void cv::Mat::copyTo(void) const': member function already defined or declared
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(1205): note: see declaration of 'cv::Mat::copyTo'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(1228): error C2061: syntax error: identifier 'OutputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(1250): error C2061: syntax error: identifier 'InputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(1317): error C2061: syntax error: identifier 'InputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(1326): error C2061: syntax error: identifier 'InputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(1336): error C2061: syntax error: identifier 'InputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(2442): error C2061: syntax error: identifier 'OutputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(2444): error C2061: syntax error: identifier 'OutputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(2444): error C2535: 'void cv::UMat::copyTo(void) const': member function already defined or declared
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(2442): note: see declaration of 'cv::UMat::copyTo'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(2446): error C2061: syntax error: identifier 'OutputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(2453): error C2061: syntax error: identifier 'InputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(2464): error C2061: syntax error: identifier 'InputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(2467): error C2061: syntax error: identifier 'InputArray'
2>c:\opencv\build\install\include\opencv2\core\mat.inl.hpp(811): error C2660: 'cv::Mat::copyTo': function does not take 1 arguments
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(1205): note: see declaration of 'cv::Mat::copyTo'
2>c:\opencv\build\install\include\opencv2\core\mat.inl.hpp(821): error C2660: 'cv::Mat::convertTo': function does not take 2 arguments
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(1228): note: see declaration of 'cv::Mat::convertTo'
2>c:\opencv\build\install\include\opencv2\core\mat.inl.hpp(3748): error C2660: 'cv::UMat::copyTo': function does not take 1 arguments
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(2442): note: see declaration of 'cv::UMat::copyTo'
2>c:\opencv\build\install\include\opencv2\core\mat.inl.hpp(3758): error C2660: 'cv::UMat::convertTo': function does not take 2 arguments
2>c:\opencv\build\install\include\opencv2\core\mat.hpp(2446): note: see declaration of 'cv::UMat::convertTo'
2>c:\opencv\build\install\include\opencv2\core.hpp(308): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(348): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(388): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(413): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(441): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(445): error C2061: syntax error: identifier 'InputArray'
2>c:\opencv\build\install\include\opencv2\core.hpp(466): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(494): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(522): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(535): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(551): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(560): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(569): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(597): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(610): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(632): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(671): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(684): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(711): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(718): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(782): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(812): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(840): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(879): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(900): error C2061: syntax error: identifier 'OutputArray'
2>c:\opencv\build\install\include\opencv2\core.hpp(908): error C2146: syntax error: missing ')' before identifier 'mv'
2>c:\opencv\build\install\include\opencv2\core.hpp(931): error C2146: syntax error: missing ')' before identifier 'm'
2>c:\opencv\build\install\include\opencv2\core.hpp(991): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1007): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1016): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1024): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1058): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1076): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1091): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1123): error C2061: syntax error: identifier 'OutputArray'
2>c:\opencv\build\install\include\opencv2\core.hpp(1144): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(1163): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1185): error C2061: syntax error: identifier 'OutputArray'
2>c:\opencv\build\install\include\opencv2\core.hpp(1209): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(1227): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1254): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(1281): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(1309): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(1326): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1352): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(1364): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1384): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1413): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(1426): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(1447): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(1466): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1491): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1507): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1520): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1542): error C2146: syntax error: missing ')' before identifier 'magnitude'
2>c:\opencv\build\install\include\opencv2\core.hpp(1563): error C2146: syntax error: missing ')' before identifier 'x'
2>c:\opencv\build\install\include\opencv2\core.hpp(1583): error C2146: syntax error: missing ')' before identifier 'x'
2>c:\opencv\build\install\include\opencv2\core.hpp(1597): error C2146: syntax error: missing ')' before identifier 'x'
2>c:\opencv\build\install\include\opencv2\core.hpp(1614): error C2146: syntax error: missing ')' before identifier 'a'
2>c:\opencv\build\install\include\opencv2\core.hpp(1619): error C2146: syntax error: missing ')' before identifier 'a'
2>c:\opencv\build\install\include\opencv2\core.hpp(1649): error C2146: syntax error: missing ')' before identifier 'src1'
2>c:\opencv\build\install\include\opencv2\core.hpp(1680): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1693): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1719): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1746): error C2146: syntax error: missing ')' before identifier 'src'
2>c:\opencv\build\install\include\opencv2\core.hpp(1746): fatal error C1003: error count exceeds 100; stopping compilation
Nothing helped but creating a project from scratch. Somehow settings from previous setup affected to build properly.
In my case I had the code like the following:
#include "some_my_own.h"
#include <opencv2/core/core.hpp>
The problem was in "some_my_own.h" that had incorrect curled braces.
I hope it will help someone since the error frustrated me for a long time.
Related
I am trying to use antd components in react app, I've created an Asp.net Core web app in VS2017, as VS creates react-redux infrastructure I installed antd simply by npm install antd --save command.
Before antd I was using react-bootstrap and other libraries so I expected to use antd in the same fashion but got below errors.
can someone enlight me what's wrong here?
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:10:38
TS1005: '=' expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:12:46
TS1005: ';' expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:12:75
TS1005: ';' expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:12:99
TS1005: ';' expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:54
TS1005: ';' expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:78
TS1005: ';' expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:81
TS1109: Expression expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:97
TS1109: Expression expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:122
TS1005: ';' expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:130
TS1128: Declaration or statement expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:138
TS1005: ',' expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:27:48
TS1005: ';' expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:27:49
TS1109: Expression expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:27:50
TS1109: Expression expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:27:68
TS1005: '(' expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:27:69
TS1005: ')' expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:29:30
TS1005: ';' expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:29:54
TS1005: ';' expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:29:57
TS1109: Expression expected.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:10:31
TS2304: Cannot find name 'unique'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:12:54
TS2304: Cannot find name 'T'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:12:83
TS2304: Cannot find name 'T'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:12:107
TS2304: Cannot find name 'T'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:62
TS2693: 'Validator' only refers to a type, but is being used as a value here.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:72
TS2304: Cannot find name 'infer'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:78
TS2304: Cannot find name 'T'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:83
TS2693: 'IsOptional' only refers to a type, but is being used as a value here.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:94
TS2304: Cannot find name 'T'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:112
TS2693: 'never' only refers to a type, but is being used as a value here.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:120
TS2304: Cannot find name 'K'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:124
TS2693: 'never' only refers to a type, but is being used as a value here.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:132
TS2304: Cannot find name 'keyof'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:14:138
TS2304: Cannot find name 'V'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:15:31
TS2304: Cannot find name 'Exclude'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:24:27
TS2304: Cannot find name 'NonNullable'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:27:52
TS2693: 'Validator' only refers to a type, but is being used as a value here.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:27:62
TS2304: Cannot find name 'T'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:27:64
TS2304: Cannot find name 'K'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:29:38
TS2693: 'Validator' only refers to a type, but is being used as a value here.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:29:48
TS2304: Cannot find name 'infer'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:29:54
TS2304: Cannot find name 'T'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:29:59
TS2304: Cannot find name 'T'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:31:31
TS2344: Type 'RequiredKeys<V>' does not satisfy the constraint 'keyof V'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:46:78
TS2304: Cannot find name 'NonNullable'.
ERROR in [at-loader] ./node_modules/#types/prop-types/index.d.ts:50:75
TS2304: Cannot find name 'Required'.
ERROR in [at-loader] ./node_modules/antd/lib/_util/type.d.ts:1:58
TS2304: Cannot find name 'Exclude'.
ERROR in [at-loader] ./node_modules/antd/lib/badge/ScrollNumber.d.ts:27:56
TS2694: Namespace 'React' has no exported member 'DetailedReactHTMLElement'.
ERROR in [at-loader] ./node_modules/antd/lib/badge/ScrollNumber.d.ts:37:52
TS2694: Namespace 'React' has no exported member 'DetailedReactHTMLElement'.
ERROR in [at-loader] ./node_modules/antd/lib/badge/ScrollNumber.d.ts:47:43
TS2707: Generic type 'Component<P, S>' requires between 0 and 2 type arguments.
ERROR in [at-loader] ./node_modules/antd/lib/button/button.d.ts:26:29
TS2694: Namespace 'React' has no exported member 'AnchorHTMLAttributes'.
ERROR in [at-loader] ./node_modules/antd/lib/button/button.d.ts:30:29
TS2694: Namespace 'React' has no exported member 'ButtonHTMLAttributes'.
ERROR in [at-loader] ./node_modules/antd/lib/form/Form.d.ts:17:42
TS2694: Namespace 'React' has no exported member 'FormHTMLAttributes'.
ERROR in [at-loader] ./node_modules/antd/lib/form/FormItem.d.ts:30:103
TS2694: Namespace 'React' has no exported member 'ReactNodeArray'.
ERROR in [at-loader] ./node_modules/antd/lib/form/FormItem.d.ts:30:126
TS2694: Namespace 'React' has no exported member 'ReactPortal'.
ERROR in [at-loader] ./node_modules/antd/lib/form/FormItem.d.ts:32:102
TS2694: Namespace 'React' has no exported member 'ReactNodeArray'.
ERROR in [at-loader] ./node_modules/antd/lib/form/FormItem.d.ts:32:125
TS2694: Namespace 'React' has no exported member 'ReactPortal'.
ERROR in [at-loader] ./node_modules/antd/lib/input-number/index.d.ts:4:54
TS2694: Namespace 'React' has no exported member 'InputHTMLAttributes'.
ERROR in [at-loader] ./node_modules/antd/lib/input/Input.d.ts:7:48
TS2694: Namespace 'React' has no exported member 'InputHTMLAttributes'.
ERROR in [at-loader] ./node_modules/antd/lib/input/TextArea.d.ts:6:47
TS2694: Namespace 'React' has no exported member 'TextareaHTMLAttributes'.
ERROR in [at-loader] ./node_modules/antd/lib/skeleton/index.d.ts:15:15
TS2415: Class 'Skeleton' incorrectly extends base class 'Component<SkeletonProps, any>'.
Types of property 'render' are incompatible.
Type '() => {} | null | undefined' is not assignable to type '() => false | Element | null'.
Type '{} | null | undefined' is not assignable to type 'false | Element | null'.
Type 'undefined' is not assignable to type 'false | Element | null'.
thanks in advance.
Try to update typescript and node modules to latest version.
npm install -g typescript#latest
npm udpate
This resolved my problem.
I get following error after installing guzzle with composer and running it in oauth-2.0
Parse error: syntax error, unexpected '[', expecting ')' in /home/casselwa/public_html/oauth2/vendor/guzzlehttp/promises/src/functions.php on line 41
I am also getting same error. With a quick google search i found out that this is an issue with PHP version. Current version of GuzzlePHP requires PHP 5.5. What PHP version you are using ?
When I tried running my Ruby code with bundle install, I encountered this error: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
I tried running gem install kdtree and gem install kdtree -v '0.3' but it throws me the same error as well. Now I am unable to run my Ruby code. Any ideas on how to resolve this. I am running on Windows machine btw. Here's the full error log:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/RailsInstaller/Ruby2.1.0/bin/ruby.exe extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
generating kdtree-i386-mingw32.def
compiling kdtree.c
kdtree.c: In function 'kdtree_nearest0':
kdtree.c:221:13: error: expected identifier or '(' before ',' token
kdtree.c:237:14: error: expected expression before '=' token
kdtree.c:237:29: error: expected expression before '=' token
kdtree.c:239:14: error: expected expression before '=' token
kdtree.c:239:30: error: expected expression before '=' token
kdtree.c:241:34: error: expected expression before ',' token
kdtree.c:241:34: error: too few arguments to function 'kdtree_nearest0'
kdtree.c:217:13: note: declared here
kdtree.c:243:37: error: expected expression before ',' token
kdtree.c:243:37: error: too few arguments to function 'kdtree_nearest0'
kdtree.c:217:13: note: declared here
kdtree.c: In function 'kdtree_nearestk0':
kdtree.c:313:13: error: expected identifier or '(' before ',' token
kdtree.c:330:14: error: expected expression before '=' token
kdtree.c:330:29: error: expected expression before '=' token
kdtree.c:332:14: error: expected expression before '=' token
kdtree.c:332:30: error: expected expression before '=' token
kdtree.c:334:35: error: expected expression before ',' token
kdtree.c:334:35: error: too few arguments to function 'kdtree_nearestk0'
kdtree.c:309:13: note: declared here
kdtree.c:336:38: error: expected expression before ',' token
kdtree.c:336:38: error: too few arguments to function 'kdtree_nearestk0'
kdtree.c:309:13: note: declared here
kdtree.c: In function 'kdtree_persist':
kdtree.c:409:11: warning: unused variable 'str' [-Wunused-variable]
make: *** [kdtree.o] Error 1
make failed, exit code 2
I am following the instructions given in the book "Hacking the Kinect" pages 15-16 (Apress 2011) to install the RGB Demo (version 0.5.0) on my system (32bit x86 machine running Xubuntu 12.04).
I downloaded and extracted the demo's source and installed the needed packages as described within the book:
libboost-all-dev, libusb-1.0-0-dev, libqt4-dev, libgtk2.0-dev, cmake, ccmake (from cmake-curses-gui), libglew1.5-dev, libgsl0-dev, freeglut3-dev (not libglut3-dev as stated in the book), and libxmu-dev.
Note book typo: libgs10-dev should actually read libgsl0-dev.
When running ccmake on the source's root directory, I set the flags as given by the book:
BUILD_EXAMPLES ON
BUILD_FAKENECT ON
BUILD_SHARED_LIBS ON
NESTK_USE_FREENECT ON
NESTK_USE_OPENNI OFF
NESTK_USE_PCL OFF
and leave all other flags as their defaults.
I then proceed to configure and generate without issue, but when subsequently running make, I run into the following error:
[ 35%] Building CXX object nestk/deps/opencv/modules/core/CMakeFiles/opencv_core.dir/src/out.o
In file included from /home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/src/precomp.hpp:55:0,
from /home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/src/out.cpp:43:
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:354:13: error: ‘ptrdiff_t’ does not name a type
In file included from /home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/src/precomp.hpp:55:0,
from /home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/src/out.cpp:43:
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2600:13: error: ‘ptrdiff_t’ does not name a type
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2623:24: error: declaration of ‘operator[]’ as non-function
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2623:22: error: expected ‘;’ at end of member declaration
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2623:34: error: expected ‘)’ before ‘i’
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2626:36: error: declaration of ‘operator+=’ as non-function
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2626:32: error: expected ‘;’ at end of member declaration
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2626:46: error: expected ‘)’ before ‘ofs’
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2628:36: error: declaration of ‘operator-=’ as non-function
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2628:32: error: expected ‘;’ at end of member declaration
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2628:46: error: expected ‘)’ before ‘ofs’
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2641:5: error: ‘ptrdiff_t’ does not name a type
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2642:15: error: ‘ptrdiff_t’ has not been declared
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2661:13: error: ‘ptrdiff_t’ does not name a type
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2684:21: error: ‘ptrdiff_t’ has not been declared
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2687:37: error: declaration of ‘operator+=’ as non-function
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2687:33: error: expected ‘;’ at end of member declaration
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2687:47: error: expected ‘)’ before ‘ofs’
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2689:37: error: declaration of ‘operator-=’ as non-function
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2689:33: error: expected ‘;’ at end of member declaration
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2689:47: error: expected ‘)’ before ‘ofs’
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2733:22: error: declaration of ‘operator[]’ as non-function
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2733:20: error: expected ‘;’ at end of member declaration
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2733:32: error: expected ‘)’ before ‘i’
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2736:32: error: declaration of ‘operator+=’ as non-function
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2736:28: error: expected ‘;’ at end of member declaration
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2736:42: error: expected ‘)’ before ‘ofs’
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2738:32: error: declaration of ‘operator-=’ as non-function
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2738:28: error: expected ‘;’ at end of member declaration
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:2738:42: error: expected ‘)’ before ‘ofs’
In file included from /home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:4047:0,
from /home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/src/precomp.hpp:55,
from /home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/src/out.cpp:43:
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/operations.hpp:2822:15: error: ‘ptrdiff_t’ does not name a type
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/operations.hpp:3383:31: error: ‘ptrdiff_t’ does not name a type
In file included from /home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/core.hpp:4048:0,
from /home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/src/precomp.hpp:55,
from /home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/src/out.cpp:43:
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/mat.hpp:1629:57: error: declaration of ‘operator+=’ as non-function
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/mat.hpp:1629:57: error: ‘ptrdiff_t’ was not declared in this scope
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/include/opencv2/core/mat.hpp:1629:57: note: suggested alternatives:
/usr/include/c++/4.6/i686-linux-gnu/./bits/c++config.h:156:28: note: ‘std::ptrdiff_t’
/usr/include/c++/4.6/i686-linux-gnu/./bits/c++config.h:156:28: note: ‘std::ptrdiff_t’
/home/josh/dev/kinect/RGBDemo-0.5.0/nestk/deps/opencv/modules/core/src/out.cpp:305:1: error: expected ‘}’ at end of input
make[2]: *** [nestk/deps/opencv/modules/core/CMakeFiles/opencv_core.dir/src/out.o] Error 1
make[1]: *** [nestk/deps/opencv/modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [all] Error 2
What is causing these errors and how do I resolve them?
Could it be as simple as opencv/modules/core/include/opencv2/core/core.hpp missing #include <stddef.h>?
Yeah just edit the core.hpp /home/linaro/Downloads/RGBDemo-0.4.0-Source/nestk/deps/opencv/modules/core/include/opencv2/core and add the line
#include <stddef.h
I have this problem for days now. I have a delphi app that i tried to run in my laptop. This program runs very good in other computer, but when i try to copy the program in my laptop, it displays LOTS of errors:
[Error] IdHTTPWebBrokerBridge.pas(46): E2003 Undeclared identifier: 'TIdPeerThread'
[Error] IdHTTPWebBrokerBridge.pas(104): E2170 Cannot override a non-virtual method
[Error] IdHTTPWebBrokerBridge.pas(238): E2029 ')' expected but identifier 'Connection' found
[Error] IdHTTPWebBrokerBridge.pas(238): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(242): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(242): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(242): E2014 Statement expected, but expression of type 'string' found
[Error] IdHTTPWebBrokerBridge.pas(243): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(243): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(244): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(244): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(245): E2029 ':=' expected but ':' found
[Error] IdHTTPWebBrokerBridge.pas(245): E2015 Operator not applicable to this operand type
[Error] IdHTTPWebBrokerBridge.pas(246): E2153 ';' not allowed before 'ELSE'
[Error] IdHTTPWebBrokerBridge.pas(249): E2029 '.' expected but ';' found
[Error] IdHTTPWebBrokerBridge.pas(308): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(308): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(451): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(451): E2066 Missing operator or semicolon
[Error] IdHTTPWebBrokerBridge.pas(499): E2037 Declaration of 'Create' differs from previous declaration
[Error] IdHTTPWebBrokerBridge.pas(501): E2075 This form of method call only allowed in methods of derived types
[Error] IdHTTPWebBrokerBridge.pas(502): E2003 Undeclared identifier: 'FOkToProcessCommand'
[Fatal Error] Primews.dpr(145): F2063 Could not compile used unit 'SourceServerBase\IdHTTPWebBrokerBridge.pas'
I dont know how to solve this problem on my own since its my first time tbhat i have encountered this. Any suggestions of what should i do? thank you all guys.
Got new problem
I didn't make a change after i posted this problem. Now, it displays new error message saying:
[Fatal Error] Primews.dpr(67): F2051 Unit DBClient was compiled with a different version of DSIntf.szFIELDNAME
What does it mean?
By the way, I am using delphi 2005 personal in my laptop.
enter code here
TIdPeerThread is a class in Indy 9 and earlier. It does not exist in Indy 10. It was replaced with TIdContext. So you are using the wrong version of IdHTTPWebBrokerBridge.pas for your laptop's version of Indy. You can get the latest version of Indy 10 and IdHTTPWebBrokerBridge.pas from Indy's SVN server or Fulgan mirror. Links to both are on Indy's website.