Message: Re: geant4 build tools suggestions. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: geant4 build tools suggestions. 

Forum: Installation and Configuration
Re: None geant4 build tools suggestions. (Olivier LAHAYE)
Date: 20 Aug, 2009
From: Ben Morgan <Ben Morgan>

On Thu, 20 Aug 2009 09:20:54 GMT, Olivier LAHAYE wrote:
> Couldn't pkg-config tool be used to guess cflags and ldflags for some
> libraries instead  of own scripts + aida-config + ....?
> 
> I mean, instead of hard coded values is config.sh, why not use the following: ?
> 
> g4_qt_cxxflags=$(pkg-config --cflags QtCore QtGui)
> g4_qt_gl_libs=$(pkg-config --libs QtOpenGL)
> g4_qt_libs=$(pkg-config --libs QtCore QtGui)
> g4_qt_version=$(pkg-config --modversion QtCore)
> g4_qt_moc=$(pkg-config --variable=prefix QtCore)/bin/moc

In principle, pkg-config could be used in Configure (not config.sh since that's generated by Configure) to determine info on packages. There could be portability issues on Win32, though in Cygwin this should be minimal to non-existant. Not sure about Mac OSX...

I can do some testing on this, but I think it's more worthwhile to spend that time developing the replacement build system that should resolve these issues :-)

> BTW, it would be cool to have aida-config and root-config replaced by
> pkg-config configurations (aida.pc and root.pc).

Indeed - ROOT already provide an m4 macro, so adding a pkg-config module(s) should be possible for them. Would be worthwhile to request it on their mailing list as I'm not sure how many of their developers also read this one.

Ben.

 Add Message Add Message
to: "Re: geant4 build tools suggestions."

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]