This release has been tried on Linux (Fedora, Ubuntu, etc.), Mac OS X, Irix and Windows.
partiview needs two libraries to compile: OpenGL (or MESA) for the drawing operations, and FLTK for the graphical user interface. These libraries are known to work on MS-Windows as well as many Unix flavors.
Most platforms will have it installed already, whether as libMesaGL or libGL.
Our configure
script (see below)
should take care of the two possible options.
Homepage: http://mesa3d.sourceforge.net/
Redhat packages: (part of powertools I believe)
Also make sure FLTK
is installed, from fltk.org.
FLTK versions 1.1.x (e.g. 1.1.7, 1.1.9, ...) work.
FLTK 2 will not work with partiview.
If you're not sure whether you already have it, try
% locate libfltk.a
% locate Fl_Slider.h
if they fail, then
% cd <where-ever>/fltk-1.1.9
% make install
(you only need it if you want to recompile partiview at some point, not if you just want to run it, since FLTK is built-in to partiview binaries.)
Homepage: http://www.fltk.org/
Find rpms: http://rpmfind.net
FLTK is under continuous development. Versions from 1.1.1 through 1.1.9 have been successfully tested with partiview. Some problems with other versions exist, but 1.1.4 is also known to work.
You can decide to use a branded version, usually available as a tar or zip file,
or use the CVS (see below).
Extract the tarball, and install the program from within the
src
directory:
% tar zxf partiview-0.6.tar.gz
% cd partiview-0.6/src
% make clean (if you really must compile a new executable)
% ./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)
If you encounter difficulties of locating either the FLTK or MESA/OpenGL
libraries, configure script options can specify them:
--with-fltk=
dirname names the directory which contains the
lib
and FL
subdirectories, --with-mesa=
dirname
can specify the Mesa installation directory [??], and
--with-kira=
dirname names the Starlab directory, whose default
value is taken from environment variable STARLAB_PATH if that is set.
The current source code of partiview
is always available from CVS,
with public anonymous read-only access. Occasionally we stamp out a
packaged release, too, but looking to CVS is best.
(Partiview developers can request a non-anonymous CVS account
from Peter Teuben -- teuben@astro.umd.edu
.)
Currently the CVS repository machine is cvs.astro.umd.edu
.
Here's a sample session with some commonly used CVS commands:
setenv CVSROOT :pserver:anonymous@cvs.astro.umd.edu:/home/cvsroot
setenv CVSEDITOR emacs
cvs login (only needed once, and only for pserver type access)
cvs checkout partiview # get a new local sandbox to work in, or
cd partiview # goto the root directory of partiview
cvs -n -q update # check if others had made any changes
cvs update # if so, update your sandbox and/or resolve conflicts
cd partiview/src # goto the 'src' directory of partiview
./configure --with-fltk=/some/where/fltk-1.1.something/ ...
emacs partibrains.c # edit some files
make all # compile the program
./partiview # test the program
emacs kira_parti.cc # edit another file
make all # check if it still compiles
cvs -n -q update # check if anybody else made changes
cvs update # if so, update your sandbox again, resolve conflicts
cvs commit # and commit your changes
Partiview can be compiled from the command line on Windows using either the
Microsoft Visual C tools (cl, nmake,
etc.) or using gcc/g++
with
MinGW32, MSYS and w32api
. The MinGW route is currently the only way
to compile with kira/Starlab support. There's no provision for building
partiview within the MS Visual Studio GUI.
To compile with Microsoft C:
partiview
distribution from its tarball or via CVS.partiview/src/partiview.mak
,
changing FLTK_DIR
as appropriate.vcvars32.bat
script from the Developer Studio Bin
directory; this will set the MSVCDIR environment variable,
add the Bin
directory to PATH, etc.partiview/src
directory, compile with
nmake -f partiview.mak
Dependencies are not properly maintained by this Makefile, so
use nmake -f partiview.mak clean
if you change anything.To compile with MinGW and company, you'll need to:
MinGW
(gcc, etc.), its associated w32api
libraries and header files, and the MSYS
suite of
UNIX-like tools. All three packages are available at:
http://www.sourceforge.net/projects/mingw/
Unpack the .zip or .tar archives of MinGW and w32api;
both packages are intended to live in the same directory.
The MSYS package comes as a self-extracting archive and
can be extracted into a different directory as desired.
(But don't attempt to merge the MSYS bin
directory contents
into mingw/bin
.)bin
subdirectory and MinGW bin
subdirectory to the Windows PATH environment variable,
with the MSYS directory coming earlier, e.g. in a command window
set path=%path%;C:\util\msys\1.0\bin;C:\util\mingw\bin
or the analogous setting of PATH using (on WinNT/2000 at least)
My Computer -> Control Panel -> System -> Environment
to make a permanent change to PATH.
sh configure
make
cd C:\some\where
set CVSROOT=:pserver:anonymous@cvs.astro.umd.edu:/home/cvsroot
cvs login
cvs checkout starlab
cd starlab
templates\starlab_setup.bat
to
local\starlab_setup.bat
, and edit it.
Change the first two set
commands: set STARLAB_PATH
to the installation directory -- in the above example,
set STARLAB_PATH=C:\some\where\starlab
.
Also optionally update (or remove) set PATH=...
to add MSYS and MinGW bin
directories to it.
local\starlab_setup
make libs
lib
directory
the files libdstar.a libdyn.a libnode.a librdc.a libsstar.a libstd.a libtdyn.a
partiview/src
directory,
use configure
and make
as under Unix.
The MSYS package imposes its own UNIX-like syntax for Windows pathnames,
which you'll need to use as arguments to configure and friends,
with forward- instead of backslashes and a /drive-letter prefix.
Also, if typing to a Windows command-window, shell scripts like
configure
must be explicitly fed to sh
.
Thus for example if FLTK is installed in C:\util\fltk-1.1.9
and Starlab is in F:\src\starlab
, then you might build
partiview by typing
sh configure --with-fltk=/c/util/fltk-1.1.9 --with-kira=/f/src/starlab
make
Note there's no need to specify the location of the OpenGL or other
libraries; the configure script and MinGW tools already know
where to find those. Omit the "--with-kira=..." if you're not using Starlab.