Code Monkey home page Code Monkey logo

sphigs's Introduction

The instructions for installing SPHIGS are equivalent to those for SRGP.
This file describes issues relevant only to SPHIGS.

The Makefile in "src/sphigs/" contains a very important comment based on an
idea presented in the SRGP README file.  Please read and understand it before
attempting a compilation on your system.

Be aware that sphigs code relies on the existence of the ANSI standard object
libraries, which not all sites have at this time.  One user reported having to
do two modifications to the sphigs source, both modifications of which I
approve.  I quote his letter:

|  1) file sph_object.c has #include <stdlib.h>
|        I changed this to #include <stdio.h>
|        and compilation went ok.
|
|  2) file sph_element tries to use the symbol (typedef ?) "size_t"
|        in several places.  I looked pretty harmless, so as a hack,
|        I added #define size_t unsigned
|        to the start of the file.  It should probably be cleaned
|        up better in an offical correction.
|
		ABOVE REPORT FROM Allan Tuchman ([email protected])

One user installing on a SUN 3/260 has this to report:

|  1.  I was trying to install sphigs on a SUN 3/260.  I changed the platform
|      flag from sparc to SUN3 to reflect this.  I then got many compiler errors
|      in include files (floatingpoint.h, etc.).  I then changed it back to
|      sparc and it compiled fine.
|  
|  2.  The file sph_element.c is missing an include (sys/types.h) because size_t
|      was not defined.  I realize, this is machine specific - some machines
|      automatically include types.h, some don't.
|  
|  3.  File sph_object.c includes a file called stdlib.h.  We don't have this
|      file, so I changed it to stdio.h, and it compiled just fine.


Other users report the linker being unable to locate "irint()".  This is a
function that performs rounding of a double to an int, using the current IEEE
rounding direction.  If unavailable on your system, you can try this:
	 #define irint(X) (X)

sphigs's People

Contributors

tmatthey avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.