Problem 2496 - optional package includes and libs missing in geant4-config
Summary: optional package includes and libs missing in geant4-config
Status: ASSIGNED
Alias: None
Product: Geant4
Classification: Unclassified
Component: cmake (show other problems)
Version: 10.7
Hardware: All All
: P4 normal
Assignee: Ben Morgan
URL:
Depends on:
Blocks:
 
Reported: 2022-06-25 18:23 CEST by jasondet
Modified: 2022-06-27 15:44 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description jasondet 2022-06-25 18:23:29 CEST
The output of geant4-config --cflags and geant4-config --libs appears to get augmented inconsistently based on user-selected options. For example, I have an application that I built on a Mac with the QT vis option and GDML support. geant4-config includes everything needed to build against the QT support, but I had to manually add -lxerces-c to the end of geant4-config --libs in order to get my application to link.

At the time of installation Geant4 knows the locations of all of the special I/L paths and libs it used to build. For geant4-config to work properly, all of these special paths and libs need to be added to the output of geant4-config --cflags and geant4-config --libs.