OpenCV building error

OpenCV+Astra Orbbec OpenNi SDK generate an error while building.

Do anyone knows a solution?

Windows 10,
Cmake 3.20.4
Qt 6.1.1 Mingw 8.1.0

Undefined references typically occur when the linker (kind of part of the compiler) does not find the library/function.

In my experience, it occurs when you’re building for a different architecture (x86 when it should be x64) or when you are linking the program improperly.

Hope this helps

Thank you.
I think its look like no way to build project with mingw. VС only.