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:_v11.2.2
_Operating System:_Linux Mint 21
_Compiler/Version:_11.3.0
_CMake Version:_3.22.1
Hi,
I’m trying to install GEANT4 in my linux system and encountered the following warnings while configuring. I tried to ignore the warnings and went ahead with the installation and it lead to errors in running example projects.
The warnings message is as follows
CMake Warning at cmake/Modules/G4DeveloperAPI.cmake:1236 (add_library):
** Cannot generate a safe runtime search path for target G4FR because files in**
** some directories may conflict with libraries in implicit directories:**
** runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:**
** /home/shyamvp/anaconda3/lib**
** Some of these libraries may not be found correctly.**
** Call Stack (most recent call first):**
** cmake/Modules/G4DeveloperAPI.cmake:963 (__geant4_add_library)**
** source/CMakeLists.txt:45 (geant4_compose_targets)**
** CMake Warning at cmake/Modules/G4DeveloperAPI.cmake:1236 (add_library):**
** Cannot generate a safe runtime search path for target G4visHepRep because**
** files in some directories may conflict with libraries in implicit**
** directories:**
** runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:**
** /home/shyamvp/anaconda3/lib**
** Some of these libraries may not be found correctly.**
** Call Stack (most recent call first):**
** cmake/Modules/G4DeveloperAPI.cmake:963 (__geant4_add_library)**
** source/CMakeLists.txt:45 (geant4_compose_targets)**
** CMake Warning at cmake/Modules/G4DeveloperAPI.cmake:1236 (add_library):**
** Cannot generate a safe runtime search path for target G4RayTracer because**
** files in some directories may conflict with libraries in implicit**
** directories:**
** runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:**
** /home/shyamvp/anaconda3/lib**
** Some of these libraries may not be found correctly.**
** Call Stack (most recent call first):**
** cmake/Modules/G4DeveloperAPI.cmake:963 (__geant4_add_library)**
** source/CMakeLists.txt:45 (geant4_compose_targets)**
** CMake Warning at cmake/Modules/G4DeveloperAPI.cmake:1236 (add_library):**
** Cannot generate a safe runtime search path for target G4Tree because files**
** in some directories may conflict with libraries in implicit directories:**
** runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:**
** /home/shyamvp/anaconda3/lib**
** Some of these libraries may not be found correctly.**
** Call Stack (most recent call first):**
** cmake/Modules/G4DeveloperAPI.cmake:963 (__geant4_add_library)**
** source/CMakeLists.txt:45 (geant4_compose_targets)**
** CMake Warning at cmake/Modules/G4DeveloperAPI.cmake:1236 (add_library):**
** Cannot generate a safe runtime search path for target G4VRML because files**
** in some directories may conflict with libraries in implicit directories:**
** runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:**
** /home/shyamvp/anaconda3/lib**
** Some of these libraries may not be found correctly.**
** Call Stack (most recent call first):**
** cmake/Modules/G4DeveloperAPI.cmake:963 (__geant4_add_library)**
** source/CMakeLists.txt:45 (geant4_compose_targets)**
** CMake Warning at cmake/Modules/G4DeveloperAPI.cmake:1236 (add_library):**
** Cannot generate a safe runtime search path for target G4GMocren because**
** files in some directories may conflict with libraries in implicit**
** directories:**
** runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:**
** /home/shyamvp/anaconda3/lib**
** Some of these libraries may not be found correctly.**
** Call Stack (most recent call first):**
** cmake/Modules/G4DeveloperAPI.cmake:963 (__geant4_add_library)**
** source/CMakeLists.txt:45 (geant4_compose_targets)**
** CMake Warning at cmake/Modules/G4DeveloperAPI.cmake:1236 (add_library):**
** Cannot generate a safe runtime search path for target G4ToolsSG because**
** files in some directories may conflict with libraries in implicit**
** directories:**
** runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:**
** /home/shyamvp/anaconda3/lib**
** Some of these libraries may not be found correctly.**
** Call Stack (most recent call first):**
** cmake/Modules/G4DeveloperAPI.cmake:963 (__geant4_add_library)**
** source/CMakeLists.txt:45 (geant4_compose_targets)**
** CMake Warning at cmake/Modules/G4DeveloperAPI.cmake:1236 (add_library):**
** Cannot generate a safe runtime search path for target G4OpenGL because**
** files in some directories may conflict with libraries in implicit**
** directories:**
** runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:**
** /home/shyamvp/anaconda3/lib**
** Some of these libraries may not be found correctly.**
** Call Stack (most recent call first):**
** cmake/Modules/G4DeveloperAPI.cmake:963 (__geant4_add_library)**
** source/CMakeLists.txt:45 (geant4_compose_targets)**
** CMake Warning at cmake/Modules/G4DeveloperAPI.cmake:1236 (add_library):**
** Cannot generate a safe runtime search path for target G4visQt3D because**
** files in some directories may conflict with libraries in implicit**
** directories: **
** runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:**
** /home/shyamvp/anaconda3/lib**
** Some of these libraries may not be found correctly.**
** Call Stack (most recent call first):**
** cmake/Modules/G4DeveloperAPI.cmake:963 (__geant4_add_library)**
** source/CMakeLists.txt:45 (geant4_compose_targets)**
** Generating done**
What could be the possible solution to this?