From the Pulsar Astronomy .net

Software: Pulsarhunter Build from Source

Building PulsarHunter from source

Fetch the latest code from the CVS repository.

You need to get the source code from the sourceforge backed CVS.

cvs -d:pserver:anonymous@pulsarhunter.cvs.sourceforge.net:/cvsroot/pulsarhunter login
When asked for a password, just press return. (There is no password)

cvs -z3 -d:pserver:anonymous@pulsarhunter.cvs.sourceforge.net:/cvsroot/pulsarhunter co -P pulsarhunter

Build the jar file using ant

Ant uses the build.xml file to make the jar file

cd pulsarhunter
ant jar

Set up your environment to use the new code.

export PULSARHUNTER_HOME=`pwd`
ln -s dist/pulasrhunter.jar ./pulsarhunter.jar
And test the system…

./scripts/pulsarhunter —test

Building the Native Libraries

To use the PGPlot interface, or the barycentric corrections, you need to compule the assistant native libraries. The method for doing this depends on your architecture and operating system.

The code for the native libraries is located in pulsarhunter/src/native/

There are build scripts in each dir that can give a clue to how to compule, but you will need to modify the scripts for your system.

For example, for the sla/barycentre correction on LINUX:

f77 -c *.f
gcc -o libbarrycentre.so -lm -lg2c -shared -Wl,-soname,libbarrycentre.so -static -I/local2/jdk1.5.0_08//include/ -I$JAVA_HOME/include/linux *.c *.o

or on Mac:

gfortran -c *.f
gcc-4 -o libbarrycentre.jnilib -lm -lgfortran -bundle -I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Headers/ *.c *.o

Copyright © 2005–2026 the Main wiki and its authors

Retrieved from http://www.pulsarastronomy.net/wiki/Software/PulsarhunterBuildFromSource

Page last modified on November 20, 2007, at 11:03 AM