You are not logged in.
Pages: 1
Hi everybody,
I'm trying to pack GEANT4 but I'm having some probelms. Standard installation of geant4 is something like this:
./Configure -build
...some questions...
./Configure -install
I wrote this PKGBUILD:
pkgname=geant
pkgver=4.9.3
pkgrel=1
pkgdesc="Geant4 is a toolkit for the simulation of particles passing through and interacting with matter."
arch=(x86_64)
url=""
license=('GPL')
groups=()
depends=(clhep)
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=(http://geant4.web.cern.ch/geant4/support/source/$pkgname$pkgver.tar.gz)
noextract=()
md5sums=('e2b02bac0bba8fb5a01e1caeefe86a7a') #generate with 'makepkg -g'
build() {
cd "$pkgname$pkgver"
# List of build options to use in the Debian packages of GEANT4.
export CONFIG_FLAGS="-D d_portable -D g4make=make -D g4includes_flag=y \
-D g4data=$pkgdir/usr/share/geant4/data \
-D g4final_install=$pkgdir/usr \
-D g4global=n -D g4granular=y -D g4lib_use_granular=y \
-D g4lib_build_shared=y -D g4lib_build_static=y \
-D g4ui_build_xm_session=y -D g4ui_use_xm=y \
-D g4ui_build_xaw_session=y -D g4ui_use_xaw=y \
-D g4vis_build_dawn_driver=y -D g4vis_use_dawn=y \
-D g4vis_build_openglx_driver=y -D g4vis_use_openglx=y \
-D g4vis_build_openglxm_driver=y -D g4vis_use_openglxm=y \
-D g4vis_build_raytracerx_driver=y -D g4vis_use_raytracerx=y \
-D g4vis_build_vrml_driver=y -D g4vis_use_vrml=y \
-D g4vis_build_vrmlfile_driver=y -D g4vis_use_vrmlfile=y \
-D g4wlib_build_g3tog4=y -D g4w_use_g3tog4=y \
-D g4wlib_build_zlib=n -D g4w_use_zlib=y \
-D g4wanalysis_use=n"
echo $CONFIG_FLAGS
./Configure -desE -build $CONFIG_FLAGS
./Configure -install || return 1
}
But I get this:
Creating configuration setup file...
On this machine the G4SYSTEM=Linux-g++
On this machine the G4INSTALL=/home/pie/building/geant/src/geant4.9.3
On this machine the G4TMP=/home/pie/building/geant/src/geant4.9.3/tmp
On this machine the G4LIB=/home/pie/building/geant/src/geant4.9.3/lib
On this machine the G4LEVELGAMMADATA=/home/pie/building/geant/pkg/data/PhotonEvaporation2.0
On this machine the G4RADIOACTIVEDATA=/home/pie/building/geant/pkg/data/RadioactiveDecay3.2
On this machine the G4LEDATA=/home/pie/building/geant/pkg/data/G4EMLOW6.9
On this machine the G4NEUTRONHPDATA=/home/pie/building/geant/pkg/data/G4NDL3.13
On this machine the G4ABLADATA=/home/pie/building/geant/pkg/data/G4ABLA3.0
On this machine the CLHEP_BASE_DIR=/usr
On this machine the CLHEP_INCLUDE_DIR=/usr/include
On this machine the CLHEP_LIB_DIR=/usr/lib
On this machine the CLHEP_LIB=CLHEP
On this machine the G4LIB_BUILD_SHARED=1
Starting installation...
Installing sources and headers...
Installing libraries...
==> ERRORE: Compilazione non riuscita.
L'operazione sta per essere interrotta...
Sources and compiled libraries are present in pkg directory.
How can I investigate where the problem is (I couldn't find a "verbose" like option in makepkg)?
Offline
Could you please use makepkg with the English locale? It would be easier for the majority to understand the errors.
LC_ALL=en_US.utf8 makepkg
Last edited by dcc24 (2010-04-10 14:57:29)
It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)
Offline
Sorry! the error is:
==> ERROR: Build Failed.
Aborting...
Offline
mmm...very strange...
adding this (dumb) makefile
install:
echo "ciao"
and adding
make install || return 1
to the build function in PKGBUILD solves the problem...:/
ps: As you can see I continue ginving you some basic italian vocabulary!:P
Offline
Glad you solved it!
ps: As you can see I continue ginving you some basic italian vocabulary!:P
Thanks for that
It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)
Offline
After a bit of work I was able to build a package for arch starting from GEANT4 source. I used configurations similar to the debian package ones and added the wrapper scripts by Kevin McCarty (and Yngve Inntjore Levinsen) too.
While I was doing this Yngve Inntjore Levinsen published a nice PKGBUILD on aur that uses precompiled debian packages. He's package include patches (that I haven't studied yet) and above all, lets you be able to play with geant in a few seconds (compiling geant can require several hours on old machines).
I don't think you will have any doubt when deciding how to install geant4 on the system (and I suggest using PKGBUILD on aur too), anyway, if you are interested in modifying some compilation flags or having a less dependece demanding package (or likes seeing your computer sweat blood compiling 19Mb sources) here you are the PKGBUILD I'm using for the moment:
http://www.bonfus.org/box/archstuff/gea … ILD.tar.xz
bye
Pie
Offline
Pages: 1