Differences between revisions 1 and 2
Revision 1 as of 2018-05-17 12:07:50
Size: 240
Editor: EricPalmer
Comment:
Revision 2 as of 2018-05-17 14:46:08
Size: 1698
Editor: EricPalmer
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

Instructions for Mac OS
Line 8: Line 10:
  * XCode - Apple's main compiler for OS X. It has many libraries you need. - https://developer.apple.com/xcode/
  * gfortran - https://gcc.gnu.org/wiki/GFortranBinaries#MacOS
  * spicelib - This contains routines created by JPL's NAIF division which does an excellent job of handling flight kernels (known as SPICE). It can be found at http://naif.jpl.nasa.gov/naif/toolkit_FORTRAN.html
   * spicelib should be placed in /usr/local/src
   * The actual spicelib.a file should be placed in /usr/local/lib/spicelib.a
Line 9: Line 16:
== Compiling ==
Line 10: Line 18:
It requires a library Once you've set up your system to compile with gfortran, you need to complete three steps.
 1. Create object files (whatever.o) for every component in the directory "COMMON". You do this by running the script AAmake _ _ COMMON_objects.txt. This was built for csh, so I find that it works well to do:
{{{
csh AAmake__COMMON_objects.txt
}}}
 2. Build the COMMON.a library. This combines all of the object files into a single library that is used for most SPC processing.
{{{
csh AAmake_COMMON_library.txt
}}}
Line 12: Line 28:
 3. Run the script that compiles all of the SPC binaries. It is likely to be warnings, but shouldn't have any errors.
{{{
mkdir -p BIN
csh AACOMPILE.TXT
}}}
Line 13: Line 34:
 * Install SPC software
   * You can run LITHOS -v to ensure the program runs
== Installing ==
To complete the installation, you simply copy the items within the <srcpath>/BIN directory.
{{{
cp BIN/* /usr/local/bin/
}}}
Line 16: Line 40:
    * Once it is installed
   *Run LITHOS -v to ensure the program runs. You should be able to run that program from any directory (and not just /usr/local/bin)

Install of SPC

Instructions for Mac OS

SPC is designed to run in /usr/local/bin/

Preparation

SPC requires gfortran and spicelib

Compiling

Once you've set up your system to compile with gfortran, you need to complete three steps.

  1. Create object files (whatever.o) for every component in the directory "COMMON". You do this by running the script AAmake _ _ COMMON_objects.txt. This was built for csh, so I find that it works well to do:

csh AAmake__COMMON_objects.txt
  1. Build the COMMON.a library. This combines all of the object files into a single library that is used for most SPC processing.

csh AAmake_COMMON_library.txt
  1. Run the script that compiles all of the SPC binaries. It is likely to be warnings, but shouldn't have any errors.

mkdir -p BIN
csh AACOMPILE.TXT

Installing

To complete the installation, you simply copy the items within the <srcpath>/BIN directory.

cp BIN/* /usr/local/bin/
  • Once it is installed
    • Run LITHOS -v to ensure the program runs. You should be able to run that program from any directory (and not just /usr/local/bin)

Installing SPC Instructions (last edited 2023-02-27 15:59:15 by EricPalmer)