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

Cannot compile gstreamer_view #6

Open
rod-hendricks opened this issue Sep 5, 2019 · 1 comment
Open

Cannot compile gstreamer_view #6

rod-hendricks opened this issue Sep 5, 2019 · 1 comment

Comments

@rod-hendricks
Copy link

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
`

@xjp99v5
Copy link

xjp99v5 commented Apr 9, 2021

I have the same issue, do you know how to solve this.

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

2 participants