From owner-info-inventor-dev@oss.sgi.com Fri Nov 2 05:10:01 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA2DA1H07720 for info-inventor-dev-outgoing; Fri, 2 Nov 2001 05:10:01 -0800 Received: from server-3.tower-17.messagelabs.com (mail17.messagelabs.com [62.231.131.67]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA2D9f007705 for ; Fri, 2 Nov 2001 05:09:51 -0800 X-VirusChecked: Checked Received: (qmail 24208 invoked from network); 2 Nov 2001 13:03:06 -0000 Received: from unknown (HELO nag.co.uk) (62.231.145.242) by server-3.tower-17.messagelabs.com with SMTP; 2 Nov 2001 13:03:06 -0000 Received: from penguin.nag.co.uk (IDENT:root@penguin.nag.co.uk [192.156.217.14]) by nag.co.uk (8.9.3/8.9.3) with ESMTP id NAA20053 for ; Fri, 2 Nov 2001 13:09:08 GMT Received: from nag.co.uk by penguin.nag.co.uk (8.9.3) id NAA24876; Fri, 2 Nov 2001 13:09:07 GMT Message-ID: <3BE29AF7.A99CBA71@nag.co.uk> Date: Fri, 02 Nov 2001 13:09:11 +0000 From: Mick Pont X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: info-inventor-dev@oss.sgi.com Subject: Open Inventor modifications to build under Linux on Intel Itanium platform Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk A colleague of mine, Silhacene Aid, needed to build Open Inventor under Linux on Intel Itanium, and did so successfully. Silhacene no longer works with me, but he asked me to try to find out whether the changes he made would be useful to feed back into the OIV source code. I append a README that Silhacene wrote, which gives brief details of the sorts of changes he made. Do they look to be more generally useful? I know that apart from building on the Itanium, the modified code was also tested on several other UNIX machines. Mick Pont Numerical Algorithms Group (NAG) Ltd, Oxford, UK mick@nag.co.uk This README file gives a brief summary of the changes made by NAG to the Open Source version of Open Inventor. The original source of Open Inventor to which modifications have been made is contained in inventor-2.1.5-7.src.tar.gz, available at ftp://oss.sgi.com/projects/inventor/download/ The main purpose of the modifications made to the source contained in inventor-2.1.5-7.src.tar.gz is to enable the code to compile more cleanly and to add support for 64-bit platforms (in particular the Linux Intel Itanium platform). The main modifications are : - Added IS_64BIT switch for 64-bit platforms. - Added switch GLU_TESS_VOID to take into account variants of function type in call to gluTessCallback. - Added NO_MENU_IN_OVERLAY_PLANES switch to disable overlay planes if necessary. This follows a suggestion from Steve Conolly (see the Inventor mailing lists at the SGI Web site.) - Added ICONV_BUG switch to account for a possible problem with the iconv library. - Made class destructors virtual whenever a class contains virtual functions. - Use of size_t instead of uint32_t or int. - Removed redefinition of NULL as 0. - Use of standard mathematical functions (e.g. sqrt, atan2 rather than sqrtf atan2f.) - Renaming of functions, macros or variables to avoid conflicts with system macros (e.g. abs -> oivabs, _ABS -> _OIVABS, dprintf -> oiv_d_printf.) - Moved definitions from header file mysetjmp.h to a new C++ file mysetjmp.c++. - Made variables 'const' where necessary. - Removed some unused variables. - Added standard header files where necessary (stdlib.h, unistd.h) - Replaced malloc.h by stdlib.h. - Replaced alloca by malloc. - Switched off use of dlopen in inventor/lib/database/src/so/SoType.c++ - Fixed sprintf/fprintf formats. - Removed hard-coded definitions and replaced them by inclusion of image.h header file in inventor/lib/database/src/so/SoOffscreenRenderer.c++ - Added support for Itanium in inventor/lib/database/include/machine.h - Broke up very long lines into shorter lines (SoHandleBoxDraggerGeom.h, SoTransformerDraggerGeom.h) since some compilers cannot handle them. - Replaced a fixed-length buffer by a call to malloc (in inventor/libFL/ang/fl.c) - Changed C++-style comments to C-style comments. The code has been successfully compiled on Linux Itanium using gcc 3.0 with the following compiler options : -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -Dlinux \ -D__USE_ISOC9X -ffast-math -DFUNCPROTO -DIS_64BIT \ -D_BSD_SOURCE -DNO_MENU_IN_OVERLAY_PLANES -DGLU_TESS_VOID \ -DICONV_BUG -DLIBRARYBUILD _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. From owner-info-inventor-dev@oss.sgi.com Fri Nov 2 08:01:19 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA2G1JR11313 for info-inventor-dev-outgoing; Fri, 2 Nov 2001 08:01:19 -0800 Received: from mail.disney.com (mail.disney.com [204.128.192.15]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA2G1A011310 for ; Fri, 2 Nov 2001 08:01:10 -0800 Received: from Hermes10.corp.disney.com (hermes10.corp.disney.com [153.7.110.102]) by mail.disney.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id fA2FxwQ14651 for ; Fri, 2 Nov 2001 07:59:59 -0800 (PST) Received: from [172.30.50.1] by hermes.corp.disney.com with ESMTP; Fri, 2 Nov 2001 08:00:18 -0800 Received: from plio.fan.fa.disney.com (plio.fan.fa.disney.com [153.7.118.2]) by pecos.fa.disney.com (8.11.3/8.11.3) with ESMTP id fA2G3k312687; Fri, 2 Nov 2001 08:03:46 -0800 (PST) Received: from annie.fan.fa.disney.com (annie.fan.fa.disney.com [172.30.228.143]) by plio.fan.fa.disney.com (8.9.2/8.9.2) with ESMTP id IAA05390; Fri, 2 Nov 2001 08:01:08 -0800 (PST) (envelope-from tamstorf@fa.disney.com) Date: Fri, 2 Nov 2001 08:01:07 -0800 From: Rasmus Tamstorf X-Sender: tamstorf@annie.fan.fa.disney.com To: Mick Pont cc: info-inventor-dev@oss.sgi.com Subject: Re: Open Inventor modifications to build under Linux on Intel Itaniumplatform In-Reply-To: <3BE29AF7.A99CBA71@nag.co.uk> Message-Id: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk On Fri, 2 Nov 2001, Mick Pont wrote: > > A colleague of mine, Silhacene Aid, needed to build Open Inventor > under Linux on Intel Itanium, and did so successfully. Silhacene no longer > works with me, but he asked me to try to find out whether the changes > he made would be useful to feed back into the OIV source code. I append > a README that Silhacene wrote, which gives brief details of the sorts > of changes he made. Do they look to be more generally useful? > I know that apart from building on the Itanium, the modified > code was also tested on several other UNIX machines. > > The main modifications are : > > - Added IS_64BIT switch for 64-bit platforms. > > - Added switch GLU_TESS_VOID to take into account variants > of function type in call to gluTessCallback. > > - Added NO_MENU_IN_OVERLAY_PLANES switch to disable overlay > planes if necessary. This follows a suggestion from > Steve Conolly (see the Inventor mailing lists at the > SGI Web site.) > > - Added ICONV_BUG switch to account for a possible problem > with the iconv library. This one has been discussed many a time, so I sure hope something gets done about it ! > - Made class destructors virtual whenever a class contains > virtual functions. > > - Use of size_t instead of uint32_t or int. > > - Removed redefinition of NULL as 0. > - Use of standard mathematical functions (e.g. sqrt, atan2 > rather than sqrtf atan2f.) This one is probably not a good idea for performance reasons. > - Renaming of functions, macros or variables to avoid conflicts > with system macros (e.g. abs -> oivabs, _ABS -> _OIVABS, > dprintf -> oiv_d_printf.) > > - Moved definitions from header file mysetjmp.h > to a new C++ file mysetjmp.c++. > > - Made variables 'const' where necessary. > > - Removed some unused variables. > > - Added standard header files where necessary (stdlib.h, > unistd.h) > > - Replaced malloc.h by stdlib.h. Some of the above have been fixed in the latest tar-ball. > - Replaced alloca by malloc. This, again, is not a good idea for performance reasons. 'alloca' is considered non-portable, but it is *sooo* much faster than malloc, that it's worth keeping it wherever possible. > - Switched off use of dlopen in > inventor/lib/database/src/so/SoType.c++ Why ? > - Fixed sprintf/fprintf formats. > > - Removed hard-coded definitions and replaced them by inclusion > of image.h header file in > inventor/lib/database/src/so/SoOffscreenRenderer.c++ > > - Added support for Itanium in > inventor/lib/database/include/machine.h > > - Broke up very long lines into shorter lines > (SoHandleBoxDraggerGeom.h, SoTransformerDraggerGeom.h) since > some compilers cannot handle them. Yay :-) I've requested this one too, but to no avail :-/ > - Replaced a fixed-length buffer by a call to malloc > (in inventor/libFL/ang/fl.c) > > - Changed C++-style comments to C-style comments. Why would that be necessary ? Rasmus ----------------------------------------------------------------------------- Rasmus.Tamstorf@disney.com "A problem worthy of attack, Walt Disney Feature Animation proves its worth by hitting back" Kumbel ----------------------------------------------------------------------------- From owner-info-inventor-dev@oss.sgi.com Fri Nov 2 09:39:04 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA2Hd4d12953 for info-inventor-dev-outgoing; Fri, 2 Nov 2001 09:39:04 -0800 Received: from mail17.messagelabs.com (mail17.messagelabs.com [62.231.131.67]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA2Hcr012934 for ; Fri, 2 Nov 2001 09:38:53 -0800 X-VirusChecked: Checked Received: (qmail 3710 invoked from network); 2 Nov 2001 17:29:30 -0000 Received: from unknown (HELO nag.co.uk) (62.231.145.242) by server-10.tower-17.messagelabs.com with SMTP; 2 Nov 2001 17:29:30 -0000 Received: from penguin.nag.co.uk (IDENT:root@penguin.nag.co.uk [192.156.217.14]) by nag.co.uk (8.9.3/8.9.3) with ESMTP id RAA26367; Fri, 2 Nov 2001 17:36:50 GMT Received: from nag.co.uk by penguin.nag.co.uk (8.9.3) id RAA26391; Fri, 2 Nov 2001 17:36:45 GMT Message-ID: <3BE2D9B4.FCD5D440@nag.co.uk> Date: Fri, 02 Nov 2001 17:36:52 +0000 From: Mick Pont X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Rasmus Tamstorf CC: info-inventor-dev@oss.sgi.com Subject: Re: Open Inventor modifications to build under Linux on Intel Itaniumplatform References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk Rasmus Tamstorf wrote: > > On Fri, 2 Nov 2001, Mick Pont wrote: > > > > > A colleague of mine, Silhacene Aid, needed to build Open Inventor > > under Linux on Intel Itanium, and did so successfully. Silhacene no longer > > works with me, but he asked me to try to find out whether the changes > > he made would be useful to feed back into the OIV source code. I append > > a README that Silhacene wrote, which gives brief details of the sorts > > of changes he made. Do they look to be more generally useful? > > I know that apart from building on the Itanium, the modified > > code was also tested on several other UNIX machines. > > > > The main modifications are : > > > > - Added IS_64BIT switch for 64-bit platforms. > > > > - Added switch GLU_TESS_VOID to take into account variants > > of function type in call to gluTessCallback. > > > > - Added NO_MENU_IN_OVERLAY_PLANES switch to disable overlay > > planes if necessary. This follows a suggestion from > > Steve Conolly (see the Inventor mailing lists at the > > SGI Web site.) > > > > - Added ICONV_BUG switch to account for a possible problem > > with the iconv library. > > This one has been discussed many a time, so I sure hope something gets > done about it ! > > > - Made class destructors virtual whenever a class contains > > virtual functions. > > > > - Use of size_t instead of uint32_t or int. > > > > - Removed redefinition of NULL as 0. > > > - Use of standard mathematical functions (e.g. sqrt, atan2 > > rather than sqrtf atan2f.) > > This one is probably not a good idea for performance reasons. I think that Silhacene replaced them because the f versions don't always exist. Some machines define them as macros, sometimes they have different names. Do you think using sqrt instead of sqrtf really makes that big a difference to performance? > > > - Renaming of functions, macros or variables to avoid conflicts > > with system macros (e.g. abs -> oivabs, _ABS -> _OIVABS, > > dprintf -> oiv_d_printf.) > > > > - Moved definitions from header file mysetjmp.h > > to a new C++ file mysetjmp.c++. > > > > - Made variables 'const' where necessary. > > > > - Removed some unused variables. > > > > - Added standard header files where necessary (stdlib.h, > > unistd.h) > > > > - Replaced malloc.h by stdlib.h. > > Some of the above have been fixed in the latest tar-ball. > > > - Replaced alloca by malloc. > > This, again, is not a good idea for performance reasons. 'alloca' is > considered non-portable, but it is *sooo* much faster than malloc, that > it's worth keeping it wherever possible. At NAG we've been severely burned by code which used alloca, and wasted plenty of time tracking down the cause. I don't know if Silhacene had specifically run into problems with alloca in Open Inventor, or just replaced it to avoid possible problems. > > > - Switched off use of dlopen in > > inventor/lib/database/src/so/SoType.c++ > > Why ? I guess for portability. > > > - Fixed sprintf/fprintf formats. > > > > - Removed hard-coded definitions and replaced them by inclusion > > of image.h header file in > > inventor/lib/database/src/so/SoOffscreenRenderer.c++ > > > > - Added support for Itanium in > > inventor/lib/database/include/machine.h > > > > - Broke up very long lines into shorter lines > > (SoHandleBoxDraggerGeom.h, SoTransformerDraggerGeom.h) since > > some compilers cannot handle them. > > Yay :-) I've requested this one too, but to no avail :-/ > > > - Replaced a fixed-length buffer by a call to malloc > > (in inventor/libFL/ang/fl.c) > > > > - Changed C++-style comments to C-style comments. > > Why would that be necessary ? Some C compilers just won't compile C++ style "//" comments! Mick mick@nag.co.uk _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. From owner-info-inventor-dev@oss.sgi.com Fri Nov 2 13:12:23 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA2LCNi17831 for info-inventor-dev-outgoing; Fri, 2 Nov 2001 13:12:23 -0800 Received: from cvap57.nada.kth.se (cvap57.nada.kth.se [130.237.218.179]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA2LCI017828 for ; Fri, 2 Nov 2001 13:12:18 -0800 Received: from localhost (amiller@localhost) by cvap57.nada.kth.se (8.9.3+Sun/8.9.3) with ESMTP id WAA11804 for ; Fri, 2 Nov 2001 22:12:15 +0100 (MET) X-Authentication-Warning: cvap57.nada.kth.se: amiller owned process doing -bs Date: Fri, 2 Nov 2001 22:12:15 +0100 (MET) From: Andrew Miller To: Subject: popup menu partially works? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk I apologize for my earlier post on overlays. I've since found out that only a few PC graphics cards support 24+8 visuals and NVIDIA isn't one of them. When I run ivview (or any other app with a FullViewer) I find that the popup menu works as long as I select something from one of the submenus. If I chose Headlight for instance, or I release the mouse outside of the menu, the menu disappears but I can never get it to come up again with another right click. Adding a printf to SoXtFullViewer::popMenuCallback, I see that it isn't called anymore. I've done some digging in LessTif but I can't find the source of this problem, and their popup menu tests work as they should. Has anyone else seen this problem? Thanks for your time, -Andrew Miller Royal Institute of Technology (KTH) Stockholm, Sweden From owner-info-inventor-dev@oss.sgi.com Sat Nov 3 04:09:07 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fA3C97U32577 for info-inventor-dev-outgoing; Sat, 3 Nov 2001 04:09:07 -0800 Received: from ics.com (ics.com [216.112.183.3]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fA3C8w032573 for ; Sat, 3 Nov 2001 04:08:58 -0800 Received: from ics.com (ics.com [216.112.183.3]) by ics.com (8.9.0.Beta5/8.9.0.Beta5) with ESMTP id HAA16543 Sat, 3 Nov 2001 07:08:48 -0500 (EST) Message-ID: <3BE3DE4E.C7DE3449@ics.com> Date: Sat, 03 Nov 2001 07:08:46 -0500 From: Robert Hartley Organization: Integrated Computer Solutions (ICS) X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3-20mdksmp i686) X-Accept-Language: en MIME-Version: 1.0 To: info-inventor-dev@oss.sgi.com Subject: Re: popup menu partially works? References: Content-Type: multipart/mixed; boundary="------------4C844DBFA7EFD9D516FD9C20" Sender: owner-info-inventor-dev@oss.sgi.com Precedence: bulk This is a multi-part message in MIME format. --------------4C844DBFA7EFD9D516FD9C20 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Good morning, I prefer using OpenMotif on Linux, a real Motif available in source and binary form for free. Are you bound to using Lesstiff specifically? If not, then you might want to download Motif from: http://www.motifzone.net/download/ Best of luck, Robbo Andrew Miller wrote: > I apologize for my earlier post on overlays. I've since found out > that only a few PC graphics cards support 24+8 visuals and NVIDIA isn't > one of them. > > When I run ivview (or any other app with a FullViewer) I find that > the popup menu works as long as I select something from one of the > submenus. If I chose Headlight for instance, or I release the mouse > outside of the menu, the menu disappears but I can never get it to > come up again with another right click. Adding a printf to > SoXtFullViewer::popMenuCallback, I see that it isn't called anymore. > > I've done some digging in LessTif but I can't find the source of this > problem, and their popup menu tests work as they should. Has anyone > else seen this problem? > > Thanks for your time, > -Andrew Miller > > Royal Institute of Technology (KTH) > Stockholm, Sweden --------------4C844DBFA7EFD9D516FD9C20 Content-Type: text/x-vcard; charset=us-ascii; name="rhartley.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Robert Hartley Content-Disposition: attachment; filename="rhartley.vcf" begin:vcard n:Hartley;Robert tel;fax:617-621-9555 tel;work:617-621-0060 x-mozilla-html:TRUE url:http://www.ics.com org:Integrated Computer Solutions (ICS);Engineering version:2.1 email;internet:robert.hartley@ics.com title:Systems Engineer adr;quoted-printable:;;Sixth Floor=0D=0A201 Broadway;Cambridge;MA;02139;USA x-mozilla-cpt:;28128 fn:Robert Hartley end:vcard --------------4C844DBFA7EFD9D516FD9C20--