With -DWITH_GSTREAMER=ON only cannot enable gstreamer

HAVE_GSTREAMER is a CMake flag. If cmake finds gstreamer then flag is ON else it is false

Did you install GStreamer with dev support?