Error with the visualization for example B1 on Ubuntu

Hello,
I am running into the error while executing the B1 example.

> ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer.
Here is the following screenshot :


It runs into idle > as follows:

I had compiled using the following cmake command:-`

cmake -DGEANT4_INSTALL_DATA=ON -DGEANT4_INSTALL_DATADIR="…/geant4_install/share/Geant4-10.6.1/data/" -DCMAKE_INSTALL_PREFIX="/home/rhythm/Geant_Installation/GEANT4/geant4.10.06.p01" -DCMAKE_PREFIX_PATH="/usr/lib/x86_64-linux-gnu/" -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_QT=ON -DGEANT4_USE_GDML=ON -DGEANT4_BUILD_MULTITHREADED=ON …/geant4.10.06.p01/

On checking the config in

~/Geant_Installation/GEANT4/geant4_install/bin$ geant4-config --help

I get no for all the features even though had installed the Qt.

Any help would be highly appreciated. Thanks in advance.