Skip to content
Snippets Groups Projects
partiview-1.html 5.19 KiB
Newer Older
  • Learn to ignore specific revisions
  • teuben's avatar
    teuben committed
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <HTML>
    <HEAD>
     <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
     <TITLE> Partiview (PC-VirDir): Installation</TITLE>
     <LINK HREF="partiview-2.html" REL=next>
    
     <LINK HREF="partiview.html#toc1" REL=contents>
    </HEAD>
    <BODY>
    <A HREF="partiview-2.html">Next</A>
    Previous
    <A HREF="partiview.html#toc1">Contents</A>
    <HR>
    <H2><A NAME="s1">1. Installation</A></H2>
    
    <P>
    
    slevy's avatar
    slevy committed
    <P>This assumes you have the July 2001 release (version 0.6 or later) of 
    
    teuben's avatar
    teuben committed
    <B>partiview</B>, not the earlier "<B>gview</B>" release that was described
    
    in earlier versions of this document. We keep copies of some Linux support
    files (Mesa, FLTK) on our current
    <A HREF="http://www.astro.umd.edu/nemo/amnh">http://www.astro.umd.edu/nemo/amnh</A> website. Although
    more current versions of support libraries may be available, they 
    may not have been tested out. Note that
    this current development release is only documented for work under Linux
    (redhat 6.2 and 7.1 have been tested),
    
    teuben's avatar
    teuben committed
    although we expect it to work for at least SGI and maybe Solaris too.
    
    <P>partiview needs two libaries to compile: OpenGL (or MESA) for the 
    drawing operations, and FLTK for the window makeup.
    
    teuben's avatar
    teuben committed
    <P>
    
    teuben's avatar
    teuben committed
    <H2><A NAME="ss1.1">1.1 MESA/OpenGL</A>
    </H2>
    
    
    teuben's avatar
    teuben committed
    <P>First make sure <CODE>Mesa</CODE> is installed, for <CODE>redhat6.2</CODE>
    
    there are rpm files available.  Check if you have the following:
    
    teuben's avatar
    teuben committed
    <P>
    <BLOCKQUOTE><CODE>
    <HR>
    <PRE>
           % rpm -qa | grep Mesa
           Mesa-3.2-2
           Mesa-devel-3.2-2
    
           % rpm -i Mesa-3.2-2.i686.rpm Mesa-devel-3.2-2.i686.rpm
    
    teuben's avatar
    teuben committed
    </PRE>
    <HR>
    </CODE></BLOCKQUOTE>
    
    <P>You should have both installed. Some packages will use <CODE>libMesaGL</CODE>, others
    <CODE>libGL</CODE>. The <CODE>configure</CODE> script (see below) 
    should take care of the two possible options.
    
    teuben's avatar
    teuben committed
    <P>Homepage: 
    
    <A HREF="http://mesa3d.sourceforge.org">http://mesa3d.sourceforge.org</A><P>Redhat packages: (part of powertools I believe)
    
    teuben's avatar
    teuben committed
    <P>
    
    <P>     Mesa3D is under continuous development. As of this writing the
    stable release is 3.4.2, but it has not been tested with the current partiview release.
    Redhat 7.1 comes with Mesa-3.4 and also works with partiview.
    <P>
    
    teuben's avatar
    teuben committed
    <H2><A NAME="ss1.2">1.2 FLTK</A>
    </H2>
    
    <P>Also make sure <CODE>fltk</CODE> is installed.  If you got my version, do this (as
    root)
    <P>
    
    teuben's avatar
    teuben committed
    <BLOCKQUOTE><CODE>
    <HR>
    <PRE>
    
           % locate libfltk.a 
           % locate Fl_Slider.h
    
    
    teuben's avatar
    teuben committed
           % cd &lt;where-ever>/fltk-1.0.9
           % make install
    
    teuben's avatar
    teuben committed
    </PRE>
    <HR>
    </CODE></BLOCKQUOTE>
    <P>(you only need it if you want to recompile the program at some point,
    not if you just want to run it)
    <P>Homepage: 
    <A HREF="http://www.fltk.org/">http://www.fltk.org/</A><P>Redhat packages: 
    
    <A HREF="http://www.cs.cornell.edu/nogin/RPM/fltk-devel.html">http://www.cs.cornell.edu/nogin/RPM/fltk-devel.html</A><P>Find rpms: 
    <A HREF="http://rpmfind.net">http://rpmfind.net</A><P>
    <P>     FLTK is under continuous development. As of this writing the
    latest release is 1.0.10, but has not been tested with the current partiview release.
    <P>
    <P>
    
    teuben's avatar
    teuben committed
    <H2><A NAME="ss1.3">1.3 partiview</A>
    </H2>
    
    
    <P>
    <P>Extract the tarball, and install the program from within the 
    <CODE>src</CODE> directory:
    
    teuben's avatar
    teuben committed
    <P>
    <BLOCKQUOTE><CODE>
    <HR>
    <PRE>
    
    slevy's avatar
    slevy committed
           % tar zxf partiview-0.6.tar.gz
    
    teuben's avatar
    teuben committed
    
    
    teuben's avatar
    teuben committed
           % make clean                (if you really must compile a new executable)
    
    teuben's avatar
    teuben committed
           % ./configure               (GNU autoconf toolset to ease installation)
    
           % make depend               (might need to make new local dependancies)
           % make partiview            (should not have to edit Makefile anymore)
    
    teuben's avatar
    teuben committed
    </PRE>
    <HR>
    </CODE></BLOCKQUOTE>
    <P>
    
    teuben's avatar
    teuben committed
    <H2><A NAME="ss1.4">1.4 CVS</A>
    </H2>
    
    
    <P>Since version 0.5 <CODE>partiview</CODE> is under CVS control, and occasionally we
    will stamp out a new release when we deem it stable. Anonymous or read-only
    CVS access is also offered. Currently the CVS repository machine is
    <CODE>cvs.astro.umd.edu</CODE> and you will need to setup your developers account with
    
    teuben's avatar
    teuben committed
    Peter (<CODE>teuben@astro.umd.edu</CODE>). Here's a sample session with some commonly
    used CVS commands:
    <P>
    <BLOCKQUOTE><CODE>
    <HR>
    <PRE>
    
     setenv CVSROOT   :pserver:myname@cvs.astro.umd.edu:/home/cvsroot
    
    teuben's avatar
    teuben committed
     setenv CVSEDITOR emacs
    
     setenv CVS_RSH   ssh           (not needed for pserver access though)
    
     cvs login                      (only needed once, and only for pserver type access)
    
    teuben's avatar
    teuben committed
    
     cvs checkout partiview              # get a new local sandbox to work in, or
    
    teuben's avatar
    teuben committed
     cvs -n -q update partiview          # check if others had made any changes
    
     cvs update partiview                # if so, update your sandbox and/or resolve conflicts
    
    
    teuben's avatar
    teuben committed
     cd partiview/src
     ./configure
    
     emacs partibrains.c                 # edit some files
    
    teuben's avatar
    teuben committed
     make all                            # compile the program
    
     ./partiview                         # test the program
    
    slevy's avatar
    slevy committed
     emacs kira_parti.cc                 # edit another file
    
    teuben's avatar
    teuben committed
     make all                            # check if it still compiles
    
    teuben's avatar
    teuben committed
     cvs -n -q update                    # check if anybody else made changes
    
     cvs update                          # if so, update your sandbox again, resolve conflicts
    
    
    teuben's avatar
    teuben committed
     cvs commit                          # and commit your changes
    </PRE>
    <HR>
    </CODE></BLOCKQUOTE>
    
    teuben's avatar
    teuben committed
    <P>
    <HR>
    <A HREF="partiview-2.html">Next</A>
    Previous
    <A HREF="partiview.html#toc1">Contents</A>
    </BODY>
    </HTML>