Ask Your Question

Revision history [back]

BUILDING OPENCV 2.4.8 APPLICATION ERROR IN MAC MAVERICK OS

I am trying to build an OpenCV application In Maverick and I am get the following errors: CompileC /Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Intermediates/trataYUV.build/Debug/trataYUV.build/Objects-normal/x86_64/main.o trataYUV/main.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/marcio/Desenv/trataYUV setenv LANG en_US.US-ASCII /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.9 -g -Wno-sign-conversion -iquote /Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Intermediates/trataYUV.build/Debug/trataYUV.build/trataYUV-generated-files.hmap -I/Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Intermediates/trataYUV.build/Debug/trataYUV.build/trataYUV-own-target-headers.hmap -I/Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Intermediates/trataYUV.build/Debug/trataYUV.build/trataYUV-all-target-headers.hmap -iquote /Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Intermediates/trataYUV.build/Debug/trataYUV.build/trataYUV-project-headers.hmap -I/Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Products/Debug/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Intermediates/trataYUV.build/Debug/trataYUV.build/DerivedSources/x86_64 -I/Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Intermediates/trataYUV.build/Debug/trataYUV.build/DerivedSources -F/Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Products/Debug -F/Users/marcio/Desenv -I /opt/local/include/opencv -MMD -MT dependencies -MF /Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Intermediates/trataYUV.build/Debug/trataYUV.build/Objects-normal/x86_64/main.d --serialize-diagnostics /Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Intermediates/trataYUV.build/Debug/trataYUV.build/Objects-normal/x86_64/main.dia -c /Users/marcio/Desenv/trataYUV/trataYUV/main.c -o /Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Intermediates/trataYUV.build/Debug/trataYUV.build/Objects-normal/x86_64/main.o

