Re: Missing .iv load with n32/64 libs

New Message Reply Date view Thread view Subject view Author view

Don Hatch (hatch++at++hell.asd.sgi.com)
Mon, 23 Sep 1996 04:24:11 -0700


On Sep 23, 9:17am, Frank Purschke wrote:
> Subject: Re: Missing .iv load with n32/64 libs
> Scott McMillan wrote:
> >
...
> > If you install the Loader Source code from the CDROM you can build your own
> > inventor loader (in /usr/share/Performer/src/lib/libpfdb/libpfiv). However,
> > there is a bug/flakiness with either the N32/64 compiler or the code
> > itself and it won't compile the loader straight up. You have to change the
> > following to get it to compile (I probably should have used diff, right?):
> >
> > // original code (pfiv.C lines 795-798):
> > SoGetBoundingBoxAction bba(SbViewportRegion());
> > bba.apply((SoNode *)node);
> > SbXfBox3f &bbox = bba.getXfBoundingBox();
> > const SbVec3f &center = bba.getCenter();
> >
> > // replacement code:
> > SoGetBoundingBoxAction *bba =
> > new SoGetBoundingBoxAction(SbViewportRegion());
> > bba->apply((SoNode *)node);
> > SbXfBox3f &bbox = bba->getXfBoundingBox();
> > const SbVec3f &center = bba->getCenter();
> > delete bba;
> >
> > Please let me know if this works for you.

Careful not to delete bba until after the last reference to it is used!
I.e. I think the "delete bba" line should be moved
down to below the last reference to "bbox" and "center" in that function,
since they point to parts of bba.
This might conceivably be the cause of Frank's core dump
(probably not too likely, though...)

>
> Dear Scott,
>
> yes it works with the n32 libs. It is sufficient to place the resulting libiv_ogl.so in the directory where
> the n32-perfly gets started (as libiv.so) so you do not need to copy it into /usr/lib32/libpfdb/ . The same
> procedure fails for the 64-lib. I don't know why, but I get a core dump... But I will keep trying to get the
> 64-perfly working.

Don

-- 
Don Hatch  hatch++at++sgi.com  (415) 933-5150  Silicon Graphics, Inc.
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:36 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.