Open erlingrj opened 2 years ago
Hi @erlingrj ,
Please make sure you compiled the OpenCV libs with g++ (# 6) from the Vitis installation area.
Hi, I"m running into the same problem. I actually used the g++ compiler at /usr/bin/g++ to compile the openCV libs, so that definitely seems to be the issue according to @vt-lib-support answer. I did so, because the g++ compiler of Vitis seems to be missing in my installation. The "gcc-6.2.0" folder in /tools/Xilinx/Vitis/2022.1/tps/lnx64 is missing, so I couldn't compile the OpenCV lib as described here. My work around of using the other compiler was definitely wrong then :).
I unfortunately can't figure out why that is the case and how to install the vitis g++ compiler. Any suggestions? Thx a lot in advance.
Hi,
You can change -std = c ++ 0x to -std = c++14 to solve this problem.
I am trying to build some of the simple examples but am getting a linker error:
/usr/local/opencv4.4/lib/libopencv_flann.so: undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()@GLIBCXX_3.4.26' /usr/local/opencv4.4/lib/libopencv_imgcodecs.so: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream()@GLIBCXX_3.4.26'
I am on the branch 2021.2 (to match my Vitis installation) and I have compiled OpenCV from sources and installed at "/usr/local/opencv4.4". The complete output is pasted below