Again build Geant4

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: Sequoia 15.6.1
Compiler/Version:
CMake Version:

I have a problem that the Geant4 not stable, I downloaded it for many times for Mac. Now, again I try to download 11.3.0 again as it was on my lab before , try to download 11.3.1, try to download 11.3.2 to suit the operating system, but I get this issue after do make

‘‘‘

[ 85%] Building CXX object source/CMakeFiles/G4interfaces.dir/interfaces/core/src/G4VBasicShell.cc.o
[ 85%] Building CXX object source/CMakeFiles/G4interfaces.dir/interfaces/core/src/G4VInteractiveSession.cc.o
[ 85%] Building CXX object source/CMakeFiles/G4interfaces.dir/interfaces/core/src/G4VInteractorManager.cc.o
[ 85%] Building CXX object source/CMakeFiles/G4interfaces.dir/interfaces/core/src/G4VUIshell.cc.o
[ 85%] Building CXX object source/CMakeFiles/G4interfaces.dir/interfaces/core/src/G4UItcsh.cc.o
[ 85%] Building CXX object source/CMakeFiles/G4interfaces.dir/interfaces/implementation/src/G4UIExecutive.cc.o
[ 85%] Building CXX object source/CMakeFiles/G4interfaces.dir/interfaces/implementation/src/G4UIQt.cc.o
[ 85%] Building CXX object source/CMakeFiles/G4interfaces.dir/interfaces/implementation/src/G4Qt.cc.o
[ 85%] Linking CXX shared library ../BuildProducts/lib/libG4interfaces.dylib
ld: framework ‘AGL’ not found
c++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [BuildProducts/lib/libG4interfaces.dylib] Error 1
make[1]: *** [source/CMakeFiles/G4interfaces.dir/all] Error 2
make: *** [all] Error 2
sarahabdelaziz@Sarahs-MacBook-Pro build-11.3.2 % brew

‘‘‘

Could you help me to solve these errors, please?

Thanks!

@bmorgan


1 Like

At first glance looks like something is trying to link AGL which I don’t think exists anymore in Sequoia. What version of QT is brew using? Has to be like QT6.5+. Or just disable it and open GL while building to see if that “solves” the issue.

how can I know which Qt is right to use, please?

If, as it seems, the home-brew install of Qt is being used, run

brew ls --versions qt

per this post on the Qt forum: ld: framework 'AGL' not found on macOS Tahoe | Qt Forum, anything higher than 6.8.4 should fix it. Homebrew currently installs 6.9.3, so you may need to run brew upgrade.

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