Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues while running make command #3

Open
ashokbugude opened this issue Jul 31, 2016 · 0 comments
Open

Issues while running make command #3

ashokbugude opened this issue Jul 31, 2016 · 0 comments

Comments

@ashokbugude
Copy link

Below are the errors faced while running the make command.Pls help resolve the issues

ashok@ashok:~/Downloads/OpenCVHandGuesture-master$ make
rm -rf a.out
g++ pkg-config --libs opencv -lX11 main.cpp
/tmp/cc3ht5yT.o: In function mouseClick()': main.cpp:(.text+0x498): undefined reference toXOpenDisplay'
main.cpp:(.text+0x58d): undefined reference to XQueryPointer' main.cpp:(.text+0x627): undefined reference toXQueryPointer'
main.cpp:(.text+0x658): undefined reference to XSendEvent' main.cpp:(.text+0x68c): undefined reference toXFlush'
main.cpp:(.text+0x69b): undefined reference to XCloseDisplay' /tmp/cc3ht5yT.o: In functionmouseRelease()':
main.cpp:(.text+0x6e0): undefined reference to XOpenDisplay' main.cpp:(.text+0x7cb): undefined reference toXQueryPointer'
main.cpp:(.text+0x865): undefined reference to XQueryPointer' main.cpp:(.text+0x8a7): undefined reference toXSendEvent'
main.cpp:(.text+0x8db): undefined reference to XFlush' main.cpp:(.text+0x8ea): undefined reference toXCloseDisplay'
/tmp/cc3ht5yT.o: In function mouseTo(int, int)': main.cpp:(.text+0x919): undefined reference toXOpenDisplay'
main.cpp:(.text+0x977): undefined reference to XWarpPointer' main.cpp:(.text+0x987): undefined reference toXFlush'
main.cpp:(.text+0x993): undefined reference to XCloseDisplay' /tmp/cc3ht5yT.o: In functionmain':
main.cpp:(.text+0xa10): undefined reference to cv::VideoCapture::VideoCapture(int)' main.cpp:(.text+0xa1f): undefined reference tocv::BackgroundSubtractorMOG2::BackgroundSubtractorMOG2()'
main.cpp:(.text+0xa38): undefined reference to cv::Algorithm::set(char const*, int)' main.cpp:(.text+0xa51): undefined reference tocv::Algorithm::set(char const_, bool)'
main.cpp:(.text+0xa8f): undefined reference to cv::namedWindow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' main.cpp:(.text+0xaeb): undefined reference tocv::namedWindow(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)'
main.cpp:(.text+0xb27): undefined reference to cv::VideoCapture::operator>>(cv::Mat&)' main.cpp:(.text+0xb5f): undefined reference tocv::_OutputArray::_OutputArray(cv::Mat&)'
main.cpp:(.text+0xb78): undefined reference to cv::_InputArray::_InputArray(cv::Mat const&)' main.cpp:(.text+0xba0): undefined reference tocv::BackgroundSubtractorMOG2::operator()(cv::_InputArray const&, cv::_OutputArray const&, double)'
main.cpp:(.text+0xbc2): undefined reference to cv::_OutputArray::_OutputArray(cv::Mat&)' main.cpp:(.text+0xbdb): undefined reference tocv::_InputArray::_InputArray(cv::Mat const&)'
main.cpp:(.text+0xbff): undefined reference to cv::BackgroundSubtractorMOG2::operator()(cv::_InputArray const&, cv::_OutputArray const&, double)' main.cpp:(.text+0xc18): undefined reference tocv::_OutputArray::_OutputArray(cv::Mat&)'
main.cpp:(.text+0xc31): undefined reference to cv::BackgroundSubtractorMOG2::getBackgroundImage(cv::_OutputArray const&) const' main.cpp:(.text+0xc81): undefined reference tocv::_InputArray::_InputArray(cv::Mat const&)'
main.cpp:(.text+0xc9a): undefined reference to cv::_OutputArray::_OutputArray(cv::Mat&)' main.cpp:(.text+0xcb3): undefined reference tocv::_InputArray::_InputArray(cv::Mat const&)'
main.cpp:(.text+0xcef): undefined reference to cv::erode(cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, cv::Point_<int>, int, int, cv::Scalar_<double> const&)' main.cpp:(.text+0xd52): undefined reference to cv::_InputArray::_InputArray(cv::Mat const&)'
main.cpp:(.text+0xd6b): undefined reference tocv::_OutputArray::_OutputArray(cv::Mat&)' main.cpp:(.text+0xd84): undefined reference to cv::_InputArray::_InputArray(cv::Mat const&)'
main.cpp:(.text+0xdc0): undefined reference tocv::dilate(cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, cv::Point_<int>, int, int, cv::Scalar_<double> const&)' main.cpp:(.text+0xe14): undefined reference to cv::_OutputArray::_OutputArray(cv::Mat&)'
main.cpp:(.text+0xe3e): undefined reference tocv::findContours(cv::_OutputArray const&, cv::_OutputArray const&, int, int, cv::Point_<int>)' main.cpp:(.text+0xeb2): undefined reference to cv::contourArea(cv::_InputArray const&, bool)'
main.cpp:(.text+0xf18): undefined reference tocv::noArray()' main.cpp:(.text+0xf74): undefined reference to cv::OutputArray::OutputArray(cv::Mat&)'
main.cpp:(.text+0xfb7): undefined reference tocv::drawContours(cv::_OutputArray const&, cv::_InputArray const&, int, cv::Scalar_<double> const&, int, int, cv::_InputArray const&, int, cv::Point_<int>)' main.cpp:(.text+0x10e7): undefined reference to cv::InputArray::InputArray(cv::Mat const&)'
main.cpp:(.text+0x1107): undefined reference tocv::convexHull(cv::_InputArray const&, cv::_OutputArray const&, bool, bool)' main.cpp:(.text+0x1186): undefined reference to cv::InputArray::InputArray(cv::Mat const&)'
main.cpp:(.text+0x11a6): undefined reference tocv::convexHull(cv::_InputArray const&, cv::_OutputArray const&, bool, bool)' main.cpp:(.text+0x11c9): undefined reference to cv::noArray()'
main.cpp:(.text+0x1225): undefined reference tocv::_OutputArray::_OutputArray(cv::Mat&)' main.cpp:(.text+0x1268): undefined reference to cv::drawContours(cv::OutputArray const&, cv::InputArray const&, int, cv::Scalar const&, int, int, cv::InputArray const&, int, cv::Point)'
main.cpp:(.text+0x12b3): undefined reference to cv::_InputArray::_InputArray(cv::Mat const&)' main.cpp:(.text+0x12cc): undefined reference tocv::minAreaRect(cv::InputArray const&)'
main.cpp:(.text+0x1354): undefined reference to cv::RotatedRect::points(cv::Point_<float>_) const' main.cpp:(.text+0x143d): undefined reference to cv::line(cv::Mat&, cv::Point
, cv::Point
, cv::Scalar
const&, int, int, int)'
main.cpp:(.text+0x14e7): undefined reference tocv::convexityDefects(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&)' main.cpp:(.text+0x1ced): undefined reference to cv::circle(cv::Mat&, cv::Point, int, cv::Scalar const&, int, int, int)'
main.cpp:(.text+0x1d8e): undefined reference to cv::circle(cv::Mat&, cv::Point_<int>, int, cv::Scalar_<double> const&, int, int, int)' main.cpp:(.text+0x231b): undefined reference tocv::line(cv::Mat&, cv::Point, cv::Point, cv::Scalar const&, int, int, int)'
main.cpp:(.text+0x2535): undefined reference to cv::putText(cv::Mat&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::Point_<int>, int, double, cv::Scalar_<double>, int, int, bool)' main.cpp:(.text+0x2570): undefined reference tocv::_InputArray::_InputArray(cv::Mat const&)'
main.cpp:(.text+0x25b3): undefined reference to cv::imshow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&)' main.cpp:(.text+0x25ea): undefined reference tocv::_InputArray::_InputArray(cv::Mat const&)'
main.cpp:(.text+0x262d): undefined reference to cv::imshow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cv::_InputArray const&)' main.cpp:(.text+0x2655): undefined reference tocv::waitKey(int)'
main.cpp:(.text+0x2698): undefined reference to cv::BackgroundSubtractorMOG2::~BackgroundSubtractorMOG2()' main.cpp:(.text+0x26a7): undefined reference tocv::VideoCapture::~VideoCapture()'
main.cpp:(.text+0x2978): undefined reference to cv::BackgroundSubtractorMOG2::~BackgroundSubtractorMOG2()' main.cpp:(.text+0x298c): undefined reference tocv::VideoCapture::~VideoCapture()'
/tmp/cc3ht5yT.o: In function cv::Mat::~Mat()': main.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x39): undefined reference tocv::fastFree(void*)'
/tmp/cc3ht5yT.o: In function cv::Mat::release()': main.cpp:(.text._ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x47): undefined reference tocv::Mat::deallocate()'
/tmp/cc3ht5yT.o: In function cv::_InputArray::_InputArray<int>(std::vector<int, std::allocator<int> > const&)': main.cpp:(.text._ZN2cv11_InputArrayC2IiEERKSt6vectorIT_SaIS3_EE[_ZN2cv11_InputArrayC5IiEERKSt6vectorIT_SaIS3_EE]+0x11): undefined reference tovtable for cv::_InputArray'
/tmp/cc3ht5yT.o: In function cv::_OutputArray::_OutputArray<cv::Point_<int> >(std::vectorstd::vector<cv::Point_<int, std::allocatorcv::Point_<int > >, std::allocatorstd::vector<cv::Point_<int, std::allocatorcv::Point_<int > > > >&)': main.cpp:(.text._ZN2cv12_OutputArrayC2INS_6Point_IiEEEERSt6vectorIS4_IT_SaIS5_EESaIS7_EE[_ZN2cv12_OutputArrayC5INS_6Point_IiEEEERSt6vectorIS4_IT_SaIS5_EESaIS7_EE]+0x24): undefined reference to vtable for cv::_OutputArray'
/tmp/cc3ht5yT.o: In functioncv::_InputArray::_InputArray<cv::Point_<int> >(std::vectorcv::Point_<int, std::allocatorcv::Point_<int > > const&)': main.cpp:(.text._ZN2cv11_InputArrayC2INS_6Point_IiEEEERKSt6vectorIT_SaIS5_EE[_ZN2cv11_InputArrayC5INS_6Point_IiEEEERKSt6vectorIT_SaIS5_EE]+0x11): undefined reference to vtable for cv::_InputArray'
/tmp/cc3ht5yT.o: In functioncv::_InputArray::_InputArray<cv::Point_<int> >(std::vectorstd::vector<cv::Point_<int, std::allocatorcv::Point_<int > >, std::allocatorstd::vector<cv::Point_<int, std::allocatorcv::Point_<int > > > > const&)': main.cpp:(.text._ZN2cv11_InputArrayC2INS_6Point_IiEEEERKSt6vectorIS4_IT_SaIS5_EESaIS7_EE[_ZN2cv11_InputArrayC5INS_6Point_IiEEEERKSt6vectorIS4_IT_SaIS5_EESaIS7_EE]+0x11): undefined reference to vtable for cv::_InputArray'
/tmp/cc3ht5yT.o: In functioncv::Mat::Mat<cv::Point_<int> >(std::vectorcv::Point_<int, std::allocatorcv::Point_<int > > const&, bool)': main.cpp:(.text._ZN2cv3MatC2INS_6Point_IiEEEERKSt6vectorIT_SaIS5_EEb[_ZN2cv3MatC5INS_6Point_IiEEEERKSt6vectorIT_SaIS5_EEb]+0x20d): undefined reference to cv::_OutputArray::_OutputArray(cv::Mat&)'
main.cpp:(.text._ZN2cv3MatC2INS_6Point_IiEEEERKSt6vectorIT_SaIS5_EEb[ZN2cv3MatC5INS_6Point_IiEEEERKSt6vectorIT_SaIS5_EEb]+0x26a): undefined reference tocv::Mat::copyTo(cv::_OutputArray const&) const' /tmp/cc3ht5yT.o: In function cv::OutputArray::OutputArray<cv::Point >(std::vectorcv::Point<int, std::allocatorcv::Point >&)':
main.cpp:(.text._ZN2cv12_OutputArrayC2INS_6Point_IiEEEERSt6vectorIT_SaIS5_EE[_ZN2cv12_OutputArrayC5INS_6Point_IiEEEERSt6vectorIT_SaIS5_EE]+0x24): undefined reference to vtable for cv::_OutputArray' /tmp/cc3ht5yT.o: In functioncv::_OutputArray::_OutputArray(std::vector<int, std::allocator >&)':
main.cpp:(.text._ZN2cv12_OutputArrayC2IiEERSt6vectorIT_SaIS3_EE[_ZN2cv12_OutputArrayC5IiEERSt6vectorIT_SaIS3_EE]+0x24): undefined reference to vtable for cv::_OutputArray' /tmp/cc3ht5yT.o: In functioncv::_OutputArray::_OutputArray<cv::Vec<int, 4> >(std::vector<cv::Vec<int, 4>, std::allocator<cv::Vec<int, 4> > >&)':
main.cpp:(.text._ZN2cv12_OutputArrayC2INS_3VecIiLi4EEEEERSt6vectorIT_SaIS5_EE[_ZN2cv12_OutputArrayC5INS_3VecIiLi4EEEEERSt6vectorIT_SaIS5_EE]+0x24): undefined reference to vtable for cv::_OutputArray' /tmp/cc3ht5yT.o: In functioncv::_InputArray::_InputArray<cv::Vec<int, 4> >(std::vector<cv::Vec<int, 4>, std::allocator<cv::Vec<int, 4> > > const&)':
main.cpp:(.text._ZN2cv11_InputArrayC2INS_3VecIiLi4EEEEERKSt6vectorIT_SaIS5_EE[_ZN2cv11_InputArrayC5INS_3VecIiLi4EEEEERKSt6vectorIT_SaIS5_EE]+0x11): undefined reference to `vtable for cv::_InputArray'
collect2: error: ld returned 1 exit status
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant