With -DWITH_GSTREAMER=ON only cannot enable gstreamer

No, I didn’t. I am trying to cross compile the opencv. I already finished cross-compiling the gstreamer-1.20 and then made the following changes to modules/videoio/CMakeLists.txt as below:
find_package(PkgConfig REQUIRED)
set(GST_DIR /home/alan/V4L2/gstreamer/_install)

set(ENV{PKG_CONFIG_PATH} “${GST_DIR}/lib/pkgconfig”)

pkg_check_modules(GST REQUIRED IMPORTED_TARGET
gstreamer-1.0
)

ocv_target_link_libraries(${the_module} LINK_PRIVATE PkgConfig::GST)