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

when i tried to rebuild with -DWITH_OPENGL=ON and -DWITH_GTK=ON also, i still got
– GUI: NONE
– GTK+: NO
– OpenGL support: NO