info-inventor-dev
[Top] [All Lists]

Re: OpenInventor on SUN, X error

To: Rasmus Tamstorf <tamstorf@xxxxxxxxxxxxx>
Subject: Re: OpenInventor on SUN, X error
From: "J . A . Magallon" <jamagallon@xxxxxxx>
Date: Fri, 9 Feb 2001 01:50:28 +0100
Cc: jlim@xxxxxxxxxxxxxxxxxxxx, naaman@xxxxxxxxxxxxxxxxxxxx, connolsv@xxxxxxxx, lsh@xxxxxxxxxxxx, info-inventor-dev@xxxxxxxxxxx
In-reply-to: <Pine.SGI.4.10.10102081606550.1759-100000@bacon.fan.fa.disney.com>; from tamstorf@fa.disney.com on Fri, Feb 09, 2001 at 01:32:43 +0100
References: <200102090004.QAA19421@kinabalu.csd.sgi.com> <Pine.SGI.4.10.10102081606550.1759-100000@bacon.fan.fa.disney.com>
Sender: owner-info-inventor-dev@xxxxxxxxxxx
On 02.09 Rasmus Tamstorf wrote:
> On Thu, 8 Feb 2001 jlim@xxxxxxxxxxxxxxxxxxxx wrote:
> 
> > On Thu Feb  8 15:52:36 2001, tamstorf@xxxxxxxxxxxxx wrote:
> > > 
> > > I've actually had to deal with this problem too, and although it does
> > > require a lot of cvs check-in/outs I would vote for changing the
> > > filenames. It's really easy to write a little script like the one below to
> > > do the job, so it shouldn't be too painful. 
> > > 
> > > The only little detail is that the source code actually does #include of
> > > .c++ files in some places. These of course also have to be change, but a
> > > quick perl script can take care of that too.

That is a VERY BAD programming rule used in the Inventor devel tree.
Just write 100 C++ files and include all in a single one to simplify the
makefile, but if you change just a single comma in ONE file you have to
recompile all the 100 files. You throw away through the window all the
philosophy and enhancements behind make, separate compilation, parallel
makes, time stamping-check and so on. This should dissapear from the tree.
Just take GNU make and use it, if you just have one big file, you do not
need a makefile, just a thre line script.

> > > 
> > > Rasmus
> > 
> > Yeah, and some people would prefer .cpp, .cxx, and whatnot. I going to just
> > keep it the way it is.
> 
> wow, wow ... so much for being accomodating :-/ ".c++" happens to be a
> non-standard name for C++ files which is neither accepted by the Sun
> compiler nor by the Compaq Alpha compiler. A quick survey of the compilers
> I have available shows the following as being valid file name extensions :
> 
> Compaq Alpha   : .cxx, .CXX, .cpp, .CPP, .cc, .CC, or .C
> Sun WorkShop 6 : .c, .C, .cc, .cxx, or .cpp
> KAI CC         : .c, .cc, .cpp, .cxx, .c++, .C, .CC, .CPP, .CXX, .C++
> g++            : .C, .cc, .cxx, .cpp, or .c++
> MIPS CC        : .C, .c++, .c, .cc, .cpp, .CPP, .cxx or .CXX

HPUX also eats .cc, and even MSVC can be forced to use .cc.
I will vote for .cc, and all can be changed in a couple finds-basenames.
I can send the script if you want.

I am thinking also in changing all the inline references to /usr/demos and
so on to #defines in makefiles:

access(path,"/usr/demos/Inventor/theDemo/...") -> 
                access(IVDEMODATADIR "/theDemo/...")

and in GNUMakefile for a demo:

CXXFLAGS += -DIVDEMODATADIR=\"$(IVDEMODATADIR)\"

So packagers can tailor the data files locations for its distribution.
If someone tellme it will be accepted, I can do and submit it. If not,
I will do anyways, but all the distribution packagers will have to redo
it again...

-- 
J.A. Magallon                                                      $> cd pub
mailto:jamagallon@xxxxxxx                                          $> more beer

Linux werewolf 2.4.1-ac6 #1 SMP Thu Feb 8 15:58:18 CET 2001 i686


<Prev in Thread] Current Thread [Next in Thread>