AIDAJNI (Re-)Build Procedure

To compile, link and package AIDAJNI for a different operating system and or compiler do the following.

You may need to add a new OS-COMPILER.gmk file for your system or rename one of the current ones.

On Unix style systems

Linux, Solaris, MacOS X:

Open a terminal window and:
setenv FREEHEP 	<top-level-dir of this distribution>
setenv JDK_HOME <top-level-dir of the JDK 1.4.x>
setenv PATH 	$FREEHEP/bin:$JDK_HOME/bin:$PATH
setenv OS 	<choice of Operating System [Linux, Darwin, SUN]>
setenv COMPILER <choice of Compiler [g++, g++2, g++3, CC, icc]>
chmod +x tools/ant
tools/ant -Djar=aidajni
gmake -f GNUmakefile-AIDAJNI
gmake -f GNUmakefile-AIDAJNI dist

This will produce a AIDAJNI-*.*.*-OS-COMPILER.tar.gz file, ready for distribution and installation.

Note: on MacOS use make instead of gmake and JDK_HOME is in /Library/Java/Home.

On Windows systems:

Visual C++ version 6 or 7:

Open a MSDOS window and:

set FREEHEP	=<top-level-dir of this distribution>
set JDK_HOME	=<top-level-dir of the JDK 1.4.x>
set PATH	=%FREEHEP%\bin;%JDK_HOME%\bin;%PATH%
set OS	        =Windows_NT
set COMPILER	=<choice of Compiler [VC, VC7]>
set templib	=%LIB%
set LIB 	=
set lib		=%templib%
set templib	=
tools\ant -Djar=aidajni
gmake -f GNUmakefile-AIDAJNI
gmake -f GNUmakefile-AIDAJNI dist

This will produce a AIDAJNI-*.*.*-WIN32-COMPILER.zip file, ready for distribution and installation.

g++ and Cygwin:

Open a MSDOS window and:

set FREEHEP	=<top-level-dir of this distribution>
set JDK_HOME	=<top-level-dir of the JDK 1.4.x>
set PATH	=%FREEHEP%\bin;%JDK_HOME%\bin;%PATH%
tools\ant -Djar=aidajni

then open a Cygwin window and:

export FREEHEP	=<top-level-dir of this distribution using cygwin syntax>
export JDK_HOME	=<top-level-dir of the JDK 1.4.x using cygwin syntax>
export PATH	=$JDK_HOME/bin:$PATH
export OS	=Windows_NT
export COMPILER	=g++
make -f GNUmakefile-AIDAJNI
make -f GNUmakefile-AIDAJNI dist

This will produce a AIDAJNI-*.*.*-WIN32-g++.tar.gz file, ready for distribution and installation.