<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
|