OpenCV4.7 Cross Compilation, runtime error: rebuild the library with windows, gtk+ 2.x or cocoa support

The board is arm based.

The board is based on wayland-weston
what change do i need to do?