When compiling Geant4 on Mac, I encountered an unsolved system error saying: ld: framework 'AGL' not found clang++: error: linker command failed with exit code 1

Please fill out the following information to help in answering your question, and also see tips for posting code snippets. If you don’t provide this information it will take more time to help with your problem!

_Geant4 Version: 11.3.2
_Operating System: MacOS 26 (Tahoe)
Compiler/Version:
_CMake Version: 4.0.3

This is when I was running the make command

Sorry, but there’s not enough information here to help. With what CMake arguments did you configure Geant4, and how have you installed external packages needed (e.g. Qt), if any?

I’d also note that Tahoe is only just in beta, and Geant4 won’t support it formally until the official release later this year.

Hi! I’m using a MacBook Pro (M3 Pro) running macOS 26. I understand this system isn’t officially supported yet, but I just want to give it a try. I installed the external packages like Qt using “brew install” command on terminal, for the cmake arguments please check the attached screenshots.


!

Screenshot 2025-07-07 at 20.58.19|690x448

All I can suggest is turning off GEANT4_USE_OPENGL_X11 and GEANT4_USE_RAYTRACER_X11 as XQuartz/etc might be causing issues. I’d generally only recommend the Qt6 or VTK drivers on modern macOS.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.