Dear all,
I am trying to install geant4 v11.0.0 in my 2019 MacBook Pro (macOS Monterey) with qt enabled. But I have been getting the following errors
/usr/local/Cellar/qt@5/5.15.2_1/lib/QtGui.framework/Headers/qpixmap.h:134:31: error: unknown type name ‘QMatrix’
QPixmap transformed(const QMatrix &, Qt::TransformationMode mode = Qt::FastTransformation) const;
^
/usr/local/Cellar/qt@5/5.15.2_1/lib/QtGui.framework/Headers/qpixmap.h:136:12: error: unknown type name ‘QMatrix’
static QMatrix trueMatrix(const QMatrix &m, int w, int h);
^
/usr/local/Cellar/qt@5/5.15.2_1/lib/QtGui.framework/Headers/qpixmap.h:136:37: error: unknown type name ‘QMatrix’
static QMatrix trueMatrix(const QMatrix &m, int w, int h);
^
output.txt (14.8 KB)
I used the following cmake command to build geant4
cmake -DGEANT4_INSTALL_DATA=ON
-DGEANT4_INSTALL_DATADIR=“/Users/nibir/Physics/Software/geant4-v11.0.0/G4_data”
-DCMAKE_INSTALL_PREFIX=/Users/nibir/Physics/Software/geant4-v11.0.0/G4_install
-DCMAKE_PREFIX_PATH=“/usr/local/Cellar/xerces-c/3.2.3”
-DXERCESC_ROOT_DIR=“/usr/local/Cellar/xerces-c/3.2.3”
-DXERCESC_LIBRARY=/usr/local/Cellar/xerces-c/3.2.3/lib/libxerces-c-3.2.dylib
-DGEANT4_USE_OPENGL_X11=ON
-DGEANT4_USE_GDML=ON
-DGEANT4_BUILD_MULTITHREADED=ON
-DGEANT4_USE_QT=ON
-DCMAKE_PREFIX_PATH=“/usr/local/Cellar/qt@5/5.15.2_1/lib/cmake”
-DQT_QMAKE_EXECUTABLE=/usr/local/opt/qt@5/bin/qmake
/Users/nibir/Physics/Software/geant4-v11.0.0
I have been trying to resolve this since quite a long time, but I didn’t get any success till now. It would be really nice if someone could help me with it.

