Hello community,
I am work to install Geant4 on a Ubuntu desktop (v20.04.1) on Windows 10 using WSL, but cannot interpret what the error is.
CMake Error at: cmake/Modules/G4ConfigurePkgConfigHelpers.cmake:381 (file):
file RELATIVE_PATH called with incorrect number of arguments
Call Stack (most recent call first):
cmake/Modules/G4CMakeMain.cmake:101 (include)
CMakeLists.txt:51 (include)
Iβd greatly appreciate any help! (shown below with build options)
Name@Desktop:~/MC/geant4.10.07/geant4-build$ cmake -DCMAKE_INSTALL_PREFIX= β/home/path/to/MC/geant4.10.07/geant4-installβ -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON -DGEANT4_USE_QT=ON -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_BUILD_TLS_MODEL=global-dynamic -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_SYSTEM_EXPAT=OFF -DGEANT4_USE_SYSTEM_ZLIB=ON β/home/path/to/MC/geant4.10.07β
β The C compiler identification is GNU 9.3.0
β The CXX compiler identification is GNU 9.3.0
β Check for working C compiler: /usr/bin/cc
β Check for working C compiler: /usr/bin/cc β works
β Detecting C compiler ABI info
β Detecting C compiler ABI info - done
β Detecting C compile features
β Detecting C compile features - done
β Check for working CXX compiler: /usr/bin/c++
β Check for working CXX compiler: /usr/bin/c++ β works
β Detecting CXX compiler ABI info
β Detecting CXX compiler ABI info - done
β Detecting CXX compile features
β Detecting CXX compile features - done
β Performing Test HAVE_TLS
β Performing Test HAVE_TLS - Success
β Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version β1.2.11β)
β Found XercesC: /usr/local/lib/libxerces-c.so (found version β3.2.3β)
β Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
β Found X11: /usr/include
β Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
β Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
β Looking for gethostbyname
β Looking for gethostbyname - found
β Looking for connect
β Looking for connect - found
β Looking for remove
β Looking for remove - found
β Looking for shmat
β Looking for shmat - found
β Looking for IceConnectionNumber in ICE
β Looking for IceConnectionNumber in ICE - found
β Configuring download of missing dataset G4NDL (4.6)
β Configuring download of missing dataset G4EMLOW (7.13)
β Configuring download of missing dataset PhotonEvaporation (5.7)
β Configuring download of missing dataset RadioactiveDecay (5.6)
β Configuring download of missing dataset G4PARTICLEXS (3.1)
β Configuring download of missing dataset G4PII (1.3)
β Configuring download of missing dataset RealSurface (2.2)
β Configuring download of missing dataset G4SAIDDATA (2.0)
β Configuring download of missing dataset G4ABLA (3.1)
β Configuring download of missing dataset G4INCL (1.0)
β Configuring download of missing dataset G4ENSDFSTATE (2.3)
β Looking for dlfcn.h
β Looking for dlfcn.h - found
β Looking for fcntl.h
β Looking for fcntl.h - found
β Looking for inttypes.h
β Looking for inttypes.h - found
β Looking for memory.h
β Looking for memory.h - found
β Looking for stdint.h
β Looking for stdint.h - found
β Looking for stdlib.h
β Looking for stdlib.h - found
β Looking for strings.h
β Looking for strings.h - found
β Looking for string.h
β Looking for string.h - found
β Looking for sys/stat.h
β Looking for sys/stat.h - found
β Looking for sys/types.h
β Looking for sys/types.h - found
β Looking for unistd.h
β Looking for unistd.h - found
β Looking for getpagesize
β Looking for getpagesize - found
β Looking for bcopy
β Looking for bcopy - found
β Looking for memmove
β Looking for memmove - found
β Looking for mmap
β Looking for mmap - found
β Looking for 4 include files stdlib.h, β¦, float.h
β Looking for 4 include files stdlib.h, β¦, float.h - found
β Check if the system is big endian
β Searching 16 bit integer
β Looking for stddef.h
β Looking for stddef.h - found
β Check size of unsigned short
β Check size of unsigned short - done
β Using unsigned short
β Check if the system is big endian - little endian
β Looking for off_t
β Looking for off_t - not found
β Looking for size_t
β Looking for size_t - not found
β Looking for pthread.h
β Looking for pthread.h - found
β Performing Test CMAKE_HAVE_LIBC_PTHREAD
β Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
β Check if compiler accepts -pthread
β Check if compiler accepts -pthread - yes
β Found Threads: TRUE
CMake Error at cmake/Modules/G4ConfigurePkgConfigHelpers.cmake:381 (file):
file RELATIVE_PATH called with incorrect number of arguments
Call Stack (most recent call first):
cmake/Modules/G4CMakeMain.cmake:101 (include)
CMakeLists.txt:51 (include)
β The following Geant4 features are enabled:
GEANT4_BUILD_CXXSTD: Compiling against C++ Standard β11β
GEANT4_BUILD_MULTITHREADED: Build multithread enabled libraries
GEANT4_BUILD_TLS_MODEL: Building with TLS model βglobal-dynamicβ
GEANT4_USE_SYSTEM_ZLIB: Using system zlib library
GEANT4_USE_GDML: Building Geant4 with GDML support
GEANT4_USE_QT: Build Geant4 with Qt support
GEANT4_USE_OPENGL_X11: Build Geant4 OpenGL driver with X11 support
β Configuring incomplete, errors occurred!
See also β/home/path/to/MC/geant4.10.07/geant4-build/CMakeFiles/CMakeOutput.logβ.
See also β/home/path/to/MC/geant4.10.07/geant4-build/CMakeFiles/CMakeError.logβ.