From fongpwf@yahoo.com Mon Jun 14 12:20:27 2004 Received: with ECARTIS (v1.0.0; list info-inventor); Mon, 14 Jun 2004 12:20:30 -0700 (PDT) Received: from web14205.mail.yahoo.com (web14205.mail.yahoo.com [216.136.172.151]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i5EJKRgi024167 for ; Mon, 14 Jun 2004 12:20:27 -0700 Message-ID: <20040614192027.91195.qmail@web14205.mail.yahoo.com> Received: from [171.64.68.65] by web14205.mail.yahoo.com via HTTP; Mon, 14 Jun 2004 12:20:27 PDT Date: Mon, 14 Jun 2004 12:20:27 -0700 (PDT) From: Phil Fong Subject: Compiling on FC2 AMD64 To: info-inventor@oss.sgi.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-archive-position: 91 X-ecartis-version: Ecartis v1.0.0 Sender: info-inventor-bounce@oss.sgi.com Errors-to: info-inventor-bounce@oss.sgi.com X-original-sender: fongpwf@yahoo.com Precedence: bulk X-list: info-inventor Content-Length: 1293 Lines: 40 Hi, I managed to compile Open Inventor 2.1.5-10 on a dual Opteron system running Fedora Core 2 after making the following changes. The demos seem to work but I want to make sure there isn't something hidden that will fail. Please let me know if I've missed something obvious. 1. In libFL/ang/flfreetype.h, comment out "#include " and put in "#include " Freetype versions after 2.1.6 require this. 2. In make/ivcommondefs, change the line "X11LIBDIR = $(X11DIR)/lib" in the linux section to "X11LIBDIR = $(X11DIR)/lib64" so it finds the 64 bit X libraries. 3. In lib/database/include/machine.h, lib/database/src/so/SoOutput.c++, lib/interaction/src/draggers/SoDragger.c++, lib/nodekits/src/nodekits/SoNkCatalog.c++, lib/nodekits/src/upgraders/SoV1NkCatalog.c++, libSoXt/src/SoXtRsrc.c++, add __x86_64__ to any #if lines involving __ia64 or __ia64__. This compiles without any problems with gcc 3.3.3 in 64 bit mode. However, parallel building with make -j 2 does not work. It gives an error about the jobserver being unavailable. The makefile invokes submakes incorrectly so it ends up running serially. Phil __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ From simon@wohnheim.fh-wedel.de Mon Jun 28 01:55:14 2004 Received: with ECARTIS (v1.0.0; list info-inventor); Mon, 28 Jun 2004 01:55:17 -0700 (PDT) Received: from mail.fh-wedel.de (mail.fh-wedel.de [213.39.232.194]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i5S8tDgi004924 for ; Mon, 28 Jun 2004 01:55:14 -0700 Received: from wohnheim.fh-wedel.de (wohnheim.fh-wedel.de [213.39.233.138]) by mail.fh-wedel.de (8.12.9/8.12.9/Debian-1) with ESMTP id i5S8tIqT001274 for ; Mon, 28 Jun 2004 10:55:18 +0200 Received: from simon by wohnheim.fh-wedel.de with local (Exim 3.35 #1 (Debian)) id 1Berux-0001zf-00 for ; Mon, 28 Jun 2004 10:55:11 +0200 Date: Mon, 28 Jun 2004 10:55:11 +0200 To: info-inventor@oss.sgi.com Subject: Problems with SoGLRenderAction Message-ID: <20040628085511.GD7249@wohnheim.fh-wedel.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i From: Simon Adler X-archive-position: 94 X-ecartis-version: Ecartis v1.0.0 Sender: info-inventor-bounce@oss.sgi.com Errors-to: info-inventor-bounce@oss.sgi.com X-original-sender: simon@wohnheim.fh-wedel.de Precedence: bulk X-list: info-inventor Content-Length: 2440 Lines: 80 Hello erverybody, I've got Problems with the action SoGLRenderAction. My sources compile, but if I run the programm, it crashed with an Segmentation fault. I want to use RenderAction, because of the Anti Aliasing etc. My Code: int main ( int argc, char ** argv ) { Widget Window = SoXt::init(argv[0]); if (!Window) return 1; SoXtRenderArea * viewport = new SoXtRenderArea(Window); SoSeparator * root = new SoSeparator; SoGLRenderAction * render = new SoGLRenderAction(viewport->getViewportRegion()); SoPerspectiveCamera * cam1 = new SoPerspectiveCamera; root->ref(); root->addChild(cam1); setLight(root); BuildPlanets(root); cam1->viewAll(root, viewport->getViewportRegion()); render->apply(root); viewport->setSceneGraph(root); viewport->show(); SoXt::show(Window); SoXt::mainLoop(); return 0; } I use inventor-dev 2.1.5-8-4 The gdb generates, the following Output: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 682)] 0x4059d739 in strncmp () from /lib/libc.so.6 (gdb) bt #0 0x4059d739 in strncmp () from /lib/libc.so.6 #1 0x4015b162 in SoGLCacheContextElement::areMipMapsFast () from /usr/lib/libInventor.so.0 #2 0x4015fe98 in SoGLTextureImageElement::sendTex () from /usr/lib/libInventor.so.0 #3 0x4015fd2f in SoGLTextureImageElement::set () from /usr/lib/libInventor.so.0 #4 0x4022ea55 in SoTexture2::GLRender () from /usr/lib/libInventor.so.0 #5 0x401c6579 in SoNode::GLRenderBelowPath () from /usr/lib/libInventor.so.0 #6 0x40226d92 in SoSeparator::GLRenderBelowPath () from /usr/lib/libInventor.so.0 #7 0x40226d92 in SoSeparator::GLRenderBelowPath () from /usr/lib/libInventor.so.0 #8 0x40226b72 in SoSeparator::GLRender () from /usr/lib/libInventor.so.0 #9 0x401c6ad9 in SoNode::GLRenderS () from /usr/lib/libInventor.so.0 #10 0x40150741 in SoGLRenderAction::renderPass () from /usr/lib/libInventor.so.0 #11 0x401505b1 in SoGLRenderAction::renderAllPasses () from /usr/lib/libInventor.so.0 #12 0x40150408 in SoGLRenderAction::beginTraversal () from /usr/lib/libInventor.so.0 #13 0x4014d920 in SoAction::apply () from /usr/lib/libInventor.so.0 #14 0x08049c2b in main (argc=1, argv=0xbffff9f4) at space.cpp:95 (gdb) A debugging session is active. Thanks for any help Simon Adler -- If you wait long enough, it will go away... after having done its damage. If it was bad, it will be back. From jlim@kinabalu.csd.sgi.com Tue Jun 29 12:41:34 2004 Received: with ECARTIS (v1.0.0; list info-inventor); Tue, 29 Jun 2004 12:41:37 -0700 (PDT) Received: from zok.sgi.com (mtvcafw.sgi.com [192.48.171.6]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i5TJfYgi005639 for ; Tue, 29 Jun 2004 12:41:34 -0700 Received: from kinabalu.csd.sgi.com (kinabalu.csd.sgi.com [134.16.212.96]) by zok.sgi.com (8.12.9/8.12.9/linux-outbound_gateway-1.1) with ESMTP id i5TJbohv012422 for ; Tue, 29 Jun 2004 12:37:50 -0700 Received: from kinabalu.csd.sgi.com (localhost.csd.sgi.com [127.0.0.1]) by kinabalu.csd.sgi.com (SGI-8.12.5/8.12.5) with ESMTP id i5TJbS1b058240; Tue, 29 Jun 2004 12:37:28 -0700 (PDT) Received: (from jlim@localhost) by kinabalu.csd.sgi.com (SGI-8.12.5/8.12.5/Submit) id i5TJbHUf058235; Tue, 29 Jun 2004 12:37:17 -0700 (PDT) From: Jonathan Lim Message-Id: <200406291937.i5TJbHUf058235@kinabalu.csd.sgi.com> Subject: Re: Problems with SoGLRenderAction To: simon@wohnheim.fh-wedel.de (Simon Adler) Date: Tue, 29 Jun 2004 12:37:16 -0700 (PDT) Cc: info-inventor@oss.sgi.com In-Reply-To: <20040628085511.GD7249@wohnheim.fh-wedel.de> from "Simon Adler" at Jun 28, 2004 10:55:11 AM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-archive-position: 95 X-ecartis-version: Ecartis v1.0.0 Sender: info-inventor-bounce@oss.sgi.com Errors-to: info-inventor-bounce@oss.sgi.com X-original-sender: jlim@sgi.com Precedence: bulk X-list: info-inventor Content-Length: 2683 Lines: 79 You should wait until the window is mapped before applying the render action; glGetString() returns NULL unless there is a valid GLX context. As for antialiasing, SoXtRenderArea provides methods for doing so. Jonathan On Mon Jun 28 01:55:11 2004, simon@wohnheim.fh-wedel.de wrote: > > Hello erverybody, > > I've got Problems with the action SoGLRenderAction. My > sources compile, but if I run the programm, it crashed with > an Segmentation fault. I want to use RenderAction, because > of the Anti Aliasing etc. > > My Code: > > > int > main ( int argc, char ** argv ) > { > Widget Window = SoXt::init(argv[0]); > if (!Window) return 1; > SoXtRenderArea * viewport = new SoXtRenderArea(Window); > > SoSeparator * root = new SoSeparator; > > SoGLRenderAction * render = new SoGLRenderAction(viewport->getViewportRegion()); > > SoPerspectiveCamera * cam1 = new SoPerspectiveCamera; > root->ref(); > root->addChild(cam1); > setLight(root); > BuildPlanets(root); > cam1->viewAll(root, viewport->getViewportRegion()); > > render->apply(root); > > viewport->setSceneGraph(root); > viewport->show(); > SoXt::show(Window); > SoXt::mainLoop(); > > return 0; > } > > > I use inventor-dev 2.1.5-8-4 > > The gdb generates, the following Output: > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 1024 (LWP 682)] > 0x4059d739 in strncmp () from /lib/libc.so.6 > (gdb) bt > #0 0x4059d739 in strncmp () from /lib/libc.so.6 > #1 0x4015b162 in SoGLCacheContextElement::areMipMapsFast () > from /usr/lib/libInventor.so.0 > #2 0x4015fe98 in SoGLTextureImageElement::sendTex () > from /usr/lib/libInventor.so.0 > #3 0x4015fd2f in SoGLTextureImageElement::set () > from /usr/lib/libInventor.so.0 > #4 0x4022ea55 in SoTexture2::GLRender () from /usr/lib/libInventor.so.0 > #5 0x401c6579 in SoNode::GLRenderBelowPath () from /usr/lib/libInventor.so.0 > #6 0x40226d92 in SoSeparator::GLRenderBelowPath () > from /usr/lib/libInventor.so.0 > #7 0x40226d92 in SoSeparator::GLRenderBelowPath () > from /usr/lib/libInventor.so.0 > #8 0x40226b72 in SoSeparator::GLRender () from /usr/lib/libInventor.so.0 > #9 0x401c6ad9 in SoNode::GLRenderS () from /usr/lib/libInventor.so.0 > #10 0x40150741 in SoGLRenderAction::renderPass () > from /usr/lib/libInventor.so.0 > #11 0x401505b1 in SoGLRenderAction::renderAllPasses () > from /usr/lib/libInventor.so.0 > #12 0x40150408 in SoGLRenderAction::beginTraversal () > from /usr/lib/libInventor.so.0 > #13 0x4014d920 in SoAction::apply () from /usr/lib/libInventor.so.0 > #14 0x08049c2b in main (argc=1, argv=0xbffff9f4) at space.cpp:95