Sophie

Sophie

distrib > Fedora > 13 > i386 > media > os > by-pkgid > ecbd8c5b7568e331fe6ea5b9a07a78a0 > files > 193

CCfits-docs-2.2-2.fc13.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>CCfits: Installing the Package</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">


<h1><a class="anchor" id="installation">Installing the Package </a></h1><h2><a class="anchor" id="platform">
Platforms</a></h2>
<p>CCfits is generally supported on the same platforms as <a href="http://heasarc.gsfc.nasa.gov/docs/software/lheasoft/">HEASOFT</a>, and on Windows with VC++ 7.0 or later. See the HEASOFT <a href="http://heasarc.gsfc.nasa.gov/docs/software/lheasoft/supported_platforms.html">supported platforms</a> page.</p>
<h2><a class="anchor" id="build">
Building</a></h2>
<p>To build and install CCfits from source code on a UNIX-like (e.g. UNIX, Linux, or Cygwin) platform, take the following steps. For building on a Microsoft Windows platform with Visual Developer Studio, see below.</p>
<h3><a class="anchor" id="unix">
Instructions for Building CCfits on UNIX-like platforms:</a></h3>
<p>1. Configure</p>
<p>By default, the GCC compiler and linker will be used. If you want to compile and link with a different compiler and linker, you can set some environment variable before running the configure script. For example, to use Sun's C++ compiler, do the following:</p>
<p>&gt; setenv CXX CC (csh syntax)</p>
<p>or</p>
<p>&gt; export CXX=CC (bash syntax)</p>
<p>You can set the absolute path to the compiler you want to use if necessary.</p>
<p>CCfits requires that the CFITSIO package, version 3.02 or later, is available on your system. See</p>
<p><a href="http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html">http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html</a></p>
<p>for more information. The configure script that you will run takes an option to specify the location of the CFITSIO package.</p>
<p>If the CFITSIO package is installed in a directory consisting of a 'lib' subdirectory containing "libcfitsio.a" or "libcfitsio.so" and an 'include' subdirectory containing "fitsio.h", then you can run the configure script with a single option. For example, if the cfitsio package is installed in this fashion in /usr/local/cfitsio/ then the configure script option will be</p>
<p>--with-cfitsio=/usr/local/cfitsio</p>
<p>If the CFITSIO package is not installed in the above manner, then you need to run the configure script with two options, one to specify the include directory and the other to specify the library directory. For example, if the cfitsio package was built in /home/user/cfitsio/ then the two options will be</p>
<p>--with-cfitsio-include=/home/user/cfitsio --with-cfitsio-libdir=/home/user/cfitsio</p>
<p>For users of HEASOFT (instead of stand-alone CFITSIO): Note that modern distributions of HEASOFT only include a "libcfitsio_X.XX.so" library by default, but the configure script needs to find "libcfitsio.so", so you will need to create a symbolic link in $HEADAS/lib/ linking libcfitsio.so -&gt; libcfitsio_X.XX.so in order for CCfits to configure properly. You can then configure CCfits using "--with-cfitsio=$HEADAS/lib".</p>
<p>You have the option of carrying out the build in a separate directory from the source directory or in the same directory as the source. In either case, you need to run the configure script in the directory where the build will occur. For example, if building in the source directory with the cfitsio directory in /usr/local/cfitsio/ then the configure command should be issued like this:</p>
<p>&gt; ./configure --with-cfitsio=/usr/local/cfitsio</p>
<p>If you do the build in a separate directory from the source, you may need to issue the configure command something like this:</p>
<p>&gt; ../CCfits/configure --with-cfitsio=/usr/local/cfitsio</p>
<p>The configure script will create the Makefile with the path to the compiler you choose (or GCC by default), and the path to the CFITSIO package. The configure script has other options, such as the install location. To see these options type</p>
<p>&gt; ./configure --help</p>
<p>2. Build</p>
<p>Building the C++ shared library and Java classes will be done automatically by running make without arguments like this:</p>
<p>&gt; gmake</p>
<p>3. Install</p>
<p>To install, type:</p>
<p>&gt; make install</p>
<p>The default install location will be /usr/local/lib for the library and /usr/local/include for the header files. You can change this with the --prefix option when you configure, or with something like...</p>
<p>&gt; make DESTDIR=/usr/local/CCfits install</p>
<h3><a class="anchor" id="windows">
Instructions for Microsft Windows build:</a></h3>
<p>Compiling CCfits with MS VC++ requires VC++ 7.0 or later. This is the compiler that comes with Visual Studio.NET. Earlier versions of the compiler has too many defects in the area of instanciating templates.</p>
<p>Take the following steps.</p>
<p>1. Compile the C++ code. Open the vs.net/CCfits/CCfits.sln file with Visual Studio.NET. The includes paths have been set to find the cfitsio build directory at the same level as the CCfits directory. If this is not the case, use Visual Studio.NET to edit the include paths and extra library paths to where you have cfitsio installed.</p>
<p>Next, just use the build icon or the build menu item.</p>
<p>To build the test program, cookbook, use the vs.net/cookbook.cookbook.sln file</p>
<p>Author: <a href="mailto:&#112;&#097;&#117;&#108;&#095;&#107;&#117;&#110;&#122;&#064;&#115;&#108;&#097;&#099;&#046;&#115;&#116;&#097;&#110;&#102;&#111;&#114;&#100;&#046;&#101;&#100;&#117;">&#112;&#097;&#117;&#108;&#095;&#107;&#117;&#110;&#122;&#064;&#115;&#108;&#097;&#099;&#046;&#115;&#116;&#097;&#110;&#102;&#111;&#114;&#100;&#046;&#101;&#100;&#117;</a> Revised 1 Nov 2006 by Bryan Irby </p>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Wed Sep 9 11:59:41 2009 for CCfits by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>