Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

compiling Opencv and cvBlob libraries in Raspbian Wheezy OS. Getting undefined references error

pi@raspberrypi ~ $ g++ CarMotionTwoLines-HSV.cpp CarMotionTwoLines-HSV.cpp: In constructor ‘CarVideoHandler::CarVideoHandler()’: CarMotionTwoLines-HSV.cpp:92:17: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] CarMotionTwoLines-HSV.cpp:93:14: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] CarMotionTwoLines-HSV.cpp:94:14: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] CarMotionTwoLines-HSV.cpp:95:17: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] CarMotionTwoLines-HSV.cpp:98:15: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] CarMotionTwoLines-HSV.cpp:99:15: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings] /tmp/cclicE4h.o: In function allocateOnDemand(_IplImage**, CvSize, int, int)': CarMotionTwoLines-HSV.cpp:(.text+0x380): undefined reference tocvCreateImage' /tmp/cclicE4h.o: In function resizeImg(_IplImage*, int)': CarMotionTwoLines-HSV.cpp:(.text+0x4e0): undefined reference tocvResize' /tmp/cclicE4h.o: In function resizeImgColor(_IplImage*, int)': CarMotionTwoLines-HSV.cpp:(.text+0x5a8): undefined reference tocvResize' /tmp/cclicE4h.o: In function MorfologiaDE(_IplImage*, _IplImage*, int)': CarMotionTwoLines-HSV.cpp:(.text+0x628): undefined reference tocvCreateStructuringElementEx' CarMotionTwoLines-HSV.cpp:(.text+0x648): undefined reference to cvDilate' CarMotionTwoLines-HSV.cpp:(.text+0x660): undefined reference tocvErode' CarMotionTwoLines-HSV.cpp:(.text+0x66c): undefined reference to cvReleaseStructuringElement' /tmp/cclicE4h.o: In functionmouseHandler(int, int, int, int, void)': CarMotionTwoLines-HSV.cpp:(.text+0x1178): undefined reference to cvCloneImage' CarMotionTwoLines-HSV.cpp:(.text+0x1278): undefined reference tocvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x148c): undefined reference to cvLine' CarMotionTwoLines-HSV.cpp:(.text+0x14e0): undefined reference tocvShowImage' /tmp/cclicE4h.o: In function idTrackCarPerson(_IplImage*, int**, std::_Rb_tree_const_iterator<std::pair<unsigned int const, cvb::CvBlob*> >, std::_Rb_tree_const_iterator<std::pair<unsigned int const, cvb::CvTrack*> >, int, double, double, double, CvFont, char*, int**, int**, int**, int**, int&, int&, int*, int*, int*, int*, int*, int, int, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)': CarMotionTwoLines-HSV.cpp:(.text+0x4c88): undefined reference tocvInitFont' CarMotionTwoLines-HSV.cpp:(.text+0x4db0): undefined reference to cvPutText' CarMotionTwoLines-HSV.cpp:(.text+0x4f08): undefined reference tocvPutText' CarMotionTwoLines-HSV.cpp:(.text+0x5148): undefined reference to cvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x5338): undefined reference tocvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x5794): undefined reference to cvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x57b8): undefined reference tocvInitFont' CarMotionTwoLines-HSV.cpp:(.text+0x5920): undefined reference to cvPutText' CarMotionTwoLines-HSV.cpp:(.text+0x5b50): undefined reference tocvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x6374): undefined reference to cvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x6398): undefined reference tocvInitFont' CarMotionTwoLines-HSV.cpp:(.text+0x6500): undefined reference to cvPutText' CarMotionTwoLines-HSV.cpp:(.text+0x6654): undefined reference tocvPutText' CarMotionTwoLines-HSV.cpp:(.text+0x6844): undefined reference to cvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x69cc): undefined reference tocvInitFont' CarMotionTwoLines-HSV.cpp:(.text+0x6af4): undefined reference to cvPutText' CarMotionTwoLines-HSV.cpp:(.text+0x6c4c): undefined reference tocvPutText' CarMotionTwoLines-HSV.cpp:(.text+0x6e7c): undefined reference to cvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x706c): undefined reference tocvRectangle' /tmp/cclicE4h.o: In function idTrackCarPersonOneLine(_IplImage*, int**, std::_Rb_tree_const_iterator<std::pair<unsigned int const, cvb::CvBlob*> >, std::_Rb_tree_const_iterator<std::pair<unsigned int const, cvb::CvTrack*> >, int, double, double, CvFont, char*, int**, int**, int&, int&, int*, int*, int*, int*, int*, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int**)': CarMotionTwoLines-HSV.cpp:(.text+0x767c): undefined reference tocvDistanceLinePoint' CarMotionTwoLines-HSV.cpp:(.text+0x77f4): undefined reference to cvInitFont' CarMotionTwoLines-HSV.cpp:(.text+0x791c): undefined reference tocvPutText' CarMotionTwoLines-HSV.cpp:(.text+0x7a74): undefined reference to cvPutText' CarMotionTwoLines-HSV.cpp:(.text+0x7cb8): undefined reference tocvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x7ea8): undefined reference to cvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x7ff4): undefined reference tocvDistanceLinePoint' CarMotionTwoLines-HSV.cpp:(.text+0x8424): undefined reference to cvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x8448): undefined reference tocvInitFont' CarMotionTwoLines-HSV.cpp:(.text+0x85b0): undefined reference to cvPutText' CarMotionTwoLines-HSV.cpp:(.text+0x87e0): undefined reference tocvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x88fc): undefined reference to cvDistanceLinePoint' CarMotionTwoLines-HSV.cpp:(.text+0x900c): undefined reference tocvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x9030): undefined reference to cvInitFont' CarMotionTwoLines-HSV.cpp:(.text+0x9198): undefined reference tocvPutText' CarMotionTwoLines-HSV.cpp:(.text+0x92ec): undefined reference to cvPutText' CarMotionTwoLines-HSV.cpp:(.text+0x94dc): undefined reference tocvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x95f8): undefined reference to cvDistanceLinePoint' CarMotionTwoLines-HSV.cpp:(.text+0x9784): undefined reference tocvInitFont' CarMotionTwoLines-HSV.cpp:(.text+0x98ac): undefined reference to cvPutText' CarMotionTwoLines-HSV.cpp:(.text+0x9a04): undefined reference tocvPutText' CarMotionTwoLines-HSV.cpp:(.text+0x9c34): undefined reference to cvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x9e24): undefined reference tocvRectangle' CarMotionTwoLines-HSV.cpp:(.text+0x9f40): undefined reference to cvDistanceLinePoint' /tmp/cclicE4h.o: In functiongetTime(CvCapture, int&, int&, int&, int&)': CarMotionTwoLines-HSV.cpp:(.text+0xa2a0): undefined reference to cvGetCaptureProperty' CarMotionTwoLines-HSV.cpp:(.text+0xa2b4): undefined reference tocvGetCaptureProperty' CarMotionTwoLines-HSV.cpp:(.text+0xa2e0): undefined reference to cvGetCaptureProperty' CarMotionTwoLines-HSV.cpp:(.text+0xa2f4): undefined reference tocvGetCaptureProperty' CarMotionTwoLines-HSV.cpp:(.text+0xa344): undefined reference to cvGetCaptureProperty' /tmp/cclicE4h.o:CarMotionTwoLines-HSV.cpp:(.text+0xa358): more undefined references tocvGetCaptureProperty' follow /tmp/cclicE4h.o: In function initialization(_IplImage*, CarVideoHandler)': CarMotionTwoLines-HSV.cpp:(.text+0xa980): undefined reference tocvCreateImage' CarMotionTwoLines-HSV.cpp:(.text+0xaa70): undefined reference to cvCreateImage' CarMotionTwoLines-HSV.cpp:(.text+0xab10): undefined reference tocvCreateImage' CarMotionTwoLines-HSV.cpp:(.text+0xab34): undefined reference to cvCreateImage' CarMotionTwoLines-HSV.cpp:(.text+0xab58): undefined reference tocvCreateImage' /tmp/cclicE4h.o:CarMotionTwoLines-HSV.cpp:(.text+0xab7c): more undefined references to cvCreateImage' follow /tmp/cclicE4h.o: In functioninitialization(_IplImage, CarVideoHandler)': CarMotionTwoLines-HSV.cpp:(.text+0xad70): undefined reference to cvCreateVideoWriter' CarMotionTwoLines-HSV.cpp:(.text+0xb1e8): undefined reference tocvCreateMemStorage' CarMotionTwoLines-HSV.cpp:(.text+0xb5b0): undefined reference to cvCreateStructuringElementEx' CarMotionTwoLines-HSV.cpp:(.text+0xb604): undefined reference tocvCreateStructuringElementEx' CarMotionTwoLines-HSV.cpp:(.text+0xb78c): undefined reference to cvGetTickCount' /tmp/cclicE4h.o: In functionmotionAlgorithm(_IplImage, CarVideoHandler)': CarMotionTwoLines-HSV.cpp:(.text+0xb888): undefined reference to cvGetTickCount' CarMotionTwoLines-HSV.cpp:(.text+0xb8d4): undefined reference tocvGetTickCount' CarMotionTwoLines-HSV.cpp:(.text+0xb910): undefined reference to cvGetTickFrequency' CarMotionTwoLines-HSV.cpp:(.text+0xb93c): undefined reference tocvGetTickFrequency' CarMotionTwoLines-HSV.cpp:(.text+0xbb78): undefined reference to cvReleaseVideoWriter' CarMotionTwoLines-HSV.cpp:(.text+0xbb90): undefined reference tocvDestroyWindow' CarMotionTwoLines-HSV.cpp:(.text+0xbc24): undefined reference to cvGetTickCount' CarMotionTwoLines-HSV.cpp:(.text+0xbc60): undefined reference tocvGetTickFrequency' CarMotionTwoLines-HSV.cpp:(.text+0xbca8): undefined reference to cvCvtColor' CarMotionTwoLines-HSV.cpp:(.text+0xbce4): undefined reference tocvSmooth' CarMotionTwoLines-HSV.cpp:(.text+0xbce8): undefined reference to cvGetTickCount' CarMotionTwoLines-HSV.cpp:(.text+0xbd38): undefined reference tocvCopy' CarMotionTwoLines-HSV.cpp:(.text+0xbd58): undefined reference to cvCloneImage' CarMotionTwoLines-HSV.cpp:(.text+0xbd78): undefined reference tocvCloneImage' CarMotionTwoLines-HSV.cpp:(.text+0xbdac): undefined reference to cvConvertScale' CarMotionTwoLines-HSV.cpp:(.text+0xbe28): undefined reference tocvRunningAvg' CarMotionTwoLines-HSV.cpp:(.text+0xbe4c): undefined reference to cvConvertScale' CarMotionTwoLines-HSV.cpp:(.text+0xbe74): undefined reference tocvAbsDiff' CarMotionTwoLines-HSV.cpp:(.text+0xbe94): undefined reference to cvCopy' CarMotionTwoLines-HSV.cpp:(.text+0xbe98): undefined reference tocvGetTickCount' CarMotionTwoLines-HSV.cpp:(.text+0xbed4): undefined reference to cvGetTickFrequency' CarMotionTwoLines-HSV.cpp:(.text+0xbf00): undefined reference tocvGetTickCount' CarMotionTwoLines-HSV.cpp:(.text+0xbf5c): undefined reference to cvThreshold' CarMotionTwoLines-HSV.cpp:(.text+0xbf60): undefined reference tocvGetTickCount' CarMotionTwoLines-HSV.cpp:(.text+0xbf9c): undefined reference to cvGetTickFrequency' CarMotionTwoLines-HSV.cpp:(.text+0xbfc8): undefined reference tocvGetTickCount' CarMotionTwoLines-HSV.cpp:(.text+0xc010): undefined reference to cvDilate' CarMotionTwoLines-HSV.cpp:(.text+0xc034): undefined reference tocvErode' CarMotionTwoLines-HSV.cpp:(.text+0xc038): undefined reference to cvGetTickCount' CarMotionTwoLines-HSV.cpp:(.text+0xc074): undefined reference tocvGetTickFrequency' CarMotionTwoLines-HSV.cpp:(.text+0xc0a0): undefined reference to cvGetTickCount' CarMotionTwoLines-HSV.cpp:(.text+0xc0e8): undefined reference tocvGetSize' CarMotionTwoLines-HSV.cpp:(.text+0xc0fc): undefined reference to cvCreateImage' CarMotionTwoLines-HSV.cpp:(.text+0xc120): undefined reference tocvLabel' CarMotionTwoLines-HSV.cpp:(.text+0xc14c): undefined reference to cvFilterByArea' CarMotionTwoLines-HSV.cpp:(.text+0xc174): undefined reference tocvUpdateTracks' CarMotionTwoLines-HSV.cpp:(.text+0xc178): undefined reference to cvGetTickCount' CarMotionTwoLines-HSV.cpp:(.text+0xc1b4): undefined reference tocvGetTickFrequency' CarMotionTwoLines-HSV.cpp:(.text+0xc1e0): undefined reference to cvGetTickCount' CarMotionTwoLines-HSV.cpp:(.text+0xc3d4): undefined reference tocvLine' CarMotionTwoLines-HSV.cpp:(.text+0xc4ec): undefined reference to cvLine' CarMotionTwoLines-HSV.cpp:(.text+0xc888): undefined reference tocvInitFont' CarMotionTwoLines-HSV.cpp:(.text+0xc958): undefined reference to cvPutText' CarMotionTwoLines-HSV.cpp:(.text+0xca28): undefined reference tocvPutText' CarMotionTwoLines-HSV.cpp:(.text+0xcaf8): undefined reference to cvPutText' CarMotionTwoLines-HSV.cpp:(.text+0xcc20): undefined reference tocvLine' CarMotionTwoLines-HSV.cpp:(.text+0xcd30): undefined reference to cvShowImage' CarMotionTwoLines-HSV.cpp:(.text+0xcd38): undefined reference tocvWaitKey' CarMotionTwoLines-HSV.cpp:(.text+0xcd84): undefined reference to cvWriteFrame' CarMotionTwoLines-HSV.cpp:(.text+0xcd90): undefined reference tocvReleaseImage' CarMotionTwoLines-HSV.cpp:(.text+0xcd9c): undefined reference to cvGetTickCount' CarMotionTwoLines-HSV.cpp:(.text+0xcdd8): undefined reference tocvGetTickFrequency' CarMotionTwoLines-HSV.cpp:(.text+0xce04): undefined reference to cvGetTickCount' CarMotionTwoLines-HSV.cpp:(.text+0xce40): undefined reference tocvGetTickCount' CarMotionTwoLines-HSV.cpp:(.text+0xce7c): undefined reference to cvGetTickFrequency' /tmp/cclicE4h.o: In functionfinish()': CarMotionTwoLines-HSV.cpp:(.text+0xcf30): undefined reference to cvReleaseImage' CarMotionTwoLines-HSV.cpp:(.text+0xcf38): undefined reference tocvReleaseImage' CarMotionTwoLines-HSV.cpp:(.text+0xcf40): undefined reference to cvReleaseImage' CarMotionTwoLines-HSV.cpp:(.text+0xcf48): undefined reference tocvReleaseImage' CarMotionTwoLines-HSV.cpp:(.text+0xcf58): undefined reference to cvReleaseStructuringElement' CarMotionTwoLines-HSV.cpp:(.text+0xcf60): undefined reference tocvReleaseStructuringElement' /tmp/cclicE4h.o: In function main': CarMotionTwoLines-HSV.cpp:(.text+0xd33c): undefined reference tocvCreateFileCapture' CarMotionTwoLines-HSV.cpp:(.text+0xd360): undefined reference to cvQueryFrame' CarMotionTwoLines-HSV.cpp:(.text+0xd3c0): undefined reference tocvQueryFrame' collect2: ld returned 1 exit status

