Cannot find -lQtCore

Hi
I want to run basic examples through make but I get the following error:
" Creating shared library tmp/Linux-g++/exampleB1/libexampleB1.so …
/usr/bin/ld: cannot find -lQtCore
/usr/bin/ld: cannot find -lQtGui
/usr/bin/ld: cannot find -lQtCore
/usr/bin/ld: cannot find -lQtGui
/usr/bin/ld: cannot find -lQtOpenGL
collect2: error: ld returned 1 exit status
/usr/local/include/geant4install/share/Geant4-10.5.0/geant4make/config/common.gmk:48: recipe for target ‘tmp/Linux-g++/exampleB1/libexampleB1.so’ failed
make: *** [tmp/Linux-g++/exampleB1/libexampleB1.so] Error 1"

However, I have already installed these libraries.
How to fix this error? Thanks

I recommend you use “cmake”, then “make”.

Follow the instructions in the Installation Guide. To build with Qt you have to supply “cmake” with the following parameters, using the -D option:
GEANT4_USE_QT=ON
QT_QMAKE_EXECUTABLE=<your qmake>
CMAKE_PREFIX_PATH=<your Qt library>

Hope that helps.