info-inventor
[Top] [All Lists]

Re: Problem with single-precision math functions and SbBasic.h on Linux

To: Tanner Lovelace <lovelace@xxxxxxxxxxxx>
Subject: Re: Problem with single-precision math functions and SbBasic.h on Linux
From: Jean-Francois Panisset <panisset@xxxxxxxxxxxx>
Date: Sat, 19 Aug 2000 00:09:11 -0400
Cc: info-inventor@xxxxxxxxxxx, panisset@xxxxxxxxxxxx
In-reply-to: Your message of "Fri, 18 Aug 2000 20:53:58 PDT." <399E04D6.1F72B762@xxxxxxxxxxxx>
Sender: owner-inventor@xxxxxxxxxxx
 <399E04D6.1F72B762@xxxxxxxxxxxx>Tanner Lovelace writes
>Jean-Francois Panisset wrote:
>> 
>> I was trying to compile some OpenInventor code on Linux
>> (RedHat 6.2 + SGI ProPack 1.3 on a 330 SGI station). The following
>> simple code:
>
>Jean,
>
>Try something, please.  At your shell prompt, please type in
>
>printenv OSTYPE
>
>If your system prints out anything other than Linux or linux,
>(like linux-gnu, which my system prints out), you need to
>add a check for this to three files in the make directory
>(commondefs, commonivdefs, and system).  It should be pretty
>obvious where it checks this.  This sets up the correct
>environment variables and will help later in the compilation.
>I added the check to mine and everything works a lot better.
>
>Tanner Lovelace
>-- 
>Tanner Lovelace                  Department of Computer Science
>lovelace@xxxxxxxxxx              UNC-Chapel Hill, CB #3175
>http://www.cs.unc.edu/~lovelace  Chapel Hill, NC  27599-3175

Thanks for the feedback.

printenv OSTYPE

says "linux". I must admit though that I just installed the
"sgi-OpenInventor-devel-2.1.5-6.i386.rpm" RPM, I did not build
from the source (shame on me). 

As far as I can tell though, the offending code in SbBasic.h:

#if !defined(__sgi)

#define acosf acos
#define asinf asin
#define atanf atan
#define atan2f atan2
#define cosf cos
#define sinf sin
#define tanf tan
#define powf pow
#define sqrtf sqrt

#endif /* !defined(__sgi) */

appears to be "hard-coded", it doesn't seem to be generated from any kind
of "configure" script. I'm surprised that others are not running into
the same problem.

JF


Jean-Francois Panisset                                panisset@xxxxxxxxxxxx
Software Engineer
Discreet Logic 

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