click to hide/show revision 2
No.2 Revision

updated 2015-11-05 11:24:22 -0600

berak gravatar image

compiling Opencv and cvBlob libraries in Raspbian Wheezy OS. Getting undefined references error

pi@raspberrypi ~ $ g++ CarMotionTwoLines-HSV.cpp
 CarMotionTwoLines-HSV.cpp: In constructor ‘CarVideoHandler::CarVideoHandler()’:
CarMotionTwoLines-HSV.cpp:92:17: warning: deprecated conversion from string constant to ‘char‘char*’ [-Wwrite-strings]
CarMotionTwoLines-HSV.cpp:93:14: warning: deprecated conversion from string constant to ‘char‘char*’ [-Wwrite-strings]
CarMotionTwoLines-HSV.cpp:94:14: warning: deprecated conversion from string constant to ‘char‘char*’ [-Wwrite-strings]
CarMotionTwoLines-HSV.cpp:95:17: warning: deprecated conversion from string constant to ‘char‘char*’ [-Wwrite-strings]
CarMotionTwoLines-HSV.cpp:98:15: warning: deprecated conversion from string constant to ‘char‘char*’ [-Wwrite-strings]
CarMotionTwoLines-HSV.cpp:99:15: warning: deprecated conversion from string constant to ‘char‘char*’ [-Wwrite-strings]
/tmp/cclicE4h.o: In function allocateOnDemand(_IplImage**, `allocateOnDemand(_IplImage**, CvSize, int, int)':
CarMotionTwoLines-HSV.cpp:(.text+0x380): undefined reference tocvCreateImage'
/tmp/cclicE4h.o: In function resizeImg(_IplImage*, to `cvCreateImage'
/tmp/cclicE4h.o: In function `resizeImg(_IplImage*, int)':
CarMotionTwoLines-HSV.cpp:(.text+0x4e0): undefined reference tocvResize'
/tmp/cclicE4h.o: In function resizeImgColor(_IplImage*, to `cvResize'
/tmp/cclicE4h.o: In function `resizeImgColor(_IplImage*, int)':
CarMotionTwoLines-HSV.cpp:(.text+0x5a8): undefined reference tocvResize'
/tmp/cclicE4h.o: In function MorfologiaDE(_IplImage*, to `cvResize'
/tmp/cclicE4h.o: In function `MorfologiaDE(_IplImage*, _IplImage*, int)':
CarMotionTwoLines-HSV.cpp:(.text+0x628): undefined reference tocvCreateStructuringElementEx'
to `cvCreateStructuringElementEx'
CarMotionTwoLines-HSV.cpp:(.text+0x648): undefined reference to cvDilate'
`cvDilate'
CarMotionTwoLines-HSV.cpp:(.text+0x660): undefined reference tocvErode'
to `cvErode'
CarMotionTwoLines-HSV.cpp:(.text+0x66c): undefined reference to cvReleaseStructuringElement'
/tmp/cclicE4h.o: In functionmouseHandler(int, `cvReleaseStructuringElement'
/tmp/cclicE4h.o: In function `mouseHandler(int, int, int, int, void)':
void*)':
CarMotionTwoLines-HSV.cpp:(.text+0x1178): undefined reference to cvCloneImage'
`cvCloneImage'
CarMotionTwoLines-HSV.cpp:(.text+0x1278): undefined reference tocvRectangle'
to `cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x148c): undefined reference to cvLine'
`cvLine'
CarMotionTwoLines-HSV.cpp:(.text+0x14e0): undefined reference tocvShowImage'
/tmp/cclicE4h.o: In function idTrackCarPerson(_IplImage*, to `cvShowImage'
/tmp/cclicE4h.o: In function `idTrackCarPerson(_IplImage*, int**, std::_Rb_tree_const_iterator<std::pair<unsigned int const, cvb::CvBlob*> >, std::_Rb_tree_const_iterator<std::pair<unsigned int const, cvb::CvTrack*> >, int, double, double, double, CvFont, char*, int**, int**, int**, int**, int&, int&, int*, int*, int*, int*, int*, int, int, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
CarMotionTwoLines-HSV.cpp:(.text+0x4c88): undefined reference tocvInitFont'
to `cvInitFont'
CarMotionTwoLines-HSV.cpp:(.text+0x4db0): undefined reference to cvPutText'
`cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0x4f08): undefined reference tocvPutText'
to `cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0x5148): undefined reference to cvRectangle'
`cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x5338): undefined reference tocvRectangle'
to `cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x5794): undefined reference to cvRectangle'
`cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x57b8): undefined reference tocvInitFont'
to `cvInitFont'
CarMotionTwoLines-HSV.cpp:(.text+0x5920): undefined reference to cvPutText'
`cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0x5b50): undefined reference tocvRectangle'
to `cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x6374): undefined reference to cvRectangle'
`cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x6398): undefined reference tocvInitFont'
to `cvInitFont'
CarMotionTwoLines-HSV.cpp:(.text+0x6500): undefined reference to cvPutText'
`cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0x6654): undefined reference tocvPutText'
to `cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0x6844): undefined reference to cvRectangle'
`cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x69cc): undefined reference tocvInitFont'
to `cvInitFont'
CarMotionTwoLines-HSV.cpp:(.text+0x6af4): undefined reference to cvPutText'
`cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0x6c4c): undefined reference tocvPutText'
to `cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0x6e7c): undefined reference to cvRectangle'
`cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x706c): undefined reference tocvRectangle'
/tmp/cclicE4h.o: In function idTrackCarPersonOneLine(_IplImage*, to `cvRectangle'
/tmp/cclicE4h.o: In function `idTrackCarPersonOneLine(_IplImage*, int**, std::_Rb_tree_const_iterator<std::pair<unsigned int const, cvb::CvBlob*> >, std::_Rb_tree_const_iterator<std::pair<unsigned int const, cvb::CvTrack*> >, int, double, double, CvFont, char*, int**, int**, int&, int&, int*, int*, int*, int*, int*, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int**)':
CarMotionTwoLines-HSV.cpp:(.text+0x767c): undefined reference tocvDistanceLinePoint'
to `cvDistanceLinePoint'
CarMotionTwoLines-HSV.cpp:(.text+0x77f4): undefined reference to cvInitFont'
`cvInitFont'
CarMotionTwoLines-HSV.cpp:(.text+0x791c): undefined reference tocvPutText'
to `cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0x7a74): undefined reference to cvPutText'
`cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0x7cb8): undefined reference tocvRectangle'
to `cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x7ea8): undefined reference to cvRectangle'
`cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x7ff4): undefined reference tocvDistanceLinePoint'
to `cvDistanceLinePoint'
CarMotionTwoLines-HSV.cpp:(.text+0x8424): undefined reference to cvRectangle'
`cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x8448): undefined reference tocvInitFont'
to `cvInitFont'
CarMotionTwoLines-HSV.cpp:(.text+0x85b0): undefined reference to cvPutText'
`cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0x87e0): undefined reference tocvRectangle'
to `cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x88fc): undefined reference to cvDistanceLinePoint'
`cvDistanceLinePoint'
CarMotionTwoLines-HSV.cpp:(.text+0x900c): undefined reference tocvRectangle'
to `cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x9030): undefined reference to cvInitFont'
`cvInitFont'
CarMotionTwoLines-HSV.cpp:(.text+0x9198): undefined reference tocvPutText'
to `cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0x92ec): undefined reference to cvPutText'
`cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0x94dc): undefined reference tocvRectangle'
to `cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x95f8): undefined reference to cvDistanceLinePoint'
`cvDistanceLinePoint'
CarMotionTwoLines-HSV.cpp:(.text+0x9784): undefined reference tocvInitFont'
to `cvInitFont'
CarMotionTwoLines-HSV.cpp:(.text+0x98ac): undefined reference to cvPutText'
`cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0x9a04): undefined reference tocvPutText'
to `cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0x9c34): undefined reference to cvRectangle'
`cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x9e24): undefined reference tocvRectangle'
to `cvRectangle'
CarMotionTwoLines-HSV.cpp:(.text+0x9f40): undefined reference to cvDistanceLinePoint'
/tmp/cclicE4h.o: In functiongetTime(CvCapture, `cvDistanceLinePoint'
/tmp/cclicE4h.o: In function `getTime(CvCapture*, int&, int&, int&, int&)':
CarMotionTwoLines-HSV.cpp:(.text+0xa2a0): undefined reference to cvGetCaptureProperty'
`cvGetCaptureProperty'
CarMotionTwoLines-HSV.cpp:(.text+0xa2b4): undefined reference tocvGetCaptureProperty'
to `cvGetCaptureProperty'
CarMotionTwoLines-HSV.cpp:(.text+0xa2e0): undefined reference to cvGetCaptureProperty'
`cvGetCaptureProperty'
CarMotionTwoLines-HSV.cpp:(.text+0xa2f4): undefined reference tocvGetCaptureProperty'
to `cvGetCaptureProperty'
CarMotionTwoLines-HSV.cpp:(.text+0xa344): undefined reference to cvGetCaptureProperty'
`cvGetCaptureProperty'
/tmp/cclicE4h.o:CarMotionTwoLines-HSV.cpp:(.text+0xa358): more undefined references tocvGetCaptureProperty' to `cvGetCaptureProperty' follow
/tmp/cclicE4h.o: In function initialization(_IplImage*, `initialization(_IplImage*, CarVideoHandler)':
CarMotionTwoLines-HSV.cpp:(.text+0xa980): undefined reference tocvCreateImage'
to `cvCreateImage'
CarMotionTwoLines-HSV.cpp:(.text+0xaa70): undefined reference to cvCreateImage'
`cvCreateImage'
CarMotionTwoLines-HSV.cpp:(.text+0xab10): undefined reference tocvCreateImage'
to `cvCreateImage'
CarMotionTwoLines-HSV.cpp:(.text+0xab34): undefined reference to cvCreateImage'
`cvCreateImage'
CarMotionTwoLines-HSV.cpp:(.text+0xab58): undefined reference tocvCreateImage'
to `cvCreateImage'
/tmp/cclicE4h.o:CarMotionTwoLines-HSV.cpp:(.text+0xab7c): more undefined references to cvCreateImage' `cvCreateImage' follow
/tmp/cclicE4h.o: In functioninitialization(_IplImage, function `initialization(_IplImage*, CarVideoHandler)':
CarMotionTwoLines-HSV.cpp:(.text+0xad70): undefined reference to cvCreateVideoWriter'
`cvCreateVideoWriter'
CarMotionTwoLines-HSV.cpp:(.text+0xb1e8): undefined reference tocvCreateMemStorage'
to `cvCreateMemStorage'
CarMotionTwoLines-HSV.cpp:(.text+0xb5b0): undefined reference to cvCreateStructuringElementEx'
`cvCreateStructuringElementEx'
CarMotionTwoLines-HSV.cpp:(.text+0xb604): undefined reference tocvCreateStructuringElementEx'
to `cvCreateStructuringElementEx'
CarMotionTwoLines-HSV.cpp:(.text+0xb78c): undefined reference to cvGetTickCount'
/tmp/cclicE4h.o: In functionmotionAlgorithm(_IplImage, `cvGetTickCount'
/tmp/cclicE4h.o: In function `motionAlgorithm(_IplImage*, CarVideoHandler)':
CarMotionTwoLines-HSV.cpp:(.text+0xb888): undefined reference to cvGetTickCount'
`cvGetTickCount'
CarMotionTwoLines-HSV.cpp:(.text+0xb8d4): undefined reference tocvGetTickCount'
to `cvGetTickCount'
CarMotionTwoLines-HSV.cpp:(.text+0xb910): undefined reference to cvGetTickFrequency'
`cvGetTickFrequency'
CarMotionTwoLines-HSV.cpp:(.text+0xb93c): undefined reference tocvGetTickFrequency'
to `cvGetTickFrequency'
CarMotionTwoLines-HSV.cpp:(.text+0xbb78): undefined reference to cvReleaseVideoWriter'
`cvReleaseVideoWriter'
CarMotionTwoLines-HSV.cpp:(.text+0xbb90): undefined reference tocvDestroyWindow'
to `cvDestroyWindow'
CarMotionTwoLines-HSV.cpp:(.text+0xbc24): undefined reference to cvGetTickCount'
`cvGetTickCount'
CarMotionTwoLines-HSV.cpp:(.text+0xbc60): undefined reference tocvGetTickFrequency'
to `cvGetTickFrequency'
CarMotionTwoLines-HSV.cpp:(.text+0xbca8): undefined reference to cvCvtColor'
`cvCvtColor'
CarMotionTwoLines-HSV.cpp:(.text+0xbce4): undefined reference tocvSmooth'
to `cvSmooth'
CarMotionTwoLines-HSV.cpp:(.text+0xbce8): undefined reference to cvGetTickCount'
`cvGetTickCount'
CarMotionTwoLines-HSV.cpp:(.text+0xbd38): undefined reference tocvCopy'
to `cvCopy'
CarMotionTwoLines-HSV.cpp:(.text+0xbd58): undefined reference to cvCloneImage'
`cvCloneImage'
CarMotionTwoLines-HSV.cpp:(.text+0xbd78): undefined reference tocvCloneImage'
to `cvCloneImage'
CarMotionTwoLines-HSV.cpp:(.text+0xbdac): undefined reference to cvConvertScale'
`cvConvertScale'
CarMotionTwoLines-HSV.cpp:(.text+0xbe28): undefined reference tocvRunningAvg'
to `cvRunningAvg'
CarMotionTwoLines-HSV.cpp:(.text+0xbe4c): undefined reference to cvConvertScale'
`cvConvertScale'
CarMotionTwoLines-HSV.cpp:(.text+0xbe74): undefined reference tocvAbsDiff'
to `cvAbsDiff'
CarMotionTwoLines-HSV.cpp:(.text+0xbe94): undefined reference to cvCopy'
`cvCopy'
CarMotionTwoLines-HSV.cpp:(.text+0xbe98): undefined reference tocvGetTickCount'
to `cvGetTickCount'
CarMotionTwoLines-HSV.cpp:(.text+0xbed4): undefined reference to cvGetTickFrequency'
`cvGetTickFrequency'
CarMotionTwoLines-HSV.cpp:(.text+0xbf00): undefined reference tocvGetTickCount'
to `cvGetTickCount'
CarMotionTwoLines-HSV.cpp:(.text+0xbf5c): undefined reference to cvThreshold'
`cvThreshold'
CarMotionTwoLines-HSV.cpp:(.text+0xbf60): undefined reference tocvGetTickCount'
to `cvGetTickCount'
CarMotionTwoLines-HSV.cpp:(.text+0xbf9c): undefined reference to cvGetTickFrequency'
`cvGetTickFrequency'
CarMotionTwoLines-HSV.cpp:(.text+0xbfc8): undefined reference tocvGetTickCount'
to `cvGetTickCount'
CarMotionTwoLines-HSV.cpp:(.text+0xc010): undefined reference to cvDilate'
`cvDilate'
CarMotionTwoLines-HSV.cpp:(.text+0xc034): undefined reference tocvErode'
to `cvErode'
CarMotionTwoLines-HSV.cpp:(.text+0xc038): undefined reference to cvGetTickCount'
`cvGetTickCount'
CarMotionTwoLines-HSV.cpp:(.text+0xc074): undefined reference tocvGetTickFrequency'
to `cvGetTickFrequency'
CarMotionTwoLines-HSV.cpp:(.text+0xc0a0): undefined reference to cvGetTickCount'
`cvGetTickCount'
CarMotionTwoLines-HSV.cpp:(.text+0xc0e8): undefined reference tocvGetSize'
to `cvGetSize'
CarMotionTwoLines-HSV.cpp:(.text+0xc0fc): undefined reference to cvCreateImage'
`cvCreateImage'
CarMotionTwoLines-HSV.cpp:(.text+0xc120): undefined reference tocvLabel'
to `cvLabel'
CarMotionTwoLines-HSV.cpp:(.text+0xc14c): undefined reference to cvFilterByArea'
`cvFilterByArea'
CarMotionTwoLines-HSV.cpp:(.text+0xc174): undefined reference tocvUpdateTracks'
to `cvUpdateTracks'
CarMotionTwoLines-HSV.cpp:(.text+0xc178): undefined reference to cvGetTickCount'
`cvGetTickCount'
CarMotionTwoLines-HSV.cpp:(.text+0xc1b4): undefined reference tocvGetTickFrequency'
to `cvGetTickFrequency'
CarMotionTwoLines-HSV.cpp:(.text+0xc1e0): undefined reference to cvGetTickCount'
`cvGetTickCount'
CarMotionTwoLines-HSV.cpp:(.text+0xc3d4): undefined reference tocvLine'
to `cvLine'
CarMotionTwoLines-HSV.cpp:(.text+0xc4ec): undefined reference to cvLine'
`cvLine'
CarMotionTwoLines-HSV.cpp:(.text+0xc888): undefined reference tocvInitFont'
to `cvInitFont'
CarMotionTwoLines-HSV.cpp:(.text+0xc958): undefined reference to cvPutText'
`cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0xca28): undefined reference tocvPutText'
to `cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0xcaf8): undefined reference to cvPutText'
`cvPutText'
CarMotionTwoLines-HSV.cpp:(.text+0xcc20): undefined reference tocvLine'
to `cvLine'
CarMotionTwoLines-HSV.cpp:(.text+0xcd30): undefined reference to cvShowImage'
`cvShowImage'
CarMotionTwoLines-HSV.cpp:(.text+0xcd38): undefined reference tocvWaitKey'
to `cvWaitKey'
CarMotionTwoLines-HSV.cpp:(.text+0xcd84): undefined reference to cvWriteFrame'
`cvWriteFrame'
CarMotionTwoLines-HSV.cpp:(.text+0xcd90): undefined reference tocvReleaseImage'
to `cvReleaseImage'
CarMotionTwoLines-HSV.cpp:(.text+0xcd9c): undefined reference to cvGetTickCount'
`cvGetTickCount'
CarMotionTwoLines-HSV.cpp:(.text+0xcdd8): undefined reference tocvGetTickFrequency'
to `cvGetTickFrequency'
CarMotionTwoLines-HSV.cpp:(.text+0xce04): undefined reference to cvGetTickCount'
`cvGetTickCount'
CarMotionTwoLines-HSV.cpp:(.text+0xce40): undefined reference tocvGetTickCount'
to `cvGetTickCount'
CarMotionTwoLines-HSV.cpp:(.text+0xce7c): undefined reference to cvGetTickFrequency'
/tmp/cclicE4h.o: In functionfinish()':
`cvGetTickFrequency'
/tmp/cclicE4h.o: In function `finish()':
CarMotionTwoLines-HSV.cpp:(.text+0xcf30): undefined reference to cvReleaseImage'
`cvReleaseImage'
CarMotionTwoLines-HSV.cpp:(.text+0xcf38): undefined reference tocvReleaseImage'
to `cvReleaseImage'
CarMotionTwoLines-HSV.cpp:(.text+0xcf40): undefined reference to cvReleaseImage'
`cvReleaseImage'
CarMotionTwoLines-HSV.cpp:(.text+0xcf48): undefined reference tocvReleaseImage'
to `cvReleaseImage'
CarMotionTwoLines-HSV.cpp:(.text+0xcf58): undefined reference to cvReleaseStructuringElement'
`cvReleaseStructuringElement'
CarMotionTwoLines-HSV.cpp:(.text+0xcf60): undefined reference tocvReleaseStructuringElement'
/tmp/cclicE4h.o: In function main':
to `cvReleaseStructuringElement'
/tmp/cclicE4h.o: In function `main':
CarMotionTwoLines-HSV.cpp:(.text+0xd33c): undefined reference tocvCreateFileCapture'
to `cvCreateFileCapture'
CarMotionTwoLines-HSV.cpp:(.text+0xd360): undefined reference to cvQueryFrame'
`cvQueryFrame'
CarMotionTwoLines-HSV.cpp:(.text+0xd3c0): undefined reference tocvQueryFrame'
to `cvQueryFrame'
collect2: ld returned 1 exit status

status