Hugo Eide Gunnarsen (hugogu++at++hugogu.oslo.sgi.com)
Tue, 25 Nov 1997 10:15:32 +0100
If I try to compile and run the program below, I get an segmentation
fault.
I have also tried to compile mips1 and mips2 with IRISGL/OpenGL.
I can see that perfly uses pfFog, but I'm not able to run
the perfly code that is in the example directory. It also give me an
Bus error (core dumped)
// CC -n32 -mips3 -o p p.c++ -lpf_ogl -lpfdu_ogl -lpfutil_ogl
#include <Performer/pf/pfChannel.h>
#include <Performer/pf/pfLightSource.h>
#include <Performer/pfdu.h>
#include <Performer/pr/pfFog.h>
pfScene *pf_scene;
pfPipe *pf_pipe;
pfPipeWindow *pf_pipewindow;
pfChannel *pf_channel;
pfFog *pf_fog;
main() {
pfInit();
pfConfig();
pfuInitUtil();
pf_scene=new pfScene();
// This make my program coredump in the next new/pfMalloc (new
pfPipeWindow)
pf_fog=new pfFog();
pf_pipe=pfGetPipe(0);
pf_pipewindow=new pfPipeWindow(pf_pipe);
pf_pipewindow->setOriginSize(0,1024,256,256);
pf_pipewindow->open();
pf_channel=new pfChannel(pf_pipe);
while(pfGetTime()<2.0) { pfFrame(); }
}
--Hugo Eide Gunnarsen Mob: +47 92887631 If it ain't broke, hugogu++at++oslo.sgi.com Work: +47 67114631 it doesn't have Silicon Graphics AS Direct: +47 67114600 enough features yet.
No fortune generated, out of luck.
======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:15 PDT