Re: pfdInitConverter & Linux

New Message Reply Date view Thread view Subject view Author view

From: Dirk Scheffter (scheff++at++iff.fhg.de)
Date: 08/21/2001 22:56:04


Hi Brian,

thanks for your reply.

I didn't change PFNFYLEVEL. May be it's a chance.

What I did was the following.

I tracked down the calls until request of DSOs. All seems to work
correctly. But if the _pfdFindConverterDSO trys to get the addresses of
the loader functions it gets only NULL-pointers.

My extension to libpfdu doesn't change any original code. There's only a
function added which returns the ability of a certain converter to
load/store files.

For all that I believe that there must be a difference between my compiled
libpfdu and the original delivired.

I have verified my guess with simple test code:

#include <Performer/pfdu.h>
#include <Performer/pfdb/pfflt.h>

// ***** main *****
// main function
int main(
  int argc,
  char **argv)
{
  if (argc < 2) {
    cerr << endl << argv[0] << ": Missing argument." << endl
      << "Usage: > " << argv[0] << " <model_file>" << endl;
    return 1;
  }

  pfInit();

  pfdInitConverter("flt");
  pfdConverterMode("flt", PFFLT_FLATTEN, FALSE);

  pfConfig();

  pfNode *pPfNode = pfdLoadFile(argv[1]);
}

This application works fine when linked against default libraries but
fails when linked (statically) against my extended libpfdu.

All sounds very weird, doesn't it?

Version mismatch? Wrong compiler version?

BTW, I use this code on IRIX/Pf2.2.7 since beginning of this year without
any problem.

Best regards,
Dirk.

P.S.: "Couldn't initialize model loader..." is thrown by my own
code.
But before "PF Warning" appears, also.

On Tue, 21 Aug 2001, Brian Furtaw wrote:

> Dirk,
>
> Have you tried setting the shell environment variable PFNFYLEVEL to 5 to
> see why your loaders are not getting initialized. Do this usually gives
> very good insight.
>
> Brian
>
>
> Dirk Scheffter wrote:
> >
> > pfHi there,
> >
> > I try to intialize some loaders.
> >
> > Therefore I call pfdInitConverter() for some extensions.
> > Instead of initialization I get
> > Couldn't initialize model loader for extension ...
> > for nearly all converters with very few exceptions.
> >
> > What am I doing wrong?
> >
> > I have added a small function to libpfdu and recompiled therefore the
> > sources I found in /usr/share/Performer/src/lib/libpfdu/
> >
> > Could this be the error?
> >
> > I am using Performer 2.4.
> >
> > All help will be welcome.
> >
> > Best regards,
> > Dirk.
> >
> > -----------------------------------------------------------
> > Dipl.-Inf. Dirk Scheffter scheff++at++iff.fhg.de
> > Fraunhofer IFF fon: +49 (0) 391/40 90-854
> > Sandtorstr. 22 fax: +49 (0) 391/40 90-870
> > D-39106 Magdeburg http://www2.iff.fhg.de/~scheff
> > Germany
> > -----------------------------------------------------------
> >
> > -----------------------------------------------------------------------
> > List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> > Open Development Project: http://oss.sgi.com/projects/performer/
> > Submissions: info-performer++at++sgi.com
> > Admin. requests: info-performer-request++at++sgi.com
> > -----------------------------------------------------------------------
>
> --
> ----oOOo---- ----oOOo---- ----oOOo---- ----oOOo----
>
> Brian Furtaw (brian++at++sgi.com)
> Graphics Guru Office:(301)572-3293 Fax: (253)323-8182
> 12200-G Plum Orchard Drive OpenGL/Performer/OpenInventor/ImageVision
> Silver Spring, Maryland 20904 Volumizer/Optimizer/React/PCI Device
> Drivers
>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Aug 21 2001 - 22:55:43 PDT

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