Error while running exampleB1 [WSL]

I installed conda geant4 (11.1.3) in windows using WSL platform. I am trying to compile example B1 of geant4 (version 11.1.3) via cmake. While I tried to execute the exampleB1 the following error pops up:

./exampleB1: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory(geant4) smaran@Smaran:~/Geant4 project/B1/build

_Geant4 Version: 11.1.3
_Operating System: WSL
Compiler/Version:
_CMake Version: 3.28.3

What do geant4-config --features and ldd ./exampleB1 print? I would guess there is some setup issue that’s preventing the find of the relevant libGL, but it’s not clear if this should be coming from the conda environment or the system.

Here the output of

geant4-config --features

and

ldd ./exampleB1

_Geant4 Version: 11.1.3
_Operating System: WSL
Compiler/Version:
_CMake Version: 3.28.3

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