From owner-info-inventor-dev@oss.sgi.com Sat Dec 8 10:56:36 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB8Iuaa16624 for info-inventor-dev-outgoing; Sat, 8 Dec 2001 10:56:36 -0800 Received: from junior.lgc.com (junior.lgc.com [134.132.72.99]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB8IuOo16621 for ; Sat, 8 Dec 2001 10:56:24 -0800 Received: from lgchvw01.lgc.com (lgchvw01.lgc.com [134.132.93.107]) by junior.lgc.com (8.11.3/8.11.3) with SMTP id fB8HtWM21228 for ; Sat, 8 Dec 2001 11:55:32 -0600 (CST) Received: from 134.132.92.92 by lgchvw01.lgc.com (InterScan E-Mail VirusWall NT); Sat, 08 Dec 2001 11:56:21 -0600 Received: by lgchexch001 with Internet Mail Service (5.5.2653.19) id ; Sat, 8 Dec 2001 11:56:22 -0600 Message-ID: <038A897BC8D6064E928A60BA14CC0F5A0252A1C6@lgchexch004.lgc.com> From: Ramakrishna Chada To: "'info-inventor-dev@oss.sgi.com'" Subject: compiling debug Date: Sat, 8 Dec 2001 11:56:17 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="ISO-8859-1" Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Has anyone ported with gcc3.0.1 on RedHat 7.1. I am trying to compile debug (LIBTYPE set to debug) and get errors when compiling the clients directory. /lib/database/src/so/nodes/nurbs/clients The same thing compiles fine 1. with gcc3.0.1 and without -g flag (i.e, LIBTYPE not set) 2. with older gcc2.96 compiler. The following is the output of the compilation with -g /usr/bin/g++3 -DLIBRARYBUILD -I/usr/X11R6/include -I. -I../../../../../../../lib/database/include -I../../../../../../../lib/interaction/include -I../../../../../../../lib/nodekits/include -I../../../../../../../libSoXt/include -I../head -fPIC -g -c nurbsClient.c++ In file included from gl4surfeval.c++:49, from nurbsClient.c++:57: /usr/include/stdio.h:322: declaration of C function `int printf(int, const char*, ...)' conflicts with /usr/include/stdio.h:278: previous declaration `int printf(const char*, ...)' here In file included from nurbsClient.c++:57: gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::bgnmap2f(long int)': gl4surfeval.c++:78: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::endmap2f()': gl4surfeval.c++:85: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::map2f(long int, float, float, long int, long int, float, float, long int, long int, REAL*)': gl4surfeval.c++:112: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::mapgrid2f(long int, float, float, long int, float, float)': gl4surfeval.c++:136: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::evalcoord2f(long int, float, float)': gl4surfeval.c++:143: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::evalpoint2i(long int, long int)': gl4surfeval.c++:150: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::bgnline()': gl4surfeval.c++:157: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::endline()': gl4surfeval.c++:164: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::bgnclosedline()': gl4surfeval.c++:171: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::endclosedline()': gl4surfeval.c++:178: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::bgntmesh()': gl4surfeval.c++:185: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::swaptmesh()': gl4surfeval.c++:192: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::endtmesh()': gl4surfeval.c++:199: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::bgnqstrip()': gl4surfeval.c++:206: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::endqstrip()': gl4surfeval.c++:213: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::enable(long int)': gl4surfeval.c++:220: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gl4surfeval.c++: In member function `virtual void _SoNurbsGL4SurfaceEval::disable(long int)': gl4surfeval.c++:226: cannot convert `const char*' to `int' for argument `1' to `int printf(int, const char*, ...)' gmake: *** [nurbsClient.o] Error 1 Thanks for any suggestions. From owner-info-inventor-dev@oss.sgi.com Wed Dec 12 08:20:39 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBCGKdW22428 for info-inventor-dev-outgoing; Wed, 12 Dec 2001 08:20:39 -0800 Received: from vrcom-nis.vrcom.de (vrcom-nis.vrcom.de [146.140.24.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBCGKVo22424 for ; Wed, 12 Dec 2001 08:20:32 -0800 Received: from ernie.vrcom.de (ernie.vrcom.de [146.140.24.16]) by vrcom-nis.vrcom.de (8.9.1b+Sun/8.9.1) with ESMTP id QAA03918 for ; Wed, 12 Dec 2001 16:20:29 +0100 (MET) Received: (from stiller@localhost) by ernie.vrcom.de (SGI-8.9.3/8.9.3) id QAA24642 for info-inventor-dev@oss.sgi.com; Wed, 12 Dec 2001 16:20:28 +0100 (MET) Date: Wed, 12 Dec 2001 16:20:28 +0100 (MET) From: Matthias Stiller Message-Id: <10112121620.ZM24719@ernie.vrcom.de> In-Reply-To: jlim@kinabalu.csd.sgi.com (Jonathan Lim) "Re: Problems with SGI Inventor on Octane 2 with V12 graphics" (Oct 24, 8:49am) References: <200110241549.IAA05338@kinabalu.csd.sgi.com> Reply-to: stiller@vrcom.de X-Mailer: Z-Mail (3.2.3 08feb96 MediaMail) To: info-inventor-dev@oss.sgi.com Subject: Re: Problems with SGI Inventor on Octane 2 with V12 graphics Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk On Oct 24, 8:49am, Jonathan Lim wrote: > > Hi Jonathan, > > > > thanx for your answer. Unfortunatelly I don't have a stack trace, since the > > Inventor lib provided from SGI is an optimized one :( The problem is a really > > Ok, I thought you were using the open-sourced version. > > > nasty one. In the first try it crashes when trying to render a special scene > > whose differences to the one rendered by the ExaminerViewer is only changed > > materials. Afterwards I replaced this scene by a single SoCube without any > > material or other stuff, but then it keeps crashing while trying to get access > > on the pixmap. > > Can you provide the test case? > > > Is there anything changed regarding the offscreen renderer in the open source > > version of inventor ? > > Not that I know of. > > > BTW: I noticed it is not so easy to compile the open source version on sgi > > (with my knowledge). Is there any better support planned ? > > All you really need is GNU make. I will be uploading new RPM's and .tar.gz > files today. > > Jonathan Hello Jonathan, sorry that it took so long to get back to the problem, but I have been overwhelmed with other work :) Now I have made some tests to find out why it crashes. I think the reason is the Octane V12 has a default visual of 30bits colour depth, because that's the one it grabs in the offscreenrenderer. Tuning the machine down to 24bit is possible and works around the problem, but I don't think this is the appropriate solution. Unfortunatelly my knowledge about acquiring Xvisuals is exactly NULL :( BTW: Would it be possible to rewrite the Offscreenrenderer to use PBuffers ? Would this speed up things (i am making about 8-100 screenshots in sequence) ? What graphics have support for it, I know only SGI and nVidia ? Is the maximum possible resolution different to the current one ? Regards Matthias -- +-------------------------------+-------------------------------------+ | Matthias Stiller | fon: ++49-6151-30083-0 | | vrcom GmbH | fax: ++49-6151-30083-19 | | Donnersbergring 20 | email: matthias.stiller@vrcom.de | | 64295 Darmstadt | www: http://www.vrcom.de | | Federal Republic of Germany | | +-------------------------------+-------------------------------------+