You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i enter the command g++ -o gstreamer_view -Wall -std=c++11 gstreamer_view.cpp $(pkg-config –libs opencv) to compile gstreamer_view I receive an error. Do you have any suggestions as to how to go about this?
/tmp/ccFajRhl.o: In functionmain':
gstreamer_view.cpp:(.text+0x28c): undefined reference to cv::VideoCapture::VideoCapture(cv::String const&, int)' gstreamer_view.cpp:(.text+0x29c): undefined reference to cv::VideoCapture::isOpened() const'
gstreamer_view.cpp:(.text+0x2d0): undefined reference to cv::VideoCapture::~VideoCapture()' gstreamer_view.cpp:(.text+0x308): undefined reference to cv::VideoCapture::operator>>(cv::Mat&)'
gstreamer_view.cpp:(.text+0x30c): undefined reference to cv::VideoCapture::operator>>(cv::Mat&)' gstreamer_view.cpp:(.text+0x340): undefined reference to cv::imshow(cv::String const&, cv::_InputArray const&)'
gstreamer_view.cpp:(.text+0x358): undefined reference to cv::waitKey(int)' gstreamer_view.cpp:(.text+0x3a0): undefined reference to cv::VideoCapture::~VideoCapture()'
/tmp/ccFajRhl.o: In function cv::String::String(char const*)': gstreamer_view.cpp:(.text._ZN2cv6StringC2EPKc[_ZN2cv6StringC5EPKc]+0x4c): undefined reference to cv::String::allocate(unsigned long)'
/tmp/ccFajRhl.o: In function cv::String::~String()': gstreamer_view.cpp:(.text._ZN2cv6StringD2Ev[_ZN2cv6StringD5Ev]+0x10): undefined reference to cv::String::deallocate()'
/tmp/ccFajRhl.o: In function cv::String::operator=(cv::String const&)': gstreamer_view.cpp:(.text._ZN2cv6StringaSERKS0_[_ZN2cv6StringaSERKS0_]+0x2c): undefined reference to cv::String::deallocate()'
/tmp/ccFajRhl.o: In function cv::Mat::~Mat()': gstreamer_view.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x34): undefined reference to cv::fastFree(void*)'
/tmp/ccFajRhl.o: In function cv::Mat::release()': gstreamer_view.cpp:(.text._ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x58): undefined reference to cv::Mat::deallocate()'
/tmp/ccFajRhl.o: In function cv::String::String(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': gstreamer_view.cpp:(.text._ZN2cv6StringC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN2cv6StringC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x44): undefined reference to cv::String::allocate(unsigned long)'
collect2: error: ld returned 1 exit status
`
The text was updated successfully, but these errors were encountered:
When i enter the command g++ -o gstreamer_view -Wall -std=c++11 gstreamer_view.cpp $(pkg-config –libs opencv) to compile gstreamer_view I receive an error. Do you have any suggestions as to how to go about this?
/tmp/ccFajRhl.o: In function
main':gstreamer_view.cpp:(.text+0x28c): undefined reference to
cv::VideoCapture::VideoCapture(cv::String const&, int)' gstreamer_view.cpp:(.text+0x29c): undefined reference to
cv::VideoCapture::isOpened() const'gstreamer_view.cpp:(.text+0x2d0): undefined reference to
cv::VideoCapture::~VideoCapture()' gstreamer_view.cpp:(.text+0x308): undefined reference to
cv::VideoCapture::operator>>(cv::Mat&)'gstreamer_view.cpp:(.text+0x30c): undefined reference to
cv::VideoCapture::operator>>(cv::Mat&)' gstreamer_view.cpp:(.text+0x340): undefined reference to
cv::imshow(cv::String const&, cv::_InputArray const&)'gstreamer_view.cpp:(.text+0x358): undefined reference to
cv::waitKey(int)' gstreamer_view.cpp:(.text+0x3a0): undefined reference to
cv::VideoCapture::~VideoCapture()'/tmp/ccFajRhl.o: In function
cv::String::String(char const*)': gstreamer_view.cpp:(.text._ZN2cv6StringC2EPKc[_ZN2cv6StringC5EPKc]+0x4c): undefined reference to
cv::String::allocate(unsigned long)'/tmp/ccFajRhl.o: In function
cv::String::~String()': gstreamer_view.cpp:(.text._ZN2cv6StringD2Ev[_ZN2cv6StringD5Ev]+0x10): undefined reference to
cv::String::deallocate()'/tmp/ccFajRhl.o: In function
cv::String::operator=(cv::String const&)': gstreamer_view.cpp:(.text._ZN2cv6StringaSERKS0_[_ZN2cv6StringaSERKS0_]+0x2c): undefined reference to
cv::String::deallocate()'/tmp/ccFajRhl.o: In function
cv::Mat::~Mat()': gstreamer_view.cpp:(.text._ZN2cv3MatD2Ev[_ZN2cv3MatD5Ev]+0x34): undefined reference to
cv::fastFree(void*)'/tmp/ccFajRhl.o: In function
cv::Mat::release()': gstreamer_view.cpp:(.text._ZN2cv3Mat7releaseEv[_ZN2cv3Mat7releaseEv]+0x58): undefined reference to
cv::Mat::deallocate()'/tmp/ccFajRhl.o: In function
cv::String::String(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': gstreamer_view.cpp:(.text._ZN2cv6StringC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN2cv6StringC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x44): undefined reference to
cv::String::allocate(unsigned long)'collect2: error: ld returned 1 exit status
`
The text was updated successfully, but these errors were encountered: