Geant4 doesn't show particle path in GUI

Geant4 Version: 11.1.2
Operating System: Ubuntu 22.04.2 LTS
Compiler/Version: g++ (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0


Hi, I am a new user to both Ubuntu and Geant4. I have been trying to install Geant4, and I have successfully gotten the command line interface of Geant4 to work, but I’m having trouble getting the GUI to work. I had to rebuild Geant4 once, which is how I got the GUI to show at all, but I do not know how to get the window to visualize properly when I input /run/beamOn 1, for instance. I have been following the “Physics Matters” tutorial on YouTube, so that is the program running pictured here.

This is my view of the GUI, and when I first start up the program, it gives me the following error:

  Candidates are: ASCIITree ATree DAWNFILE G4HepRepFile HepRepFile RayTracer VRML2FILE gMocrenFile TOOLSSG_OFFSCREEN TSG_OFFSCREEN TOOLSSG_OFFSCREEN TSG_OFFSCREEN TSG_FILE

-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : UIMAN0123
      issued by : G4UImanager::ApplyCommand
Invoked command has failed - see above. Available graphics systems are:
 Registered graphics systems are:
  ASCIITree (ATree)
  DAWNFILE (DAWNFILE)
  G4HepRepFile (HepRepFile)
  RayTracer (RayTracer)
  VRML2FILE (VRML2FILE)
  gMocrenFile (gMocrenFile)
  TOOLSSG_OFFSCREEN (TSG_OFFSCREEN)
  TOOLSSG_OFFSCREEN (TSG_OFFSCREEN, TSG_FILE)

Error code : 500
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer.
WARNING: Scene handler not found.
ERROR: Current scene handler not defined.  Please select or create one.
ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer.

The commands I’m having run on program startup (hard-coded into my program, as instructed in the tutorial I saw) are as follows:

UImanager->ApplyCommand("/vis/open OGL");
UImanager->ApplyCommand("/vis/viewer/set/viewpointVector 1 1 1");
UImanager->ApplyCommand("/vis/drawVolume");
UImanager->ApplyCommand("/vis/viewer/set/autoRefresh true");
UImanager->ApplyCommand("/vis/scene/add/trajectories smooth");

As I mentioned previously, I rebuilt/reinstalled Geant4 once, to get it to show the GUI at all, and the cmake command gave me this error:

Disabling Geant4 Qt3D driver, missing Qt packages: Qt53DCore;Qt53DExtras;Qt53DRender

As I have also mentioned, I am new to Ubuntu, so I don’t know exactly how to fix this, but I assume this is the reason that Geant4 is not showing me the path of my particles in the GUI window. Thanks!

1 Like

You need to build with a graphics system. See Building and Installing from Source — Geant4 Installation Guide 11.1 documentation. In particular, if you have OpenGL (most systems have) and X11 (most Unix systems have): GEANT4_USE_OPENGL_X11. If you also have Qt, you could also try GEANT4_USE_QT, which might need CMAKE_PREFIX_PATH as well.

For Qt3D, you need to install the packages it says are missing.

When I say “build”, I mean “build from scratch”.

John

P.S. We cannot vouch for YouTube “tutorials”. Please always refer to the Geant4 documentation.

Thank you John, reading the link you sent solved my problem. I hadn’t been following all of the steps when rebuilding (make uninstall and then doing everything again from scratch) and that made the difference.

After further experimentation, I’ve run into a new (but still related) issue: I have two folders, sim and sim2, contained in a parent directory, Documents. If I run my program in sim, it works fine, opening up a GUI and showing everything as desired.

However, if I copy and paste the sim folder and rename the new folder to sim2, running the executable only opens up the command line interface (I can’t add a picture since I’m a new user, but it only runs in the command line).

As far as I can tell, the difference between the two programs is that, when run in sim, the “available UI session types” includes Qt, (Available UI session types: [ Qt, tcsh, csh ]), while it doesn’t when run in sim2 (Available UI session types: [ tcsh, csh ]). I’m not sure how to solve this, as it works properly without my input sometimes but not always. Any help would be appreciated.

Perhaps you have more than one copy of your app, and it’s simply picking the wrong one in the second case.

It’s a matter of keeping a clean directory structure and…knowing how the Unix directory system works, how it picks up apps/programs/executables. Perhaps you could find a primer on Unix and its shells. It’s the shell - sh, bash, zsh, csh tcsh - that interprets the commands - cd, ls, pwd, which,… I recommend bash, which is probably what you have,

I will admit that I don’t know much about the Unix directory system or how the shells work, but I’m using bash, as you said. I’m not entirely sure what you mean by having “more than one copy of my app”. There is only one executable in each directory, and the CMakeLists.txt files are identical in both directories (is that the problem? I didn’t think so, but I’m not sure). I’m relatively sure both directories are clean (everything is located within Documents, and the only files in each directory are the CMake and C++ files required for the programs). I’m confused how I would have done anything differently in the second directory, to cause bash to not be able to source (find?) my installations of QT or OpenGL, as they are identical structurally.

OK. Let’s see if we can figure out what’s going on. Issue “pwd”, “ls -l” and “env” in each directory and paste or attach the results.

The console output from those commands are as follows:

obie@Obie-Precision-7560:~/Documents/sim$ pwd
/home/obie/Documents/sim
obie@Obie-Precision-7560:~/Documents/sim$ ls -l
total 264
-rw-rw-r-- 1 obie obie    351 Jul 30 17:31 action.cc
-rw-rw-r-- 1 obie obie    308 Jul 30 17:31 action.hh
-rw-rw-r-- 1 obie obie  41900 Jul 30 13:10 CMakeCache.txt
drwxrwxr-x 8 obie obie   4096 Jul 30 17:36 CMakeFiles
-rw-rw-r-- 1 obie obie   1618 Jul 17 17:57 cmake_install.cmake
-rw-rw-r-- 1 obie obie    378 Jul 30 13:57 CMakeLists.txt
-rw-rw-r-- 1 obie obie   2827 Jul 30 13:32 construction.cc
-rw-rw-r-- 1 obie obie    562 Jul 30 13:23 construction.hh
-rw-rw-r-- 1 obie obie    975 Jul 30 13:48 detector.cc
-rw-rw-r-- 1 obie obie    290 Jul 30 13:12 detector.hh
-rw-rw-r-- 1 obie obie    773 Jul 19 13:20 generator.cc
-rw-rw-r-- 1 obie obie    420 Jul 19 13:31 generator.hh
-rw-rw-r-- 1 obie obie   9678 Jul 30 17:36 Makefile
-rw-rw-r-- 1 obie obie    187 Jul 19 12:34 physics.cc
-rw-rw-r-- 1 obie obie    256 Jul 19 12:33 physics.hh
-rw-rw-r-- 1 obie obie    622 Jul 30 17:30 run.cc
-rw-rw-r-- 1 obie obie    322 Jul 30 17:28 run.hh
-rwxrwxr-x 1 obie obie 144000 Jul 30 17:32 sim
-rw-rw-r-- 1 obie obie   1162 Jul 30 13:22 sim.cc
obie@Obie-Precision-7560:~/Documents/sim$ env
SHELL=/bin/bash
SESSION_MANAGER=local/Obie-Precision-7560:@/tmp/.ICE-unix/2225,unix/Obie-Precision-7560:/tmp/.ICE-unix/2225
QT_ACCESSIBILITY=1
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
SSH_AGENT_LAUNCHER=gnome-keyring
XDG_MENU_PREFIX=gnome-
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GTK_IM_MODULE=ibus
GNOME_SHELL_SESSION_MODE=ubuntu
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
XMODIFIERS=@im=ibus
DESKTOP_SESSION=ubuntu
GTK_MODULES=gail:atk-bridge
DBUS_STARTER_BUS_TYPE=session
PWD=/home/obie/Documents/sim
LOGNAME=obie
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
SYSTEMD_EXEC_PID=2225
XAUTHORITY=/run/user/1000/gdm/Xauthority
WINDOWPATH=2
HOME=/home/obie
USERNAME=obie
LANG=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
XDG_CURRENT_DESKTOP=ubuntu:GNOME
VTE_VERSION=6800
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/e0111651_614f_4bfc_a67f_db8d5716f89d
LESSCLOSE=/usr/bin/lesspipe %s %s
XDG_SESSION_CLASS=user
TERM=xterm-256color
LESSOPEN=| /usr/bin/lesspipe %s
USER=obie
GNOME_TERMINAL_SERVICE=:1.228
DISPLAY=:1
SHLVL=1
QT_IM_MODULE=ibus
DBUS_STARTER_ADDRESS=unix:path=/run/user/1000/bus,guid=19dbec9ad7facb325d3cdb2064c6af09
LD_LIBRARY_PATH=/Geant4/geant4-v11.1.2-install/lib
XDG_RUNTIME_DIR=/run/user/1000
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
PATH=/Geant4/geant4-v11.1.2-install:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
GDMSESSION=ubuntu
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus,guid=19dbec9ad7facb325d3cdb2064c6af09
_=/usr/bin/env
obie@Obie-Precision-7560:~/Documents/sim2$ pwd
/home/obie/Documents/sim2
obie@Obie-Precision-7560:~/Documents/sim2$ ls -l
total 236
-rw-rw-r-- 1 obie obie    351 Jul 30 17:31 action.cc
-rw-rw-r-- 1 obie obie    308 Jul 30 17:31 action.hh
-rw-rw-r-- 1 obie obie  14768 Aug  1 17:41 CMakeCache.txt
drwxrwxr-x 7 obie obie   4096 Aug  1 17:41 CMakeFiles
-rw-rw-r-- 1 obie obie   1620 Aug  1 17:41 cmake_install.cmake
-rw-rw-r-- 1 obie obie    378 Jul 30 13:57 CMakeLists.txt
-rw-rw-r-- 1 obie obie   2827 Jul 30 13:32 construction.cc
-rw-rw-r-- 1 obie obie    562 Jul 30 13:23 construction.hh
-rw-rw-r-- 1 obie obie    975 Jul 30 13:48 detector.cc
-rw-rw-r-- 1 obie obie    290 Jul 30 13:12 detector.hh
-rw-rw-r-- 1 obie obie    773 Jul 19 13:20 generator.cc
-rw-rw-r-- 1 obie obie    420 Jul 19 13:31 generator.hh
-rw-rw-r-- 1 obie obie   9683 Aug  1 17:41 Makefile
-rw-rw-r-- 1 obie obie    187 Jul 19 12:34 physics.cc
-rw-rw-r-- 1 obie obie    256 Jul 19 12:33 physics.hh
-rw-rw-r-- 1 obie obie    622 Jul 30 17:30 run.cc
-rw-rw-r-- 1 obie obie    322 Jul 30 17:28 run.hh
-rwxrwxr-x 1 obie obie 143696 Aug  1 17:41 sim
-rw-rw-r-- 1 obie obie   1162 Jul 30 13:22 sim.cc
obie@Obie-Precision-7560:~/Documents/sim2$ env
SHELL=/bin/bash
SESSION_MANAGER=local/Obie-Precision-7560:@/tmp/.ICE-unix/2225,unix/Obie-Precision-7560:/tmp/.ICE-unix/2225
QT_ACCESSIBILITY=1
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
SSH_AGENT_LAUNCHER=gnome-keyring
XDG_MENU_PREFIX=gnome-
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GTK_IM_MODULE=ibus
GNOME_SHELL_SESSION_MODE=ubuntu
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
XMODIFIERS=@im=ibus
DESKTOP_SESSION=ubuntu
GTK_MODULES=gail:atk-bridge
DBUS_STARTER_BUS_TYPE=session
PWD=/home/obie/Documents/sim2
LOGNAME=obie
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
SYSTEMD_EXEC_PID=2225
XAUTHORITY=/run/user/1000/gdm/Xauthority
WINDOWPATH=2
HOME=/home/obie
USERNAME=obie
LANG=en_US.UTF-8
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
XDG_CURRENT_DESKTOP=ubuntu:GNOME
VTE_VERSION=6800
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/dd687e3d_4783_49cc_840e_f1c228a2786a
LESSCLOSE=/usr/bin/lesspipe %s %s
XDG_SESSION_CLASS=user
TERM=xterm-256color
LESSOPEN=| /usr/bin/lesspipe %s
USER=obie
GNOME_TERMINAL_SERVICE=:1.228
DISPLAY=:1
SHLVL=1
QT_IM_MODULE=ibus
DBUS_STARTER_ADDRESS=unix:path=/run/user/1000/bus,guid=19dbec9ad7facb325d3cdb2064c6af09
LD_LIBRARY_PATH=/Geant4/geant4-v11.1.2-install/lib
XDG_RUNTIME_DIR=/run/user/1000
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
PATH=/Geant4/geant4-v11.1.2-install:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
GDMSESSION=ubuntu
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus,guid=19dbec9ad7facb325d3cdb2064c6af09
_=/usr/bin/env

OK. I don’t see anything obvious.

When you say, "running the executable ", how exactly? E.g.,

cd /home/obie/Documents/sim
./sim

and, in the second case

cd /home/obie/Documents/sim2
./sim

You usually have to provide an environment variable GEANT4_DATA_DIR too.

The two executables (sim) are different, so they must have been built differently. How did you build them? E.g. (I’m recalling from memory so may not have it exactly right):

cd /home/obie/Documents/sim
cmake -DGeant4_DIR=/Geant4/geant4-v11.1.2-install .

and similarly for sim2. It’s a bit unusual to have the executable built in the same directory as the source. In fact, your directory structure is a bit unusual, not at all like our examples, but OK. Did you follow our Installation Guide? And Application Guide How to Make an Executable Program — Book For Application Developers 11.1 documentation.

Those are my thoughts at the moment.

John

If you copied sim to sim2 when sim contained files like CMakeCache.txt and Makefile then I would guess this is the cause of the issue. These are so-called “build products”, i.e. generated by cmake and the build process and cannot be copied from one location to another because they contain paths to the original location. It’s generally good practice to run cmake/make in a separate directory from the source code to avoid this kind of entanglement.

In sim2, try removing CMakeCache.txt, CMakeFiles and Makefile. Then run cmake and make again, and try running the application again.

How you demonstrated running my executables is how I have been doing it.

I think the reason that I have not been providing the GEANT4_DATA_DIR or using -DGeant4_DIR=/Geant4/geant4-v11.1.2-install in the cmake commands is because I added them directly to my $PATH variable (which felt more normal to me, coming from a Windows system in most of my experience. It may not be common practice).

I did follow your Installation guide to the best of my abilities, though it’s quite possible I missed something. I remember the initial issue here was not following all the steps correctly, so that could have happened again, though I don’t know where.

Additionally, I fixed my file structure to replicate the file structure from the Application Guide, with headers in sim/include and source files in sim/src, as you can see.

obie@Obie-Precision-7560:~/Documents/sim/build$ ls -l
total 180
-rw-rw-r-- 1 obie obie  14874 Aug  2 20:09 CMakeCache.txt
drwxrwxr-x 6 obie obie   4096 Aug  2 20:11 CMakeFiles
-rw-rw-r-- 1 obie obie   1624 Aug  2 20:06 cmake_install.cmake
-rw-rw-r-- 1 obie obie  10206 Aug  2 20:11 Makefile
-rwxrwxr-x 1 obie obie 143696 Aug  2 20:06 sim
obie@Obie-Precision-7560:~/Documents/sim/build$ cd ..
obie@Obie-Precision-7560:~/Documents/sim$ ls -l
total 20
drwxrwxr-x 3 obie obie 4096 Aug  2 20:11 build
-rw-rw-r-- 1 obie obie  441 Aug  2 20:01 CMakeLists.txt
drwxrwxr-x 2 obie obie 4096 Aug  2 19:54 include
-rw-rw-r-- 1 obie obie 1186 Aug  2 19:57 sim.cc
drwxrwxr-x 2 obie obie 4096 Aug  2 19:54 src

With the new file structure, the original sim executable (when I re-ran cmake and make) no longer opens a visualization window, so I think something is more fundamentally wrong with my installation of Geant4.

Thank you for this advice. I had been deleting all of the cmake build products after copying the files over, because it wouldn’t compile if I didn’t do that, understandably complaining about being built in the wrong directory. However, as I mentioned in my most recent response, I changed my build structure to emulate the one used in the Application Guide, as you described, and that did not fix the issue immediately.

Can you check in the CMakeCache.txt files for the value of the Geant4_DIR variable please? That should point to the Geant4 install that CMake is picking up and you should check that it’s the install you want/expect.

In my CMakeCache.txt file, there’s a line that says Geant4_DIR:PATH=/usr/local/lib/cmake/Geant4. I think I only have one installation of Geant4, as I’ve been deleting the parent Geant4 directory, which contains geant4-v11.1.2, geant4-v11.1.2-build, and geant4-v11.1.2-install every time I reinstall Geant4. However, the Geant4 files in /usr/local/lib/ were all last modified about a month ago (when I was first trying to install Geant4), so perhaps the files there are outdated? I haven’t been deleting them manually, because I assumed make uninstall would remove everything it needed to, but maybe it hasn’t been?

After a little messing around, that was in fact the problem. As the CMakeCache.txt file showed, I had been using parts of an old installation of Geant4, which I guess did not have all of the correct features installed.

My solution is as follows: I deleted the Geant4 files in /usr/local/lib/ (it wouldn’t let me through the file explorer, so I had to use the command line), as well as the ones in /usr/local/bin/ and /usr/local/share/. I then also rebuilt and remade Geant4, and then ran the following commands, and now everything is working as intended.

source ~/Geant4/geant4-v11.1.2-install/bin/geant4.sh
source ~/Geant4/geant4-v11.1.2-install/share/Geant4/geant4make/geant4make.sh

Thanks for the help; I was totally lost but thankfully I got everything working smoothly finally.

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