/Users/marcio/Desenv/trataYUV/trataYUV/main.c:146:32: warning: format specifies type 'unsigned long' but the argument has type 'off_t' (aka 'long long') [-Wformat] argv[0],width,height,isize,st.st_size); ^~~~~~~~~~ /Users/marcio/Desenv/trataYUV/trataYUV/main.c:150:32: warning: format specifies type 'unsigned long' but the argument has type 'off_t' (aka 'long long') [-Wformat] argv[0],width,height,isize,st.st_size); ^~~~~~~~~~ /Users/marcio/Desenv/trataYUV/trataYUV/main.c:226:9: warning: assigning to 'uint8_t ' (aka 'unsigned char *') from 'int8_t *' (aka 'signed char *') converts between pointers to integer types with different sign [-Wpointer-sign] p_yuv = in_data; ^ ~~~~~~~ /Users/marcio/Desenv/trataYUV/trataYUV/main.c:251:12: warning: unused variable 'owidth' [-Wunused-variable] unsigned owidth; uint8_t *p_yuv; ^ /Users/marcio/Desenv/trataYUV/trataYUV/main.c:251:29: warning: unused variable 'p_yuv' [-Wunused-variable] unsigned owidth; uint8_t *p_yuv; ^ In file included from /Users/marcio/Desenv/trataYUV/trataYUV/main.c:25: In file included from /opt/local/include/opencv/cv.h:63: In file included from /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:47: /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:343:17: warning: unused function 'cvFloor' [-Wunused-function] CV_INLINE int cvFloor( double value ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:360:17: warning: unused function 'cvCeil' [-Wunused-function] CV_INLINE int cvCeil( double value ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:379:15: warning: unused function 'cvIsNaN' [-Wunused-function] CV_INLINE int cvIsNaN( double value ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:388:15: warning: unused function 'cvIsInf' [-Wunused-function] CV_INLINE int cvIsInf( double value ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:403:17: warning: unused function 'cvRNG' [-Wunused-function] CV_INLINE CvRNG cvRNG( int64 seed CV_DEFAULT(-1)) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:419:18: warning: unused function 'cvRandReal' [-Wunused-function] CV_INLINE double cvRandReal( CvRNG rng ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:733:17: warning: unused function 'cvMat' [-Wunused-function] CV_INLINE CvMat cvMat( int rows, int cols, int type, void* data CV_DEFAULT(NULL)) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:763:20: warning: unused function 'cvmGet' [-Wunused-function] CV_INLINE double cvmGet( const CvMat* mat, int row, int col ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:781:18: warning: unused function 'cvmSet' [-Wunused-function] CV_INLINE void cvmSet( CvMat* mat, int row, int col, double value ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:798:15: warning: unused function 'cvIplDepth' [-Wunused-function] CV_INLINE int cvIplDepth( int type ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:973:20: warning: unused function 'cvRectToROI' [-Wunused-function] CV_INLINE IplROI cvRectToROI( CvRect rect, int coi ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:986:20: warning: unused function 'cvROIToRect' [-Wunused-function] CV_INLINE CvRect cvROIToRect( IplROI roi ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:1007:28: warning: unused function 'cvTermCriteria' [-Wunused-function] CV_INLINE CvTermCriteria cvTermCriteria( int type, int max_iter, double epsilon ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:1029:21: warning: unused function 'cvPoint' [-Wunused-function] CV_INLINE CvPoint cvPoint( int x, int y ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:1059:26: warning: unused function 'cvPointTo32f' [-Wunused-function] CV_INLINE CvPoint2D32f cvPointTo32f( CvPoint point ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:1084:26: warning: unused function 'cvPoint3D32f' [-Wunused-function] CV_INLINE CvPoint3D32f cvPoint3D32f( double x, double y, double z ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:1104:26: warning: unused function 'cvPoint2D64f' [-Wunused-function] CV_INLINE CvPoint2D64f cvPoint2D64f( double x, double y ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:1124:26: warning: unused function 'cvPoint3D64f' [-Wunused-function] CV_INLINE CvPoint3D64f cvPoint3D64f( double x, double y, double z ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:1163:25: warning: unused function 'cvSize2D32f' [-Wunused-function] CV_INLINE CvSize2D32f cvSize2D32f( double width, double height ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:1239:22: warning: unused function 'cvRealScalar' [-Wunused-function] CV_INLINE CvScalar cvRealScalar( double val0 ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:1247:22: warning: unused function 'cvScalarAll' [-Wunused-function] CV_INLINE CvScalar cvScalarAll( double val0123 ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/types_c.h:1762:22: warning: unused function 'cvAttrList' [-Wunused-function] CV_INLINE CvAttrList cvAttrList( const char* attr CV_DEFAULT(NULL), ^ In file included from /Users/marcio/Desenv/trataYUV/trataYUV/main.c:25: In file included from /opt/local/include/opencv/cv.h:63: /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:127:18: warning: unused function 'cvDecRefData' [-Wunused-function] CV_INLINE void cvDecRefData( CvArr arr ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:148:17: warning: unused function 'cvIncRefData' [-Wunused-function] CV_INLINE int cvIncRefData( CvArr* arr ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:182:20: warning: unused function 'cvGetRow' [-Wunused-function] CV_INLINE CvMat* cvGetRow( const CvArr* arr, CvMat* submat, int row ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:193:20: warning: unused function 'cvGetCol' [-Wunused-function] CV_INLINE CvMat* cvGetCol( const CvArr* arr, CvMat* submat, int col ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:222:18: warning: unused function 'cvReleaseMatND' [-Wunused-function] CV_INLINE void cvReleaseMatND( CvMatND* mat ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:245:25: warning: unused function 'cvGetNextSparseNode' [-Wunused-function] CV_INLINE CvSparseNode cvGetNextSparseNode( CvSparseMatIterator* mat_iterator ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:495:18: warning: unused function 'cvSubS' [-Wunused-function] CV_INLINE void cvSubS( const CvArr* src, CvScalar value, CvArr* dst, ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:1057:18: warning: unused function 'cvCloneSeq' [-Wunused-function] CV_INLINE CvSeq* cvCloneSeq( const CvSeq* seq, CvMemStorage* storage CV_DEFAULT(NULL)) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:1100:23: warning: unused function 'cvSetNew' [-Wunused-function] CV_INLINE CvSetElem* cvSetNew( CvSet* set_header ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:1115:17: warning: unused function 'cvSetRemoveByPtr' [-Wunused-function] CV_INLINE void cvSetRemoveByPtr( CvSet* set_header, void* elem ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:1130:22: warning: unused function 'cvGetSetElem' [-Wunused-function] CV_INLINE CvSetElem* cvGetSetElem( const CvSet* set_header, int idx ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:1302:18: warning: unused function 'cvEllipseBox' [-Wunused-function] CV_INLINE void cvEllipseBox( CvArr* img, CvBox2D box, CvScalar color, ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:1398:18: warning: unused function 'cvFont' [-Wunused-function] CV_INLINE CvFont cvFont( double scale, int thickness CV_DEFAULT(1) ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:1601:15: warning: unused function 'cvReadIntByName' [-Wunused-function] CV_INLINE int cvReadIntByName( const CvFileStorage* fs, const CvFileNode* map, ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:1616:18: warning: unused function 'cvReadRealByName' [-Wunused-function] CV_INLINE double cvReadRealByName( const CvFileStorage* fs, const CvFileNode* map, ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:1630:23: warning: unused function 'cvReadStringByName' [-Wunused-function] CV_INLINE const char* cvReadStringByName( const CvFileStorage* fs, const CvFileNode* map, ^ /Users/marcio/Desenv/opencv2.framework/Headers/core/core_c.h:1642:17: warning: unused function 'cvReadByName' [-Wunused-function] CV_INLINE void* cvReadByName( CvFileStorage* fs, const CvFileNode* map, ^ In file included from /Users/marcio/Desenv/trataYUV/trataYUV/main.c:25: In file included from /opt/local/include/opencv/cv.h:65: /Users/marcio/Desenv/opencv2.framework/Headers/imgproc/imgproc_c.h:362:18: warning: unused function 'cvContourPerimeter' [-Wunused-function] CV_INLINE double cvContourPerimeter( const void* contour ) ^ /Users/marcio/Desenv/opencv2.framework/Headers/imgproc/imgproc_c.h:486:18: warning: unused function 'cvCalcHist' [-Wunused-function] CV_INLINE void cvCalcHist( IplImage* image, CvHistogram hist, ^ In file included from /Users/marcio/Desenv/trataYUV/trataYUV/main.c:25: In file included from /opt/local/include/opencv/cv.h:72: /Users/marcio/Desenv/opencv2.framework/Headers/legacy/compat.hpp:617:23: warning: unused function 'cvSURFPoint' [-Wunused-function] CV_INLINE CvSURFPoint cvSURFPoint( CvPoint2D32f pt, int laplacian, ^ /Users/marcio/Desenv/opencv2.framework/Headers/legacy/compat.hpp:698:26: warning: unused function 'cvStarKeypoint' [-Wunused-function] CV_INLINE CvStarKeypoint cvStarKeypoint(CvPoint pt, int size, float response) ^ /Users/marcio/Desenv/opencv2.framework/Headers/legacy/compat.hpp:716:32: warning: unused function 'cvStarDetectorParams' [-Wunused-function] CV_INLINE CvStarDetectorParams cvStarDetectorParams( ^ 49 warnings generated.

Ld /Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Products/Debug/trataYUV normal x86_64 cd /Users/marcio/Desenv/trataYUV setenv MACOSX_DEPLOYMENT_TARGET 10.9 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -L/Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Products/Debug -F/Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Products/Debug -F/Users/marcio/Desenv -filelist /Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Intermediates/trataYUV.build/Debug/trataYUV.build/Objects-normal/x86_64/trataYUV.LinkFileList -mmacosx-version-min=10.9 -framework opencv2 -Xlinker -dependency_info -Xlinker /Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Intermediates/trataYUV.build/Debug/trataYUV.build/Objects-normal/x86_64/trataYUV_dependency_info.dat -o /Users/marcio/Library/Developer/Xcode/DerivedData/trataYUV-ethoygtaaembbncqmfxdxvctotyp/Build/Products/Debug/trataYUV

Undefined symbols for architecture x86_64: "std::__1::__vector_base_common<true>::__throw_length_error() const", referenced from: cv::kmeans(cv::_InputArray const&, int, cv::_OutputArray const&, cv::TermCriteria, int, int, cv::_OutputArray const&) in opencv2(matrix.o) cv::SparseMat::resizeHashTab(unsigned long) in opencv2(matrix.o) std::__1::enable_if<__is_forward_iterator<unsigned long*="">::value, void>::type std::__1::vector<unsigned long,="" std::__1::allocator<unsigned="" long=""> >::assign<unsigned long*="">(unsigned long, unsigned long) in opencv2(matrix.o) std::__1::vector<unsigned long,="" std::__1::allocator<unsigned="" long=""> >::__append(unsigned long) in opencv2(matrix.o) std::__1::vector<cv::vec<int, 128="">, std::__1::allocator<cv::vec<int, 128=""> > >::__append(unsigned long) in opencv2(matrix.o) std::__1::vector<cv::vec<int, 64="">, std::__1::allocator<cv::vec<int, 64=""> > >::__append(unsigned long) in opencv2(matrix.o) std::__1::vector<cv::vec<int, 32="">, std::__1::allocator<cv::vec<int, 32=""> > >::__append(unsigned long) in opencv2(matrix.o) ... "std::__1::locale::use_facet(std::__1::locale::id&) const", referenced from: std::__1::basic_ostream<char, std::__1::char_traits<char=""> >& std::__1::operator<<<std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&, char const) in opencv2(gpumat.o) "std::__1::ios_base::getloc() const", referenced from: std::__1::basic_ostream<char, std::__1::char_traits<char=""> >& std::__1::operator<<<std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&, char const) in opencv2(gpumat.o) "std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::__init(char const, unsigned long)", referenced from: _cvSetIPLAllocators in opencv2(array.o) _cvCreateMatHeader in opencv2(array.o) _cvCreateData in opencv2(array.o) _cvInitMatHeader in opencv2(array.o) _cvReleaseMat in opencv2(array.o) _cvCloneMat in opencv2(array.o) _cvInitMatNDHeader in opencv2(array.o) ... "std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::__init(char const, unsigned long, unsigned long)", referenced from: cv::tempfile(char const) in opencv2(system.o) "std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::append(char const)", referenced from: cv::tempfile(char const) in opencv2(system.o) "std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::append(char const, unsigned long)", referenced from: cv::tempfile(char const) in opencv2(system.o) "std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::assign(char const)", referenced from: cv::tempfile(char const) in opencv2(system.o) "std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::resize(unsigned long, char)", referenced from: icvClose(CvFileStorage, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >) in opencv2(persistence.o) "std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::reserve(unsigned long)", referenced from: cv::FileStorage::releaseAndGetString() in opencv2(persistence.o) "std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::basic_string(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&)", referenced from: cv::Exception::Exception(int, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, int) in opencv2(system.o) cv::Exception::Exception(int, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, int) in opencv2(system.o) cv::tempfile(char const) in opencv2(system.o) cv::error(cv::Exception const&) in opencv2(system.o) _cvError in opencv2(system.o) _cvRegisterModule in opencv2(system.o) _cvGetModuleInfo in opencv2(system.o) ... "std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::~basic_string()", referenced from: _cvSetIPLAllocators in opencv2(array.o) _cvCreateMatHeader in opencv2(array.o) _cvCreateData in opencv2(array.o) _cvInitMatHeader in opencv2(array.o) _cvReleaseMat in opencv2(array.o) _cvCloneMat in opencv2(array.o) _cvInitMatNDHeader in opencv2(array.o) ... "std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> >::operator=(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&)", referenced from: cv::Exception::formatMessage() in opencv2(system.o) cv::operator<<(cv::FileStorage&, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&) in opencv2(persistence.o) cv::gpu::DeviceInfo::query() in opencv2(gpumat.o) "std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t="">, std::__1::allocator<wchar_t> >::__init(wchar_t const, unsigned long)", referenced from: cv::toUtf16(std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&) in opencv2(persistence.o) "std::__1::basic_ostream<char, std::__1::char_traits<char=""> >::flush()", referenced from: cv::gpu::error(char const, char const, int, char const) in opencv2(gpumat.o) "std::__1::basic_ostream<char, std::__1::char_traits<char=""> >::sentry::sentry(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&)", referenced from: std::__1::basic_ostream<char, std::__1::char_traits<char=""> >& std::__1::operator<<<std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&, char const) in opencv2(gpumat.o) "std::__1::basic_ostream<char, std::__1::char_traits<char=""> >::sentry::~sentry()", referenced from: std::__1::basic_ostream<char, std::__1::char_traits<char=""> >& std::__1::operator<<<std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&, char const) in opencv2(gpumat.o) "std::__1::basic_ostream<char, std::__1::char_traits<char=""> >::operator<<(int)", referenced from: cv::gpu::error(char const, char const, int, char const) in opencv2(gpumat.o) "std::__1::cerr", referenced from: cv::gpu::error(char const, char const, int, char const) in opencv2(gpumat.o) "std::__1::ctype<char>::id", referenced from: std::__1::basic_ostream<char, std::__1::char_traits<char=""> >& std::__1::operator<<<std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&, char const) in opencv2(gpumat.o) "std::__1::locale::~locale()", referenced from: std::__1::basic_ostream<char, std::__1::char_traits<char=""> >& std::__1::operator<<<std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&, char const) in opencv2(gpumat.o) "std::__1::ios_base::__set_badbit_and_consider_rethrow()", referenced from: std::__1::basic_ostream<char, std::__1::char_traits<char=""> >& std::__1::operator<<<std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&, char const) in opencv2(gpumat.o) "std::__1::ios_base::clear(unsigned int)", referenced from: std::__1::basic_ostream<char, std::__1::char_traits<char=""> >& std::__1::operator<<<std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&, char const) in opencv2(gpumat.o) "std::exception::~exception()", referenced from: cv::Exception::Exception(int, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, int) in opencv2(system.o) cv::Exception::Exception(int, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char="">, std::__1::allocator<char> > const&, int) in opencv2(system.o) cv::Exception::~Exception() in opencv2(system.o) cv::Exception::~Exception() in opencv2(system.o) cv::Exception::~Exception() in opencv2(system.o) cv::error(cv::Exception const&) in opencv2(system.o) _cvError in opencv2(system.o) ... "std::uncaught_exception()", referenced from: cv::gpu::error(char const, char const, int, char const) in opencv2(gpumat.o) "std::terminate()", referenced from: ___clang_call_terminate in opencv2(array.o) ___clang_call_terminate in opencv2(color.o) ___clang_call_terminate in opencv2(matrix.o) ___clang_call_terminate in opencv2(convert.o) ___clang_call_terminate in opencv2(system.o) ___clang_call_terminate in opencv2(alloc.o) ___clang_call_terminate in opencv2(copy.o) ... "typeinfo for std::exception", referenced from: typeinfo for cv::Exception in opencv2(system.o) "vtable for __cxxabiv1::__class_type_info", referenced from: typeinfo for cv::_InputArray in opencv2(matrix.o) typeinfo for cv::ParallelLoopBody in opencv2(parallel.o) typeinfo for cv::TLSDataContainer in opencv2(system.o) typeinfo for cv::FileStorage in opencv2(persistence.o) typeinfo for GpuFuncTable in opencv2(gpumat.o) typeinfo for DeviceInfoFuncTable in opencv2(gpumat.o) typeinfo for CvOpenGlFuncTab in opencv2(opengl_interop_deprecated.o) ... NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "vtable for __cxxabiv1::__si_class_type_info", referenced from: typeinfo for cv::CvtColorLoop_Invoker<cv::mrgba2rgba<unsigned char=""> > in opencv2(color.o) typeinfo for cv::CvtColorLoop_Invoker<cv::rgba2mrgba<unsigned char=""> > in opencv2(color.o) typeinfo for cv::YUV422toRGBA8888Invoker<2, 1, 1> in opencv2(color.o) typeinfo for cv::YUV422toRGBA8888Invoker<2, 1, 0> in opencv2(color.o) typeinfo for cv::YUV422toRGBA8888Invoker<2, 0, 1> in opencv2(color.o) typeinfo for cv::YUV422toRGBA8888Invoker<2, 0, 0> in opencv2(color.o) typeinfo for cv::YUV422toRGBA8888Invoker<0, 1, 1> in opencv2(color.o) ... NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "operator delete", referenced from: cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int) in opencv2(color.o) cv::Mat::Mat(cv::Mat const&, cv::Range const&, cv::Range const&) in opencv2(matrix.o) void cv::reduceR_<unsigned char,="" int,="" cv::opadd<int,="" int,="" int=""> >(cv::Mat const&, cv::Mat&) in opencv2(matrix.o) void cv::reduceR_<unsigned char,="" float,="" cv::opadd<int,="" int,="" int=""> >(cv::Mat const&, cv::Mat&) in opencv2(matrix.o) void cv::reduceR_<unsigned char,="" double,="" cv::opadd<int,="" int,="" int=""> >(cv::Mat const&, cv::Mat&) in opencv2(matrix.o) void cv::reduceR_<unsigned short,="" float,="" cv::opadd<float,="" float,="" float=""> >(cv::Mat const&, cv::Mat&) in opencv2(matrix.o) void cv::reduceR_<unsigned short,="" double,="" cv::opadd<double,="" double,="" double=""> >(cv::Mat const&, cv::Mat&) in opencv2(matrix.o) ... "operator delete(void)", referenced from: cv::CvtColorLoop_Invoker<cv::mrgba2rgba<unsigned char=""> >::~CvtColorLoop_Invoker() in opencv2(color.o) cv::CvtColorLoop_Invoker<cv::rgba2mrgba<unsigned char=""> >::~CvtColorLoop_Invoker() in opencv2(color.o) cv::YUV422toRGBA8888Invoker<2, 1, 1>::~YUV422toRGBA8888Invoker() in opencv2(color.o) cv::YUV422toRGBA8888Invoker<2, 1, 0>::~YUV422toRGBA8888Invoker() in opencv2(color.o) cv::YUV422toRGBA8888Invoker<2, 0, 1>::~YUV422toRGBA8888Invoker() in opencv2(color.o) cv::YUV422toRGBA8888Invoker<2, 0, 0>::~YUV422toRGBA8888Invoker() in opencv2(color.o) cv::YUV422toRGBA8888Invoker<0, 1, 1>::~YUV422toRGBA8888Invoker() in opencv2(color.o) ... "operator new", referenced from: cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int) in opencv2(color.o) cv::Mat::Mat(cv::Mat const&, cv::Range const&, cv::Range const&) in opencv2(matrix.o) void cv::reduceR_<unsigned char,="" int,="" cv::opadd<int,="" int,="" int=""> >(cv::Mat const&, cv::Mat&) in opencv2(matrix.o) void cv::reduceR_<unsigned char,="" float,="" cv::opadd<int,="" int,="" int=""> >(cv::Mat const&, cv::Mat&) in opencv2(matrix.o) void cv::reduceR_<unsigned char,="" double,="" cv::opadd<int,="" int,="" int=""> >(cv::Mat const&, cv::Mat&) in opencv2(matrix.o) void cv::reduceR_<unsigned short,="" float,="" cv::opadd<float,="" float,="" float=""> >(cv::Mat const&, cv::Mat&) in opencv2(matrix.o) void cv::reduceR_<unsigned short,="" double,="" cv::opadd<double,="" double,="" double=""> >(cv::Mat const&, cv::Mat&) in opencv2(matrix.o) ... "operator new(unsigned long)", referenced from: cv::kmeans(cv::_InputArray const&, int, cv::_OutputArray const&, cv::TermCriteria, int, int, cv::_OutputArray const&) in opencv2(matrix.o) cv::SparseMat::create(int, int const, int) in opencv2(matrix.o) cv::SparseMat::resizeHashTab(unsigned long) in opencv2(matrix.o) std::__1::enable_if<__is_forward_iterator<unsigned long*="">::value, void>::type std::__1::vector<unsigned long,="" std::__1::allocator<unsigned="" long=""> >::assign<unsigned long*="">(unsigned long, unsigned long) in opencv2(matrix.o) std::__1::vector<unsigned long,="" std::__1::allocator<unsigned="" long=""> >::__append(unsigned long) in opencv2(matrix.o) std::__1::vector<cv::vec<int, 128="">, std::__1::allocator<cv::vec<int, 128=""> > >::__append(unsigned long) in opencv2(matrix.o) std::__1::vector<cv::vec<int, 64="">, std::__1::allocator<cv::vec<int, 64=""> > >::__append(unsigned long) in opencv2(matrix.o) ... "___cxa_allocate_exception", referenced from: cv::error(cv::Exception const&) in opencv2(system.o) "___cxa_begin_catch", referenced from: ___clang_call_terminate in opencv2(array.o) ___clang_call_terminate in opencv2(color.o) ___clang_call_terminate in opencv2(matrix.o) ___clang_call_terminate in opencv2(convert.o) cv::TLSStorage::~TLSStorage() in opencv2(system.o) ___clang_call_terminate in opencv2(system.o) ___clang_call_terminate in opencv2(alloc.o) ... "___cxa_call_unexpected", referenced from: cv::_InputArray::getMatVector(std::__1::vector<cv::mat, std::__1::allocator<cv::mat=""> >&) const in opencv2(matrix.o) cv::_OutputArray::release() const in opencv2(matrix.o) cv::hconcat(cv::_InputArray const&, cv::_OutputArray const&) in opencv2(matrix.o) cv::vconcat(cv::_InputArray const&, cv::_OutputArray const&) in opencv2(matrix.o) std::__1::vector<cv::mat, std::__1::allocator<cv::mat=""> >::resize(unsigned long) in opencv2(matrix.o) std::__1::vector<cv::mat, std::__1::allocator<cv::mat=""> >::__append(unsigned long) in opencv2(matrix.o) cv::merge(cv::_InputArray const&, cv::_OutputArray const&) in opencv2(convert.o) ... "___cxa_end_catch", referenced from: cv::TLSStorage::~TLSStorage() in opencv2(system.o) icvReadSeq(CvFileStorage, CvFileNode) in opencv2(persistence.o) std::__1::deque<char, std::__1::allocator<char=""> >::__add_back_capacity() in opencv2(persistence.o) std::__1::basic_ostream<char, std::__1::char_traits<char=""> >& std::__1::operator<<<std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char=""> >&, char const) in opencv2(gpumat.o) "___cxa_free_exception", referenced from: cv::error(cv::Exception const&) in opencv2(system.o) "___cxa_guard_abort", referenced from: cv::getBuildInformation() in opencv2(system.o) "___cxa_guard_acquire", referenced from: cv::getBuildInformation() in opencv2(system.o) cv::Exp_32f(float const, float, int) in opencv2(mathfuncs.o) cv::Exp_64f(double const, double, int) in opencv2(mathfuncs.o) cv::Log_32f(float const, float, int) in opencv2(mathfuncs.o) cv::Log_64f(double const, double, int) in opencv2(mathfuncs.o) cv::gpu::getCudaEnabledDeviceCount() in opencv2(gpumat.o) cv::gpu::setDevice(int) in opencv2(gpumat.o) ... "___cxa_guard_release", referenced from: cv::getBuildInformation() in opencv2(system.o) cv::Exp_32f(float const, float, int) in opencv2(mathfuncs.o) cv::Exp_64f(double const, double, int) in opencv2(mathfuncs.o) cv::Log_32f(float const, float, int) in opencv2(mathfuncs.o) cv::Log_64f(double const, double, int) in opencv2(mathfuncs.o) cv::gpu::getCudaEnabledDeviceCount() in opencv2(gpumat.o) cv::gpu::setDevice(int) in opencv2(gpumat.o) ... "___cxa_pure_virtual", referenced from: vtable for cv::ParallelLoopBody in opencv2(parallel.o) vtable for cv::TLSDataContainer in opencv2(system.o) vtable for CvOpenGlFuncTab in opencv2(opengl_interop_deprecated.o) vtable for cv::MatOp in opencv2(matop.o) "___cxa_rethrow", referenced from: std::__1::deque<char, std::__1::allocator<char=""> >::__add_back_capacity() in opencv2(persistence.o) "___cxa_throw", referenced from: cv::error(cv::Exception const&) in opencv2(system.o) "___gxx_personality_v0", referenced from: Dwarf Exception Unwind Info (__eh_frame) in opencv2(array.o) Dwarf Exception Unwind Info (__eh_frame) in opencv2(color.o) Dwarf Exception Unwind Info (__eh_frame) in opencv2(matrix.o) Dwarf Exception Unwind Info (__eh_frame) in opencv2(convert.o) Dwarf Exception Unwind Info (__eh_frame) in opencv2(system.o) Dwarf Exception Unwind Info (__eh_frame) in opencv2(alloc.o) Dwarf Exception Unwind Info (__eh_frame) in opencv2(copy.o) ... ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)