Skip to content

Geant4 Installation Issue #137

Answered by tkittel
Ljoseph5454 asked this question in Q&A
Jul 28, 2023 · 4 comments · 14 replies
Discussion options

You must be logged in to vote

To answer the first half, I can only guess. Perhaps you have an incomplete geant4-datafile setup which (perhaps) only triggers with an HP physics list? Otherwise, I was using geant4-10.04.p03 to test, which differs from yours.

For the second question, note that I am currently working on better Geant4-NCrystal hooks which will also result in updated documentation. But as a quick example, here is a modern (aka "cmake3" or "target-based") cmake lists which works for me:

cmake_minimum_required(VERSION 3.10...3.24)
project(MyExampleProject LANGUAGES CXX)
find_package( NCrystal REQUIRED COMPONENTS GEANT4BINDINGS )
add_executable(exampleapp "${CMAKE_CURRENT_SOURCE_DIR}/exampleapp.cpp")
target_li…

Replies: 4 comments 14 replies

Comment options

You must be logged in to vote
1 reply
@Ljoseph5454
Comment options

Comment options

You must be logged in to vote
2 replies
@Ljoseph5454
Comment options

@Ljoseph5454
Comment options

Comment options

You must be logged in to vote
8 replies
@Ljoseph5454
Comment options

@tkittel
Comment options

@Ljoseph5454
Comment options

@tkittel
Comment options

Answer selected by Ljoseph5454
@Ljoseph5454
Comment options

@tkittel
Comment options

Comment options

You must be logged in to vote
3 replies
@Ljoseph5454
Comment options

@tkittel
Comment options

@Ljoseph5454
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants