Cannot find -lQtCore

I want to run basic examples through make but I get the following error:
" Creating shared library tmp/Linux-g++/exampleB1/ …
/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/’ failed
make: *** [tmp/Linux-g++/exampleB1/] 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:
CMAKE_PREFIX_PATH=<your Qt library>

Hope that helps.