Good to see that you got it passed. These days I also have been struggling to compile opencv-4.7.0 with gstreamer support.
I tried cross-compiling it with lots tries but failed because cmake cannot find my cross-compiled gstreamer.
Now, I am trying native compilation of it on the aarch64 board, and it almost gets to the target.