From the Pulsar Astronomy .net
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
Ant uses the build.xml file to make the jar file
cd pulsarhunterant jar
export PULSARHUNTER_HOME=`pwd`ln -s dist/pulasrhunter.jar ./pulsarhunter.jar
And test the system…
./scripts/pulsarhunter —test
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 *.fgcc -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 *.fgcc-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