opencv-rust
opencv-rust copied to clipboard
Can't build ld.lld: error: undefined symbol: cv::VideoCapture::VideoCapture(std::__cxx11::basic_s tring<char, std::char_traits<char>, std::allocator<char>> const&, int)
- Gentoo Linux
- installed from portage (so build from source)
- OpenCV version: 4.8.1
- rustc version: 1.73.0 (cc66ad468 2023-10-03) (gentoo)
- build.txt
That's a very weird error to be honest. Judging by the 3 link errors you're getting it looks like OpenCV functions are not accepting std::string typed arguments. The only situation that I can think about when it might be happening is that some of the so files are from OpenCV 3.x branch. In that branch the cv::String type was a separate definition unlike in 4.x where it's an alias to std::string. Can you double check that your OpenCV installation is clean?
I hope you're no longer getting this issue!