conda-forge / geant4-feedstock

A conda-smithy repository for geant4.
BSD 3-Clause "New" or "Revised" License
8 stars 10 forks source link

Support for macos 11.6.x (but in general Big Sur) #35

Closed HealthyPear closed 1 year ago

HealthyPear commented 2 years ago

Related issues

(Apparent) Reason

For what concerns Qt support, it seems that macos 11 started to be supported from Qt6

image

Unfortunately I cannot seem to find a Qt6 conda package (Il'' open an issue in the corresponding feedstock)

OpenGL support was deprecated in macOS 10.14...

Tobias-Fischer commented 2 years ago

I'm not sure I understand your issue. Could you please be more precise what is/isn't working?

HealthyPear commented 2 years ago

Basically I am trying to run exampleB1, it runs, but I cannot see any GUI.

I investigated a bit, and I noticed that the Qt package shipped with the environment create with conda create --name test-g4-tutuorial geant4 compilers cmake make is 5.12, which supported macos up to 10.15, whereas I have 11.6.6.

At least I think this is the problem. (at the bottom of #19 I wrote what I tried - meanwhile I also opened a thread on Geant4 forum, but there not many people uses conda...)

HealthyPear commented 2 years ago

(on Ubuntu 20.04 LTS it works, but there it's using OpenGL)

ckoern commented 2 years ago

Have you tried export QT_MAC_WANTS_LAYER=1 before running you Geant4 application? With that, I am able to run my simulations on an M1 Mac with Big Sur

HealthyPear commented 2 years ago

Thank you @ckoern, what you suggested fixed my problem!

@Tobias-Fischer maybe this also fixes this issue?

HealthyPear commented 2 years ago

I think this "trick" should be reported at least in the README (unless it was a problem in the setups of me and @ckoern )

ckoern commented 2 years ago

Glad to hear, that it worked for you! I think, this is a Qt 5.12 specific issue as Big Sur is not officially supported there but will not be needed for 5.15. You should also expect to see some artefacts in the visualization but no real showstopper. As Qt 5.15 seems very close to be integrated into the qt-feedstock, that workaround should not be needed for too long so I don't know, if any readme notice is necessary anymore. And 5.15 will also bring the Qt3D viewer as a visualization option, so it is not needed anymore to use the OpenGL drivers (which have been deprecated by apple), so this will hopefully be a great improvement for Geant4 on osx.

Tobias-Fischer commented 2 years ago

We've got qt 5.15 now - is this still an issue?

HealthyPear commented 1 year ago

Sorry for the delay of some months!

I recently re-installed Geant 4 11.0.3 and it comes with qt-main 5.15.6 haeff654_6 conda-forge

and e.g. the interactive visualization of example B1 works fine - closing issue!