Installation in Fedora 30

Hi everyone,
I am trying to do an installation in Fedora 30. I use the following syntax

cmake -DCMAKE_INSTALL_PREFIX=/home/yajnya/Geant4/geant4.10.05.p01-install -DGEANT4_USE_QT=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_INSTALL_DATA=ON-DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_USE_GDML=ON -DGEANT4_USE_SYSTEM_EXPAT=OFF -DGEANT4_USE_SYSTEM_CLHEP=ON -DCLHEP_INCLUDE_DIR=/home/yajnya/CLHEP/2.4.1.0/CLHEP-install/include/ -DCLHEP_LIBRARY=/home/user/CLHEP/2.4.1.0/CLHEP-install/lib/libCLHEP.so -DGEANT4_INSTALL_EXAMPLES=ON /home/yajnya/Geant4/geant4.10.05.p01

I get the following error message:

CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:1314 (message):
Found unsuitable Qt version “” from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
cmake/Modules/Geant4InterfaceOptions.cmake:120 (find_package)
cmake/Modules/G4CMakeMain.cmake:64 (include)
CMakeLists.txt:55 (include)

– Configuring incomplete, errors occurred!
See also “/usr/lib64/cmake/CMakeFiles/CMakeOutput.log”.

I have both Qt4 and Qt5 installed. I don’t understand why cmake fails to find it.
Thanks in advance.
Yajnya

Where are Qt4 and Qt5 installed on the system?

Hi Benjamin,
Thanks for your reply. In the meantime I changed my OS to Ubuntu in order to be on the same page as other users of the forum. I have successfully installed Geant4 with an offline install of the data directories. The replies of @sanchitsharma to various users also helped a lot.
I look forward to your cooperation in further issues that may come along the way.

Cheers!
Yajnya Sapkota