Installation of opencv3.4.6 in Ubuntu18.04 using cmake

0

I have compiled the source file opencv and when I test it some problem occurred like this:

/usr/local/lib/libopencv_objdetect.so.3.4.6: undefined reference to `std::thread::_State::~_State()@GLIBCXX_3.4.22'
/usr/local/lib/libopencv_objdetect.so.3.4.6: undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())@GLIBCXX_3.4.22'
/usr/local/lib/libopencv_objdetect.so.3.4.6: undefined reference to `typeinfo for std::thread::_State@GLIBCXX_3.4.22'
collect2: error: ld returned 1 exit status

I tried to find solutions for this problem but failed.  What's wrong with it?  How can I solve it?

user1048971

Posted 2019-06-17T10:37:28.053

Reputation: 1

No answers