From owner-inventor@oss.sgi.com Thu Dec 7 12:31:39 2000 Received: by oss.sgi.com id ; Thu, 7 Dec 2000 12:31:29 -0800 Received: from smtp.wetafx.co.nz ([210.55.57.161]:30155 "EHLO wetafx.wetafx.co.nz") by oss.sgi.com with ESMTP id ; Thu, 7 Dec 2000 12:31:11 -0800 Received: from ozzie.wetafx.co.nz (ozzie.wetafx.co.nz [192.168.17.4]) by wetafx.wetafx.co.nz (8.9.3/8.9.0) with ESMTP id JAA15517 for ; Fri, 8 Dec 2000 09:31:03 +1300 (NZDT) Received: from wetafx.co.nz (celeborn.wetafx.co.nz [192.168.20.64]) by ozzie.wetafx.co.nz (980427.SGI.8.8.8/8.8.8) with ESMTP id JAA84214 for ; Fri, 8 Dec 2000 09:28:37 +1300 (NZD) Message-ID: <3A2FF2F4.5F4B23A1@wetafx.co.nz> Date: Fri, 08 Dec 2000 09:28:36 +1300 From: Mike Morasky Organization: Weta Digital X-Mailer: Mozilla 4.7 [en] (X11; U; IRIX64 6.5 IP30) X-Accept-Language: en MIME-Version: 1.0 To: info-inventor@oss.sgi.com Subject: missing library? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing I've finally managed to compile oiv on a ppc linux system and it works great but I am failing at some of the "apps" due to the following errors: usr/bin/g++ -I/usr/X11R6/include -I. -I../../../lib/database/include -I../../../lib/interaction/include -I../../../lib/nodekits/include -I../../../libSoXt/include -fPIC -O -DNDEBUG -c ivinfo.c++ /usr/bin/g++ -L/usr/X11R6/lib -L//usr/lib ivinfo.o -lInventor -o ivinfo /usr/bin/../lib/libGL.so.1: undefined reference to `XShmDetach' /usr/bin/../lib/libGL.so.1: undefined reference to `XShmCreateImage' /usr/bin/../lib/libGL.so.1: undefined reference to `XShmPutImage' /usr/bin/../lib/libGL.so.1: undefined reference to `XShmAttach' /usr/bin/../lib/libGL.so.1: undefined reference to `XShmQueryVersion' collect2: ld returned 1 exit status I've traced these calls to XShm.h but am unsure which library they should be loaded from and why they aren't being resolved. Can anyone point me in the right direction? thanks mike From owner-inventor@oss.sgi.com Thu Dec 7 12:38:19 2000 Received: by oss.sgi.com id ; Thu, 7 Dec 2000 12:38:09 -0800 Received: from jalon.able.es ([212.97.163.2]:34027 "EHLO jalon.able.es") by oss.sgi.com with ESMTP id ; Thu, 7 Dec 2000 12:38:01 -0800 Received: from correo.able.es ([212.97.169.121]) by jalon.able.es (Netscape Messaging Server 4.15) with SMTP id G57THO00.S0S; Thu, 7 Dec 2000 21:41:48 +0100 Date: Thu, 7 Dec 2000 21:37:48 +0100 From: "J . A . Magallon" To: Mike Morasky Cc: info-inventor@oss.sgi.com Subject: Re: missing library? Message-ID: <20001207213748.A864@werewolf.able.es> Reply-To: jamagallon@able.es References: <3A2FF2F4.5F4B23A1@wetafx.co.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <3A2FF2F4.5F4B23A1@wetafx.co.nz>; from mikem@wetafx.co.nz on Thu, Dec 07, 2000 at 21:28:36 +0100 X-Mailer: Balsa 1.0.0 Content-Length: 1327 Lines: 30 Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing On Thu, 07 Dec 2000 21:28:36 Mike Morasky wrote: > I've finally managed to compile oiv on a ppc linux system and it works great > but I am failing at some of the "apps" due to the following errors: > > usr/bin/g++ -I/usr/X11R6/include -I. > -I../../../lib/database/include -I../../../lib/interaction/include > -I../../../lib/nodekits/include -I../../../libSoXt/include -fPIC > -O -DNDEBUG -c ivinfo.c++ > /usr/bin/g++ -L/usr/X11R6/lib -L//usr/lib ivinfo.o > -lInventor -o ivinfo > /usr/bin/../lib/libGL.so.1: undefined reference to `XShmDetach' > /usr/bin/../lib/libGL.so.1: undefined reference to `XShmCreateImage' > /usr/bin/../lib/libGL.so.1: undefined reference to `XShmPutImage' > /usr/bin/../lib/libGL.so.1: undefined reference to `XShmAttach' > /usr/bin/../lib/libGL.so.1: undefined reference to `XShmQueryVersion' > collect2: ld returned 1 exit status > > I've traced these calls to XShm.h but am unsure which library they should be > loaded from and why they aren't being resolved. > X11 shared memory. That routines are in the Extensions library. Add -lXext to link line. -- Juan Antonio Magallon Lacarta #> cd /pub mailto:jamagallon@able.es #> more beer Linux 2.2.18-pre24-vm #2 SMP Wed Nov 29 02:56:21 CET 2000 i686 unknown From owner-inventor@oss.sgi.com Thu Dec 7 12:40:09 2000 Received: by oss.sgi.com id ; Thu, 7 Dec 2000 12:39:50 -0800 Received: from mail.cg.tuwien.ac.at ([128.131.166.76]:3592 "EHLO christl.cg.tuwien.ac.at") by oss.sgi.com with ESMTP id ; Thu, 7 Dec 2000 12:39:34 -0800 Received: from fsck.cg.tuwien.ac.at (TK150125.tuwien.teleweb.at [195.34.150.125]) by christl.cg.tuwien.ac.at (8.9.3/8.9.3) with ESMTP id VAA15099 for ; Thu, 7 Dec 2000 21:39:25 +0100 Message-Id: <5.0.2.1.0.20001207213718.00beeec0@mail.cg.tuwien.ac.at> X-Sender: hesina@mail.cg.tuwien.ac.at X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Thu, 07 Dec 2000 21:39:30 +0100 To: info-inventor@oss.sgi.com From: Gerd Hesina Subject: Re: missing library? In-Reply-To: <3A2FF2F4.5F4B23A1@wetafx.co.nz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing At 09:28 08.12.00 +1300, Mike Morasky wrote: >I've finally managed to compile oiv on a ppc linux system and it works great >but I am failing at some of the "apps" due to the following errors: > >usr/bin/g++ -I/usr/X11R6/include -I. >-I../../../lib/database/include -I../../../lib/interaction/include >-I../../../lib/nodekits/include -I../../../libSoXt/include -fPIC >-O -DNDEBUG -c ivinfo.c++ >/usr/bin/g++ -L/usr/X11R6/lib -L//usr/lib ivinfo.o >-lInventor -o ivinfo >/usr/bin/../lib/libGL.so.1: undefined reference to `XShmDetach' >/usr/bin/../lib/libGL.so.1: undefined reference to `XShmCreateImage' >/usr/bin/../lib/libGL.so.1: undefined reference to `XShmPutImage' >/usr/bin/../lib/libGL.so.1: undefined reference to `XShmAttach' >/usr/bin/../lib/libGL.so.1: undefined reference to `XShmQueryVersion' >collect2: ld returned 1 exit status > >I've traced these calls to XShm.h but am unsure which library they should be >loaded from and why they aren't being resolved. Mike, You have problems with the X shared memory extensions. Perhaps they are not installed on your system. Normally the required lib is libXext.so -g. From owner-inventor@oss.sgi.com Thu Dec 14 05:12:50 2000 Received: by oss.sgi.com id ; Thu, 14 Dec 2000 05:12:40 -0800 Received: from [203.105.13.70] ([203.105.13.70]:34820 "EHLO dev1.cybatron.com") by oss.sgi.com with ESMTP id ; Thu, 14 Dec 2000 05:12:18 -0800 Received: from bigpurple.cybatron.com (IDENT:nobody@bigpurple.cybatron.com [203.105.13.71]) by dev1.cybatron.com (8.11.1/8.11.1) with SMTP id eBEDG8b24794 for ; Thu, 14 Dec 2000 21:16:09 +0800 Date: Thu, 14 Dec 2000 21:02:25 +0800 From: "Mike Wilson" To: info-inventor@oss.sgi.com Message-ID: <97679894500004ab7@bigpurple.cybatron.com> Subject: Compilation X-Mailer: Cybozu Web Mail 3.0 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing Dear Sir/Madam, firstly I wish to thank SGI for making OpenInventor Open Source. I used this libary for a year at Univeristy and really had some impressive results...but it was just to expensive for me to buy. The windows TGS (i think the comapny was called) was also way out of my ability, so when I founf it open sourced it was a real big thing to me. I have installed via RPM the system and all seems to be fine....I have some examples also from the tar. When I compile any of them I get errors finding "/Xm/Xm.h". Can someone help me complie a simple example...from ther I should be able to find my own way. All The Best Mike Wilson From owner-inventor@oss.sgi.com Thu Dec 14 05:30:20 2000 Received: by oss.sgi.com id ; Thu, 14 Dec 2000 05:29:59 -0800 Received: from snafu.phys.jyu.fi ([130.234.98.10]:17422 "EHLO mail.phys.jyu.fi") by oss.sgi.com with ESMTP id ; Thu, 14 Dec 2000 05:29:45 -0800 Received: from localhost (javu@localhost) by mail.phys.jyu.fi (8.10.2/8.10.2/NO UCE) with ESMTP id eBEDTRn12052; Thu, 14 Dec 2000 15:29:27 +0200 Date: Thu, 14 Dec 2000 15:29:27 +0200 (EET) From: Jari Vuoksenranta To: Mike Wilson cc: info-inventor@oss.sgi.com Subject: Re: Compilation In-Reply-To: <97679894500004ab7@bigpurple.cybatron.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing >I have installed via RPM the system and all seems to be fine....I have some examples also from the tar. > >When I compile any of them I get errors finding "/Xm/Xm.h". You may need to install lesstif-dev.rpm or motif-dev.rpm. (On my system "Xm.h" is at "/usr/include/X11/Xm/") From owner-inventor@oss.sgi.com Sat Dec 16 19:26:50 2000 Received: by oss.sgi.com id ; Sat, 16 Dec 2000 19:26:31 -0800 Received: from cardinal0.Stanford.EDU ([171.64.15.238]:6598 "EHLO cardinal0.Stanford.EDU") by oss.sgi.com with ESMTP id ; Sat, 16 Dec 2000 19:26:02 -0800 Received: from localhost (gildardo@localhost) by cardinal0.Stanford.EDU (8.9.3/8.9.3) with ESMTP id TAA10379 for ; Sat, 16 Dec 2000 19:25:56 -0800 (PST) X-Authentication-Warning: cardinal0.Stanford.EDU: gildardo owned process doing -bs Date: Sat, 16 Dec 2000 19:25:56 -0800 (PST) From: Gildardo Sanchez-Ante To: info-inventor@oss.sgi.com Subject: SoText2 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing Hi There! I am trying to compile Open Inventor on Mandrake 7.2. I downloaded using CVS and when i start the gmake, i got: SoText2.c++: In method `SbBool SoBitmapFontCache::convertToUCS(unsigned int, const SoMFString &)': SoText2.c++:780: passing `char **' as argument 2 of `iconv(void *, const char **, size_t *, char **, size_t *)' adds cv-quals without intervening `const' gmake[5]: *** [SoText2.o] Error 1 Any idea? Thanks! ------------------------------------------------------------------------ Gildardo Sanchez-Ante Stanford University Robotics Laboratory ------------------------------------------------------------------------ From owner-inventor@oss.sgi.com Sat Dec 16 20:52:41 2000 Received: by oss.sgi.com id ; Sat, 16 Dec 2000 20:52:21 -0800 Received: from cardinal0.Stanford.EDU ([171.64.15.238]:18377 "EHLO cardinal0.Stanford.EDU") by oss.sgi.com with ESMTP id ; Sat, 16 Dec 2000 20:51:58 -0800 Received: from localhost (gildardo@localhost) by cardinal0.Stanford.EDU (8.9.3/8.9.3) with ESMTP id UAA25632 for ; Sat, 16 Dec 2000 20:51:52 -0800 (PST) X-Authentication-Warning: cardinal0.Stanford.EDU: gildardo owned process doing -bs Date: Sat, 16 Dec 2000 20:51:52 -0800 (PST) From: Gildardo Sanchez-Ante To: info-inventor@oss.sgi.com Subject: implicit declaration Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing When i try to compile OI on Mandrake 7.2 with gcc version 2.95.3 i get SoText3.c++: In method `void SoOutlineFontCache::generateFrontChar(const char *, GLUtesselator *)': SoText3.c++:1949: implicit declaration of function `int gluBeginPolygon(...)' SoText3.c++:1958: implicit declaration of function `int gluNextContour(...)' SoText3.c++:1972: implicit declaration of function `int gluEndPolygon(...)' gmake[5]: *** [SoText3.o] Error 1 what am i doing wrong? Thanks! Gildardo Sanchez-Ante From owner-inventor@oss.sgi.com Mon Dec 18 07:50:08 2000 Received: by oss.sgi.com id ; Mon, 18 Dec 2000 07:49:47 -0800 Received: from mail01b.rapidsite.net ([207.158.192.229]:60220 "HELO mail01b.rapidsite.net") by oss.sgi.com with SMTP id ; Mon, 18 Dec 2000 07:49:25 -0800 Received: from www.mediascape.com (207.201.170.187) by mail01b.rapidsite.net (RS ver 1.0.58s) with SMTP id 08908498; Mon, 18 Dec 2000 10:49:11 -0500 (EST) Message-ID: <3A3E31FB.4B569432@mediascape.com> Date: Mon, 18 Dec 2000 10:49:15 -0500 From: "Joshua P. Dady" Organization: Mediascape Corporation X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 To: Gildardo Sanchez-Ante CC: info-inventor@oss.sgi.com Subject: Re: SoText2 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop-Detect: 1 Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing The code in question tries to convert a 'char **' to a 'const char **', which is an illegal conversion in C++ for const safety reasons (see the C++ FAQ), and the compiler on Mandrake 7.2 caught the error: char* input = (char *)strings[i].getString(); ... if ((iconv(conversionCode &input, &inbytes, ... This generates the error: SoText2.c++:780: passing `char **' as argument 2 of `iconv(void *, const char **, size_t *, char **, size_t *)' adds cv-quals without intervening `const' iconv() takes a "const char **" as its second argument. The fix is to change the declaration of 'input' to be 'const char *' (5 lines above the error). This adds the const qualifier to the 'char *' instead, which is a valid conversion. I haven't had the time to generate a patch for this, but make this change in SoText2.c++ and SoText3.c++ to fix the problem. -- Joshua P. Dady Ph: (248) 945-1100 Fax: (248) 945-1166 Mediascape Corporation http://www.mediascape.com/ From owner-inventor@oss.sgi.com Mon Dec 18 09:20:27 2000 Received: by oss.sgi.com id ; Mon, 18 Dec 2000 09:20:08 -0800 Received: from sgi.SGI.COM ([192.48.153.1]:4360 "EHLO sgi.com") by oss.sgi.com with ESMTP id ; Mon, 18 Dec 2000 09:20:01 -0800 Received: from nodin.corp.sgi.com ([198.29.75.193]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id JAA08875 for ; Mon, 18 Dec 2000 09:19:59 -0800 (PST) mail_from (jlim@kinabalu.csd.sgi.com) Received: from kinabalu.csd.sgi.com (kinabalu.csd.sgi.com [150.166.1.88]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id NAA05784 for ; Sun, 17 Dec 2000 13:34:58 -0800 (PST) Received: by kinabalu.csd.sgi.com (980427.SGI.8.8.8/911001.SGI) id NAA12326; Sun, 17 Dec 2000 13:31:45 -0800 (PST) From: jlim@kinabalu.csd.sgi.com (Jonathan Lim) Message-Id: <200012172131.NAA12326@kinabalu.csd.sgi.com> Subject: Re: SoText2 To: gildardo@stanford.edu (Gildardo Sanchez-Ante) Date: Sun, 17 Dec 2000 13:31:44 -0800 (PST) Cc: info-inventor@oss.sgi.com In-Reply-To: from "Gildardo Sanchez-Ante" at Dec 16, 2000 07:25:56 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing On Sat Dec 16 19:25:56 2000, gildardo@stanford.edu wrote: > > Hi There! > > I am trying to compile Open Inventor on Mandrake 7.2. I downloaded using > CVS and when i start the gmake, i got: > > SoText2.c++: In method `SbBool SoBitmapFontCache::convertToUCS(unsigned > int, const SoMFString &)': > SoText2.c++:780: passing `char **' as argument 2 of `iconv(void *, const > char **, size_t *, char **, size_t *)' adds cv-quals without intervening > `const' > gmake[5]: *** [SoText2.o] Error 1 The decision was made to leave 'const' out for the sake of getting it to compile on IRIX and other Linux distributions. I'm not going to touch that part of the code for yet another distribution. Jonathan Lim _ Silicon Graphics _ Mountain View GPS Graphics Computer Systems CA, USA From owner-inventor@oss.sgi.com Mon Dec 18 09:43:28 2000 Received: by oss.sgi.com id ; Mon, 18 Dec 2000 09:43:18 -0800 Received: from access-178.93.rev.fr.colt.net ([213.41.93.178]:16861 "EHLO nyctalop.visiospace.com") by oss.sgi.com with ESMTP id ; Mon, 18 Dec 2000 09:43:03 -0800 Received: from visiospace.com ([10.10.6.65]) by nyctalop.visiospace.com (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with ESMTP id eBIIiB410819 for ; Mon, 18 Dec 2000 19:44:11 +0100 X-Authentication-Warning: nyctalop.visiospace.com: Host [10.10.6.65] claimed to be visiospace.com Message-ID: <3A3E5AC1.2B33153C@visiospace.com> Date: Mon, 18 Dec 2000 19:43:13 +0100 From: Cyril ZEKSER X-Mailer: Mozilla 4.76 [fr] (X11; U; Linux 2.2.16-22smp i686) X-Accept-Language: fr MIME-Version: 1.0 To: info-inventor@oss.sgi.com Subject: Using Logicad3d Magellan Spacemouse XT Plus Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing Hi all, I want to use a Spacemouse from Logicad3d with OpenInventor. I've heard that a X driver using X input extension exists, but where ? However, if it doesn't exists, how can I connect to an application sending XEvent (type CLientMessage) that SoXt seems to ignore before I can apply a handling callback function on it. any ideas ? Cyril ZEKSER From owner-inventor@oss.sgi.com Mon Dec 18 13:52:11 2000 Received: by oss.sgi.com id ; Mon, 18 Dec 2000 13:52:01 -0800 Received: from sgi.SGI.COM ([192.48.153.1]:15117 "EHLO sgi.com") by oss.sgi.com with ESMTP id ; Mon, 18 Dec 2000 13:51:43 -0800 Received: from kinabalu.csd.sgi.com ([150.166.1.88]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id NAA09652 for ; Mon, 18 Dec 2000 13:51:42 -0800 (PST) mail_from (jlim@kinabalu.csd.sgi.com) Received: by kinabalu.csd.sgi.com (980427.SGI.8.8.8/911001.SGI) id NAA20239; Mon, 18 Dec 2000 13:49:45 -0800 (PST) From: jlim@kinabalu.csd.sgi.com (Jonathan Lim) Message-Id: <200012182149.NAA20239@kinabalu.csd.sgi.com> Subject: Re: implicit declaration To: gildardo@stanford.edu (Gildardo Sanchez-Ante) Date: Mon, 18 Dec 2000 13:49:45 -0800 (PST) Cc: info-inventor@oss.sgi.com In-Reply-To: from "Gildardo Sanchez-Ante" at Dec 16, 2000 08:51:52 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing On Sat Dec 16 20:51:52 2000, gildardo@stanford.edu wrote: > > When i try to compile OI on Mandrake 7.2 with gcc version 2.95.3 i get > SoText3.c++: In method `void SoOutlineFontCache::generateFrontChar(const > char *, GLUtesselator *)': > SoText3.c++:1949: implicit declaration of function `int > gluBeginPolygon(...)' > SoText3.c++:1958: implicit declaration of function `int > gluNextContour(...)' > SoText3.c++:1972: implicit declaration of function `int > gluEndPolygon(...)' > gmake[5]: *** [SoText3.o] Error 1 > > what am i doing wrong? > > Thanks! > > Gildardo Sanchez-Ante Fixed in latest revision. Let me know if there's anything else I may have missed. Jonathan Lim _ Silicon Graphics _ Mountain View GPS Graphics Computer Systems CA, USA From owner-inventor@oss.sgi.com Tue Dec 19 00:40:45 2000 Received: by oss.sgi.com id ; Tue, 19 Dec 2000 00:40:35 -0800 Received: from [153.97.152.21] ([153.97.152.21]:59931 "EHLO ernie") by oss.sgi.com with ESMTP id ; Tue, 19 Dec 2000 00:40:21 -0800 Received: (from stiller@localhost) by ernie (980427.SGI.8.8.8/980728.SGI.AUTOCF) id JAA12086 for info-inventor@oss.sgi.com; Tue, 19 Dec 2000 09:40:08 +0100 (MET) Date: Tue, 19 Dec 2000 09:40:08 +0100 (MET) From: stiller@ernie.sgi.com (Matthias Stiller) Message-Id: <10012190940.ZM11943@ernie> Reply-to: stiller@vrcom.de X-Mailer: Z-Mail (3.2.3 08feb96 MediaMail) To: info-inventor@oss.sgi.com Subject: Inquiring mind has a question Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing Hello together, I don't know if this question is specific to the open source version of inventor but I hope that someone here can answer it. I wonder why there are some restrictions in setting node names. For example Node names beginning with numbers are not allowed and will get changed, e.g. 4superbname will be changed to _4superbname. Furthermore characters like . and others are not allowed. Is there a special reason for this behaviour ? The problem for me is that I am getting these names directly from CAD-Files and I need the possibility to keep those names 100%. Is it possible to change this behaviour (maybe by setting an define _DONT_USE_NAMECONVENTION) Regards Matthias -- +-------------------------------+-------------------------------------+ | Matthias Stiller | fon: ++49-6151-30083-42 | | 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 | | +-------------------------------+-------------------------------------+ From owner-inventor@oss.sgi.com Tue Dec 19 10:16:15 2000 Received: by oss.sgi.com id ; Tue, 19 Dec 2000 10:16:05 -0800 Received: from pixar.pixar.com ([138.72.10.20]:2450 "EHLO pixar.pixar.com") by oss.sgi.com with ESMTP id ; Tue, 19 Dec 2000 10:16:02 -0800 Received: from zort.pixar.com (zort.pixar.com [138.72.11.247]) by pixar.pixar.com (8.9.3/8.9.3) with ESMTP id KAA23155; Tue, 19 Dec 2000 10:15:55 -0800 (PST) Received: from zort.pixar.com (localhost [127.0.0.1]) by zort.pixar.com (8.9.3/8.9.3) with ESMTP id KAA17393; Tue, 19 Dec 2000 10:15:55 -0800 (PST) Message-Id: <200012191815.KAA17393@zort.pixar.com> To: stiller@vrcom.de Cc: info-inventor@oss.sgi.com Subject: Re: Inquiring mind has a question Date: Tue, 19 Dec 2000 10:15:55 -0800 From: Paul Strauss Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing Matthias Stiller wrote: > I wonder why there are some restrictions in setting node names. For example > Node names beginning with numbers are not allowed and will get changed, e.g. > > 4superbname will be changed to _4superbname. > > Furthermore characters like . and others are not allowed. Is there a special > reason for this behaviour ? The restriction about not starting with a number is pretty standard for identifiers, isn't it? Any parsed language has to restrict its lexical tokens in some way. In the case of DEF names in Inventor, the following characters are meaningful to the parser and are not allowed: . + ' " \ { } For example, this is legal syntax for connecting a field from an engine output: translation = USE MyEngine.output If the name could contain a '.' , this would require lookahead to resolve. It's generally better to make some restrictions to keep the parser simple. ---- Paul S. Strauss pss@pixar.com Pixar From owner-inventor@oss.sgi.com Tue Dec 19 10:35:55 2000 Received: by oss.sgi.com id ; Tue, 19 Dec 2000 10:35:45 -0800 Received: from falk.ii.uib.no ([129.177.17.209]:42756 "EHLO vandrefalk.ii.uib.no") by oss.sgi.com with ESMTP id ; Tue, 19 Dec 2000 10:35:35 -0800 Received: from vandrefalk ([127.0.0.1] helo=ii.uib.no ident=pooh) by vandrefalk.ii.uib.no with esmtp (Exim 3.20 #1 (Debian)) id 148Rbt-0001JD-00 for ; Tue, 19 Dec 2000 19:35:38 +0100 Date: Tue, 19 Dec 2000 19:35:31 +0100 (CET) From: Ole-Morten Duesund Subject: Re: Inquiring mind has a question To: info-inventor@oss.sgi.com In-Reply-To: <10012190940.ZM11943@ernie> MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Message-Id: Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing On 19 Dec, Matthias Stiller wrote: > Hello together, > > I don't know if this question is specific to the open source version of > inventor but I hope that someone here can answer it. > > I wonder why there are some restrictions in setting node names. For example > Node names beginning with numbers are not allowed and will get changed, e.g. > I guess Paul Strauss' answer explains why there are restrictions on the name. > 4superbname will be changed to _4superbname. > > Furthermore characters like . and others are not allowed. Is there a special > reason for this behaviour ? > > The problem for me is that I am getting these names directly from CAD-Files and > I need the possibility to keep those names 100%. Is it possible to change this > behaviour (maybe by setting an define _DONT_USE_NAMECONVENTION) Sounds like you need SoInfo : ... DESCRIPTION This class defines a information node in the scene graph. This node has no effect during traversal. It is used to store information in the scene graph, typically for appli- cation-specific purposes, copyright messages, or other strings. This node differs from the SoLabel node in that it stores its information in an SbString instead of an SbName; the SbString is more efficient for storing long strings that don't have to be accessed very often. Use an SoLabel node for short strings that have to be accessed more often. ... -- Ole-Morten Duesund ---------------------------------------------------------------------- _______________________________________________________________________________ /\ \ \_| I used to have nightmares that the Grinch's dog would kidnap me and make me | | dress up in a halter-top and hot pants and listen to Burl Ives records. | | -- Robin, "Anything But Love", 12/18/91. | | __________________________________________________________________________|_ \_/____________________________________________________________________________/ From owner-inventor@oss.sgi.com Wed Dec 20 18:58:53 2000 Received: by oss.sgi.com id ; Wed, 20 Dec 2000 18:58:43 -0800 Received: from sgi.SGI.COM ([192.48.153.1]:43568 "EHLO sgi.com") by oss.sgi.com with ESMTP id ; Wed, 20 Dec 2000 18:58:34 -0800 Received: from kinabalu.csd.sgi.com ([150.166.1.88]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id SAA01432 for ; Wed, 20 Dec 2000 18:58:33 -0800 (PST) mail_from (jlim@kinabalu.csd.sgi.com) Received: by kinabalu.csd.sgi.com (980427.SGI.8.8.8/911001.SGI) for info-inventor@oss.sgi.com id SAA43234; Wed, 20 Dec 2000 18:56:51 -0800 (PST) From: jlim@kinabalu.csd.sgi.com (Jonathan Lim) Message-Id: <200012210256.SAA43234@kinabalu.csd.sgi.com> Subject: Updates To: info-inventor@oss.sgi.com Date: Wed, 20 Dec 2000 18:56:50 -0800 (PST) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing Hi all, I've uploaded new RPM and tar files incorporating the latest fixes in the tree to the FTP area. Please let me know if there are any problems. Thanks. Jonathan Lim _ Silicon Graphics _ Mountain View GPS Graphics Computer Systems CA, USA From owner-inventor@oss.sgi.com Fri Dec 29 03:56:25 2000 Received: by oss.sgi.com id ; Fri, 29 Dec 2000 03:56:15 -0800 Received: from access-178.93.rev.fr.colt.net ([213.41.93.178]:65326 "EHLO nyctalop.visiospace.com") by oss.sgi.com with ESMTP id ; Fri, 29 Dec 2000 03:55:58 -0800 Received: from visiospace.com ([10.10.6.65]) by nyctalop.visiospace.com (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with ESMTP id eBTCujp23365 for ; Fri, 29 Dec 2000 13:56:45 +0100 X-Authentication-Warning: nyctalop.visiospace.com: Host [10.10.6.65] claimed to be visiospace.com Message-ID: <3A4C8A25.C7ECB2C3@visiospace.com> Date: Fri, 29 Dec 2000 13:57:09 +0100 From: Cyril ZEKSER X-Mailer: Mozilla 4.76 [fr] (X11; U; Linux 2.2.16-22smp i686) X-Accept-Language: fr MIME-Version: 1.0 Newsgroups: comp.graphics.api.inventor To: info-inventor@oss.sgi.com Subject: Changing viewer ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-inventor@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;info-inventor-outgoing Hi all, I want to change my viewer on the Fly, by pressing a key. I want to switch from ExaminerViewer to FlyViewer. But that doesn't seem to work. ------------------------------------------------------------------------------------------------------------- Here's what I've coded : static SoXtExaminerViewer * myViewer = NULL; static SoXtFlyViewer * myFlyViewer = NULL; static Widget myWindow = NULL; // Callback func... SbBool myAppChangeViewerCB( void* userData, XAnyEvent* anyEvent) { SbBool handled = FALSE; SbBool fFlyViewer = myFlyViewer->isVisible(); XKeyEvent * pKeyEvent; cout << " Entering in the callback " << endl; // Switching depending on XEvent type switch (anyEvent->type) { case KeyPress: pKeyEvent = (XKeyEvent*) anyEvent; cout << " KeyPressed : " << pKeyEvent->keycode << " expecting " << 41 << endl; switch(pKeyEvent->keycode) { case 41: // hack to get directly the code for F key (I didn't find the correct define) if ( fFlyViewer ) { cout << " switching to Examiner " << endl; SoXt::hide( myWindow ); myFlyViewer->hide( ); myViewer->show(); SoXt::show( myWindow ); } else { cout << " switching to Fly " << endl; SoXt::hide( myWindow ); myViewer->hide(); myFlyViewer->show(); SoXt::show( myWindow ); } handled = TRUE; break; } break; default: break; } return handled; } // Main function int main(int argc, char *argv[] ) { ParseCmdLine(argc, argv); myWindow = SoXt::init( argv[0] ); if (myWindow==NULL) exit(-1); // SoXtRenderArea *myViewer = new SoXtRenderArea(myWindow); myViewer = new SoXtExaminerViewer( myWindow ); myViewer->setDecoration(FALSE); myViewer->setViewing(FALSE); myViewer->setPopupMenuEnabled( TRUE ); myViewer->setEventCallback( myAppChangeViewerCB, (void*)&myWindow ); // Creation 2nd viewer (FlyMode) myFlyViewer = new SoXtFlyViewer( myWindow ); myFlyViewer->setDecoration(FALSE); myFlyViewer->setTitle(argv[0]); myFlyViewer->setSceneGraph( gMonde.getRootNode() ); myFlyViewer->setEventCallback( myAppChangeViewerCB, (void*)&myWindow ); // this is for differentiating the 2 viewers... myViewer->setGLRenderAction( new SoLineHighlightRenderAction ); myFlyViewer->setGLRenderAction( new SoBoxHighlightRenderAction ); // Init World... ------------------------------------------------------------------------------------------------------------- In fact it seems that always the first viewer (myViewer) is hided then showed (same way of highlighting). What's wrong here ?? Regards Cyril ZEKSER VISIOSPACE.