jujojujo2003 / opencvhandguesture Goto Github PK
View Code? Open in Web Editor NEWHand Tracking And Gesture Detection (OpenCV)
Hand Tracking And Gesture Detection (OpenCV)
#include <X11/Xlib.h>
#include <X11/Xutil.h>
Error: cannot find these files
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 to
XOpenDisplay'
main.cpp:(.text+0x58d): undefined reference to XQueryPointer' main.cpp:(.text+0x627): undefined reference to
XQueryPointer'
main.cpp:(.text+0x658): undefined reference to XSendEvent' main.cpp:(.text+0x68c): undefined reference to
XFlush'
main.cpp:(.text+0x69b): undefined reference to XCloseDisplay' /tmp/cc3ht5yT.o: In function
mouseRelease()':
main.cpp:(.text+0x6e0): undefined reference to XOpenDisplay' main.cpp:(.text+0x7cb): undefined reference to
XQueryPointer'
main.cpp:(.text+0x865): undefined reference to XQueryPointer' main.cpp:(.text+0x8a7): undefined reference to
XSendEvent'
main.cpp:(.text+0x8db): undefined reference to XFlush' main.cpp:(.text+0x8ea): undefined reference to
XCloseDisplay'
/tmp/cc3ht5yT.o: In function mouseTo(int, int)': main.cpp:(.text+0x919): undefined reference to
XOpenDisplay'
main.cpp:(.text+0x977): undefined reference to XWarpPointer' main.cpp:(.text+0x987): undefined reference to
XFlush'
main.cpp:(.text+0x993): undefined reference to XCloseDisplay' /tmp/cc3ht5yT.o: In function
main':
main.cpp:(.text+0xa10): undefined reference to cv::VideoCapture::VideoCapture(int)' main.cpp:(.text+0xa1f): undefined reference to
cv::BackgroundSubtractorMOG2::BackgroundSubtractorMOG2()'
main.cpp:(.text+0xa38): undefined reference to cv::Algorithm::set(char const*, int)' main.cpp:(.text+0xa51): undefined reference to
cv::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 to
cv::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 to
cv::_OutputArray::_OutputArray(cv::Mat&)'
main.cpp:(.text+0xb78): undefined reference to cv::_InputArray::_InputArray(cv::Mat const&)' main.cpp:(.text+0xba0): undefined reference to
cv::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 to
cv::_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 to
cv::_OutputArray::_OutputArray(cv::Mat&)'
main.cpp:(.text+0xc31): undefined reference to cv::BackgroundSubtractorMOG2::getBackgroundImage(cv::_OutputArray const&) const' main.cpp:(.text+0xc81): undefined reference to
cv::_InputArray::_InputArray(cv::Mat const&)'
main.cpp:(.text+0xc9a): undefined reference to cv::_OutputArray::_OutputArray(cv::Mat&)' main.cpp:(.text+0xcb3): undefined reference to
cv::_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 to
cv::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 to
cv::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 to
cv::_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 to
cv::_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 to
cv::waitKey(int)'
main.cpp:(.text+0x2698): undefined reference to cv::BackgroundSubtractorMOG2::~BackgroundSubtractorMOG2()' main.cpp:(.text+0x26a7): undefined reference to
cv::VideoCapture::~VideoCapture()'
main.cpp:(.text+0x2978): undefined reference to cv::BackgroundSubtractorMOG2::~BackgroundSubtractorMOG2()' main.cpp:(.text+0x298c): undefined reference to
cv::VideoCapture::~VideoCapture()'
/tmp/cc3ht5yT.o: In function cv::Mat::~Mat()': main.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x39): undefined reference to
cv::fastFree(void*)'
/tmp/cc3ht5yT.o: In function cv::Mat::release()': main.cpp:(.text._ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x47): undefined reference to
cv::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 to
vtable 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 function
cv::_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 function
cv::_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 function
cv::_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
You give no instructions on how to set this project up.
What dependencies are needed?
What version of opencv is this compatible with?
I install opencv, try to make, and get a ton of errors.
How to make work?
I see two unfamiliar header files;
# include <X11/Xlib.h>
# include <X11/Xutil.h>
What are they? I never seen in OpenCV.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.