Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eye detection using Haar cascades in c++
Eye detection using Haar cascades in c++ [message #1786013] Tue, 24 April 2018 06:55
Nimya Nampoothiri is currently offline Nimya NampoothiriFriend
Messages: 9
Registered: April 2018
Junior Member
When I am trying to run an OpenCv program using HarrCascades for eye detection following error occurs :

12:05:13 **** Incremental Build of configuration Release for project SampleImage ****
make all
Building file: ../Main.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/local/Cellar/opencv/3.4.1_2/include -I/Library/Developer/CommandLineTools/usr/include -I/Library/Developer/CommandLineTools/usr/include/c++/v1 -O3 -Wall -c -fmessage-length=0 -std=c++11 -MMD -MP -MF"Main.d" -MT"Main.o" -o "Main.o" "../Main.cpp"
In file included from ../Main.cpp:1:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv/cv.h:63:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/core_c.h:48:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/types_c.h:59:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/cvdef.h:91:
/usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/hal/interface.h:42:14: error: unknown type name 'uint32_t'
typedef uint32_t uint;
^
/usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/hal/interface.h:61:12: error: unknown type name 'int64_t'
typedef int64_t int64;
^
/usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/hal/interface.h:62:12: error: unknown type name 'uint64_t'
typedef uint64_t uint64;
^
In file included from ../Main.cpp:1:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv/cv.h:63:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/core_c.h:48:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/types_c.h:59:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/cvdef.h:202:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/cv_cpu_dispatch.h:143:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/emmintrin.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/xmmintrin.h:39:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/mm_malloc.h:27:
/Library/Developer/CommandLineTools/usr/include/c++/v1/stdlib.h:111:82: error: use of undeclared identifier 'labs'; did you mean 'abs'?
inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT {return labs(__x);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/stdlib.h:111:44: note: 'abs' declared here
inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT {return labs(__x);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/stdlib.h:113:81: error: use of undeclared identifier 'llabs'
inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/stdlib.h:116:35: error: unknown type name 'ldiv_t'
inline _LIBCPP_INLINE_VISIBILITY ldiv_t div( long __x, long __y) _NOEXCEPT {return ldiv(__x, __y);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/stdlib.h:116:95: error: use of undeclared identifier 'ldiv'; did you mean 'div'?
inline _LIBCPP_INLINE_VISIBILITY ldiv_t div( long __x, long __y) _NOEXCEPT {return ldiv(__x, __y);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/stdlib.h:116:42: note: 'div' declared here
inline _LIBCPP_INLINE_VISIBILITY ldiv_t div( long __x, long __y) _NOEXCEPT {return ldiv(__x, __y);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/stdlib.h:118:34: error: unknown type name 'lldiv_t'
inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x, long long __y) _NOEXCEPT {return lldiv(__x, __y);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/stdlib.h:118:94: error: use of undeclared identifier 'lldiv'
inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x, long long __y) _NOEXCEPT {return lldiv(__x, __y);}
^
In file included from ../Main.cpp:1:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv/cv.h:63:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/core_c.h:48:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/types_c.h:59:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/cvdef.h:202:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/cv_cpu_dispatch.h:143:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/emmintrin.h:27:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/xmmintrin.h:39:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/mm_malloc.h:49:12: error: use of undeclared identifier 'malloc'
return malloc(__size);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/mm_malloc.h:71:3: error: use of undeclared identifier 'free'
free(__p);
^
In file included from ../Main.cpp:1:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv/cv.h:63:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/core_c.h:48:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/types_c.h:59:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/cvdef.h:447:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/array:107:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/utility:202:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/cstring:61:
/Library/Developer/CommandLineTools/usr/include/c++/v1/string.h:74:64: error: use of undeclared identifier 'strchr'
char* __libcpp_strchr(const char* __s, int __c) {return (char*)strchr(__s, __c);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/string.h:81:75: error: use of undeclared identifier 'strpbrk'
char* __libcpp_strpbrk(const char* __s1, const char* __s2) {return (char*)strpbrk(__s1, __s2);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/string.h:88:65: error: use of undeclared identifier 'strrchr'; did you mean 'strchr'?
char* __libcpp_strrchr(const char* __s, int __c) {return (char*)strrchr(__s, __c);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/string.h:76:13: note: 'strchr' declared here
const char* strchr(const char* __s, int __c) {return __libcpp_strchr(__s, __c);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/string.h:95:76: error: use of undeclared identifier 'memchr'
void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/string.h:102:74: error: use of undeclared identifier 'strstr'; did you mean 'strchr'?
char* __libcpp_strstr(const char* __s1, const char* __s2) {return (char*)strstr(__s1, __s2);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/string.h:78:13: note: 'strchr' declared here
char* strchr( char* __s, int __c) {return __libcpp_strchr(__s, __c);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/string.h:102:74: error: no matching function for call to 'strchr'
char* __libcpp_strstr(const char* __s1, const char* __s2) {return (char*)strstr(__s1, __s2);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/string.h:78:13: note: candidate disabled: <no message provided>
char* strchr( char* __s, int __c) {return __libcpp_strchr(__s, __c);}
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/string.h:102:81: error: cannot initialize a parameter of type 'char *' with an lvalue of type 'const char *'
char* __libcpp_strstr(const char* __s1, const char* __s2) {return (char*)strstr(__s1, __s2);}
^~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/string.h:78:32: note: passing argument to parameter '__s' here
char* strchr( char* __s, int __c) {return __libcpp_strchr(__s, __c);}
^
In file included from ../Main.cpp:1:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv/cv.h:63:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/core_c.h:48:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/types_c.h:59:
In file included from /usr/local/Cellar/opencv/3.4.1_2/include/opencv2/core/cvdef.h:447:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/array:107:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/utility:202:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstring:70:9: error: no member named 'memcpy' in the global namespace; did you mean 'memchr'?
using ::memcpy;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/string.h:97:13: note: 'memchr' declared here
const void* memchr(const void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);}
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Main.o] Error 1

12:05:14 Build Finished (took 802ms)


Similar type of error is generating for most of my Opencv programs in c++
Previous Topic:fatal error: 'iostream.h' file not found
Next Topic:Unresolved methods from included hpp file
Goto Forum:
  


Current Time: Wed Nov 14 15:04:15 GMT 2018

Powered by FUDForum. Page generated in 0.02045 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top