POV-Ray : Newsgroups : povray.unix : making one linux binary (comments please) : making one linux binary (comments please) Server Time
28 Jul 2024 18:20:30 EDT (-0400)
  making one linux binary (comments please)  
From: Carl Bartels
Date: 14 Dec 1999 18:59:30
Message: <3856D9E0.65A4B205@bravo435.chem.mcgill.ca>
Hello all,

  While playing with the mega-pov source I got annoyed by the fact that
we have three different binaries to worry about and that compiling them
in different order can give you different results...

make newunix ; make xwin   -will give you an x-povray binary that
                            still just gives you ascii output.

make newxwin ; make unix   -will crash when compiling due to all the
                            X-stuff scattered around the .o files.

(never mind SVGA stuff for now)

  So I figured why not just make it all one executable with the
following scheme (please comment on this)


Modify all the stuff in the unix directory so that we have a few extra's
defined...

First off, just have one configuration file (only one binary) that has
all the stuff for unix, xwin, and svga in it...one config.h

#define NO_XWIN NO_XWIN  - in the config.h file to let people decide not
                           to compile in X support.  (comment out by 
                           default)

#define NO_SVGA NO_SVGA  - dito for SVGAlib support.  (define by
default)

if NO_XWIN and NO_SVGA are both defined then don't compile X or SVGA
stuff and define the +D or +D0 switch to give the ascii display.

if only NO_SVGA is defined, leave out SVGA stuff from the compile and
have +D or +D0 use the X-display if it exists, but fall back on ascii. 
Define the +D1 switch to use an ascii display.

if only NO_XWIN is defined, leave out XWIN stuff from compile and have
+D or +D0 activate a SVGA display while +D1 would give you ascii.

if none are defined, then compile in everything, and have the following
switches...

+D, +D0 check for an X display, but fall back on ascii if none exists
  
+D1 use ascii

+D2 use SVGA

  I've decided to try to rig things so SVGA is more of a last resourt
because a) I've hardly ever heard of anyone using it for anything if
they had X around and b) there's a security problem with it (I think
Mark Gordon pointed that one out.)

  My apologies to anyone who does use SVGA.

  Now, all I have to do is figure out how to put all that together.  I
think I found myself a Christmas project.

Thanx for any comments on this.
-- 
Carl Bartels, Department of Chemsitry, Mcgill University, to reply to
me,
just kill a and 5 from the email name, Montreal, QC, cAnAdA


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.