Message: Re: AIDAJNI problem? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: AIDAJNI problem? 

Forum: Analysis
Re: Question AIDAJNI problem? (Neoh)
Re: None Re: AIDAJNI problem? (R Alex Redd)
Date: 20 May, 2010
From: Neoh <Neoh>

Hi,

Just to share my experience from using Alex's method on a different Linux distribution.

I use geant4 on Fedora 12. While the steps are similar to the website refered by Alex(http://projects.hepforge.org/cedar/trac/wiki/AIDAJNI), on my machine the JDK_HOME is located in /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0 instead. Here are the steps that I took (using jaida-3.3.0-6 and AIDAJNI-3.2.3-src):

 1. export FREEHEP=/home/neohys/geant4/analysis/AIDAJNI-3.2.3-src
 2. export JDK_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0
 3. export PATH=$FREEHEP/bin:$JDK_HOME/bin:$PATH
 4. export OS=Linux
 5. export COMPILER=g++
 6. chmod +x tools/ant
 7. tools/ant -Djar=aidajni
 8. make -f GNUmakefile-AIDAJNI
 9. make -f GNUmakefile-AIDAJNI dist

On the 8th step, however, when I type "make -f GNUmakefile-AIDAJNI" I get the error

 In file included from ProxyFactory.h:17,
                 from CIAnnotation.cpp:7:
 Registry.h: In constructor 'JAIDA::Registry::Registry()':
 Registry.h:38: error: 'getenv' was not declared in this scope
 In file included from CIAnnotation.cpp:7:
 ProxyFactory.h: In static member function 'static JAIDA::ProxyFactory* JAIDA::ProxyFactory::getFactory()':
 ProxyFactory.h:191: error: 'abort' was not declared in this scope
 ProxyFactory.h: In static member function 'static const void* JAIDA::ProxyFactory::getCRef(jlong)':
 ProxyFactory.h:204: error: 'abort' was not declared in this scope
 make[1]: *** [Linux-g++/CIAnnotation.o] Error 1
 make[1]: Leaving directory `/home/neohys/geant4/analysis/AIDAJNI-3.2.3-src/hep/aida/jni'
 make: *** [hep/aida/jni.all] Error 2

After some googling I noticed adding the line

 #include<cstdlib>

into the files Registry.h and CIAnnotation.cpp (located in AIDAJNI-3.2.3-src/hep/aida/jni) fixed the problem. After finishing the 9th step the binary is finally produced.

Hope this piece of information is useful to some of you guys.

Neoh

 Add Message Add Message
to: "Re: AIDAJNI problem?"

 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 ]