next-exp / nexus

Geant4 simulation framework of the NEXT Collaboration
5 stars 55 forks source link

Add necessity of env variable for Qt headers #244

Closed paolafer closed 6 months ago

paolafer commented 6 months ago

This PR fixes an issue with how scons deals (or, better, doesn't) with the new -F flags which fixes Qt compilation starting from geant4-v11.2.1. The user will need to define a new environment variable, QT_DIR, in order to be able to do only incremental compilations and not be forced to compile every time from scratch when using scons.

soleti commented 6 months ago

I've tested this and it works on macOS 14.2.1 with clang-1500.1.0.2.5. Qt5 was installed with brew. The commands I used were:

export QT_DIR=$(brew --cellar qt@5)/5.15.12
scons HDF5_DIR=$(brew --cellar hdf5)/1.14.3/ -j 32
paolafer commented 6 months ago

Thanks, @soleti! I've assigned you as a reviewer, you can approve the PR whenever you can!