Building SaVi 1.0

These patches formed a stopgap for users while a new release of SaVi and its new features were worked on; now you can build SaVi 1.4 instead.

If you do wish to try out 1.0 rather than the latest release, compiling the existing SaVi 1.0 source (local gzipped tarball) yourself is worth doing; not only will this allow you to customise SaVi as you wish, but by building with Tcl/Tk 8, rather than the Tcl/Tk 7.4/4.0 interpreters used in the public SaVi 1.0 executables, you will see a large performance improvement - though not as large as with the latest SaVi release. SaVi works happily with the Geomview releases.

Below are needed patches to files in the SaVi 1.0 distribution; apply them with patch filename. You can also download a gzipped tarfile of these patches.

savi1.0 directory
savi
this shows you how to modify the file that runs SaVi with the location of the Tcl/Tk 8 headers on your system. You don't want to build with the supplied Tcl/Tk 7.4/4.0 headers in the savi1.0/tcl/lib directory; in fact, you can safely delete that directory.

src/ directory
Makefile changes
Makefile_defs.linux
these are sample changes suitable for Red Hat. You will probably want to build dynamically rather than statically. You'll need to build with make ARCH=linux in the savi1.0 directory to make sure that this set of definitions is selected.
Tcl and Tk 8.x support
coverage_vis.c
tcl_utils.c
these two patches are needed for Tcl/Tk 8.
file-handling fixes
gv_utils.c and include/gv_utils.h
main.c
newer compilers don't like the assignment of FILE* pointers directly to named streams; this set of patches fixes that.
Other fixes
Here are other useful fixes that you're best-off applying.
earth.c
this patch prevents SaVi from crashing under Geomview immediately after you first choose to draw a detailed or texture-mapped Earth in Geomview.
fisheye.c
this fixes a bug in plotting satellite positions on the fisheye view (you can click in the 2D coverage map to set the fisheye coordinates). Found by Greg LaCoste.

And once you've done that, you will probably want to download more constellation simulation scripts.


Lloyd Wood (lloydwood@users.sourceforge.net)
this page last updated 25 November 2001