From bram@sara.nl Fri Feb 3 08:36:03 2006 Received: with ECARTIS (v1.0.0; list info-inventor-dev); Fri, 03 Feb 2006 08:36:05 -0800 (PST) Received: from amsfep15-int.chello.nl (amsfep15-int.chello.nl [213.46.243.27]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k13Ga1m2007053 for ; Fri, 3 Feb 2006 08:36:02 -0800 Received: from [192.168.192.8] (really [24.132.25.216]) by amsfep15-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20060203153828.GMEE1795.amsfep15-int.chello.nl@[192.168.192.8]> for ; Fri, 3 Feb 2006 16:38:28 +0100 Message-ID: <43E37955.9010207@sara.nl> Date: Fri, 03 Feb 2006 16:40:05 +0100 From: Bram Stolk User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: info-inventor-dev@oss.sgi.com Subject: SoVertexProperty bug? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-archive-position: 193 X-ecartis-version: Ecartis v1.0.0 Sender: info-inventor-dev-bounce@oss.sgi.com Errors-to: info-inventor-dev-bounce@oss.sgi.com X-original-sender: bram@sara.nl Precedence: bulk X-list: info-inventor-dev Hello, I think I have encountered a bug in OpenInventor. When SoVertexProperty is in a Group node, instead of TriangleStripSet, the rendering can be compromised, and I then get this message from mesa: Mesa: _save_upgrade_vertex: dangling reference attr 2 The inventor manual page on SoVertexProperty says: "An SoVertexProperty node can be used as a child of a group node in a scene graph, in which case the properties it specifies are inherited by subsequent shape nodes in the graph. It can also be directly referenced as the VertexProperty SoSFField of a vertex-based shape, bypassing scene graph inheritance." Yet, ivview will generate the mesa error, once I start rotating the model if I use this model (fail.iv): #Inventor V2.1 ascii Group { SoVertexProperty { materialBinding OVERALL normalBinding PER_FACE vertex [ 13.000000 17.000000 -2.000000, 13.000000 13.000000 -2.000000, 13.000000 13.000000 2.000000, 17.000000 13.000000 -2.000000, 17.000000 13.000000 2.000000, 17.000000 17.000000 2.000000, 13.000000 13.000000 2.000000, 13.000000 17.000000 2.000000, 13.000000 17.000000 -2.000000, 17.000000 17.000000 2.000000, 17.000000 17.000000 -2.000000, 17.000000 13.000000 -2.000000, 13.000000 17.000000 -2.000000, 13.000000 13.000000 -2.000000, ] normal [ -1.000000 0.000000 0.000000, 0.000000 -1.000000 0.000000, 0.000000 -1.000000 0.000000, 1.000000 0.000000 0.000000, 0.000000 0.000000 1.000000, 0.000000 0.000000 1.000000, -1.000000 0.000000 0.000000, 0.000000 1.000000 0.000000, 0.000000 1.000000 0.000000, 1.000000 0.000000 0.000000, 0.000000 0.000000 -1.000000, 0.000000 0.000000 -1.000000, ] } TriangleStripSet { startIndex 0 numVertices [14, ] } } whereas this model (ok.iv) is OK: #Inventor V2.1 ascii Group { TriangleStripSet { vertexProperty VertexProperty { materialBinding OVERALL normalBinding PER_FACE vertex [ 13.000000 17.000000 -2.000000, 13.000000 13.000000 -2.000000, 13.000000 13.000000 2.000000, 17.000000 13.000000 -2.000000, 17.000000 13.000000 2.000000, 17.000000 17.000000 2.000000, 13.000000 13.000000 2.000000, 13.000000 17.000000 2.000000, 13.000000 17.000000 -2.000000, 17.000000 17.000000 2.000000, 17.000000 17.000000 -2.000000, 17.000000 13.000000 -2.000000, 13.000000 17.000000 -2.000000, 13.000000 13.000000 -2.000000, ] normal [ -1.000000 0.000000 0.000000, 0.000000 -1.000000 0.000000, 0.000000 -1.000000 0.000000, 1.000000 0.000000 0.000000, 0.000000 0.000000 1.000000, 0.000000 0.000000 1.000000, -1.000000 0.000000 0.000000, 0.000000 1.000000 0.000000, 0.000000 1.000000 0.000000, 1.000000 0.000000 0.000000, 0.000000 0.000000 -1.000000, 0.000000 0.000000 -1.000000, ] } startIndex 0 numVertices [14, ] } } This is on Debian on ia32 with inventor packages version 2.1.5-10-7 Bram From qiu@jhu.edu Tue Feb 28 22:13:17 2006 Received: with ECARTIS (v1.0.0; list info-inventor-dev); Tue, 28 Feb 2006 22:13:27 -0800 (PST) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [216.148.227.153]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k216DHm2026492 for ; Tue, 28 Feb 2006 22:13:17 -0800 Received: from hserv.fangtu.com ([69.251.113.118]) by comcast.net (rwcrmhc13) with ESMTP id <20060301050252m13002jl5ae>; Wed, 1 Mar 2006 05:02:52 +0000 Received: from [192.168.1.9] (wifi.fangtu.com. [192.168.1.5]) (authenticated bits=0) by hserv.fangtu.com (8.13.4/8.13.4) with ESMTP id k2152puS000543 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 1 Mar 2006 00:02:52 -0500 Message-ID: <44052AF8.8070004@jhu.edu> Date: Wed, 01 Mar 2006 00:02:48 -0500 From: Fangtu Qiu User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: info-inventor-dev@oss.sgi.com Subject: Re: Re: undefined reference to `__ctype_b' References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-archive-position: 194 X-ecartis-version: Ecartis v1.0.0 Sender: info-inventor-dev-bounce@oss.sgi.com Errors-to: info-inventor-dev-bounce@oss.sgi.com X-original-sender: qiu@jhu.edu Precedence: bulk X-list: info-inventor-dev In Fedora Core 3 (4 ?), we are not allowed to #include directly. I made the following patch which allowed me to successfully make rpm packages from the current CVS source tree version 2.1.5-11. After applying the patch, enter sub dir "build" and type "make rpms". Fangtu diff -Nur inventor.orig/libFL/ang/flfreetype.h inventor/libFL/ang/flfreetype.h --- inventor.orig/libFL/ang/flfreetype.h 2001-03-23 21:34:24.000000000 -0500 +++ inventor/libFL/ang/flfreetype.h 2006-02-28 20:37:18.000000000 -0500 @@ -1,7 +1,8 @@ #ifndef __flfreetype_h_ #define __flfreetype_h_ -#include +#include +#include FT_FREETYPE_H #ifndef __fl_h_ #include "fl.h" diff -Nur inventor.orig/libFL/GNUmakefile inventor/libFL/GNUmakefile --- inventor.orig/libFL/GNUmakefile 2001-05-17 16:57:20.000000000 -0400 +++ inventor/libFL/GNUmakefile 2006-02-28 20:35:24.000000000 -0500 @@ -3,7 +3,7 @@ SUBDIRS = src ifdef FREETYPE -SUBDIRS = freetype +SUBDIRS = ang endif all install: link Mark Goodwin wrote: > On Mon, 24 May 2004, Gildardo Sanchez wrote: > >> I just upgraded my computer to Fedora Core 2. However, when I tried to >> compile inventor-2.1.5-10, I got the error: >> /usr/bin/g++ -L/usr/local///usr/lib -L/usr/X11R6/lib Main.o >> ClassDef.o Man.o Reader.o Writer.o BuildIssues.o -lInventor >> -o ivman >> /usr/local///usr/lib/libInventor.so: undefined reference to `__ctype_b' >> >> I saw some comments regarding this problem, but still cannot compile. >> Does anybody how to get OpenInventor working when this happens? >> > > The problem is libFL.a was built with gcc 2.96 / glibc 2.2.x. The following > patch works for ia64 RH/AS3.x, and will quite likely work on recent fedora > on i386 too. After applying the patch, "make rpms" should now produce both > binary and src RPMs. > > -- Mark > > > diff -uNr inventor.orig/GNUmakefile inventor/GNUmakefile > --- inventor.orig/GNUmakefile Sat Mar 24 13:47:41 2001 > +++ inventor/GNUmakefile Wed May 19 14:42:27 2004 > @@ -23,5 +23,5 @@ > su -c "cp -f ../$(TARBALL) /usr/src/redhat/SOURCES" > > for s in $(SPECS); do \ > - (su -c "cd build; rpm -bb $$s") \ > + (su -c "cd build; rpmbuild -ba $$s") \ > done; > diff -uNr inventor.orig/build/sgi-OpenInventor-clients.rpm.spec inventor/build/sgi-OpenInventor-clients.rpm.spec > --- inventor.orig/build/sgi-OpenInventor-clients.rpm.spec Fri Oct 6 05:33:20 2000 > +++ inventor/build/sgi-OpenInventor-clients.rpm.spec Thu May 20 13:57:23 2004 > @@ -5,6 +5,10 @@ > Packager: Silicon Graphics, Inc. > Source: oiv.tar.gz > > +BuildRoot: %{_tmppath}/sgi-OpenInventor-root > +%define _unpackaged_files_terminate_build 0 > +%define _missing_doc_files_terminate_build 0 > + > # > # Change the following as appropriate. > # > @@ -41,8 +45,10 @@ > %setup -n inventor > > %build > -make clobber > -make install > +R=/var/tmp/sgi-OpenInventor-root > +rm -rf $R > +make IVROOT=$R clobber > +make IVROOT=$R install > > %post > type1=/usr/lib/X11/fonts/Type1 > diff -uNr inventor.orig/build/sgi-OpenInventor-data.rpm.spec inventor/build/sgi-OpenInventor-data.rpm.spec > --- inventor.orig/build/sgi-OpenInventor-data.rpm.spec Mon Sep 18 19:01:03 2000 > +++ inventor/build/sgi-OpenInventor-data.rpm.spec Thu May 20 13:57:32 2004 > @@ -5,6 +5,10 @@ > Packager: Silicon Graphics, Inc. > Source: oiv.tar.gz > > +BuildRoot: %{_tmppath}/sgi-OpenInventor-root > +%define _unpackaged_files_terminate_build 0 > +%define _missing_doc_files_terminate_build 0 > + > # > # Change the following as appropriate. > # > @@ -41,7 +45,10 @@ > > %build > export LSUBDIRS=data > -make -e install > +R=/var/tmp/sgi-OpenInventor-root > +rm -rf $R > +make IVROOT=$R clobber > +make IVROOT=$R -e install > > %files > %attr(-, root, root) %dir /usr/share/data > diff -uNr inventor.orig/build/sgi-OpenInventor-devel.rpm.spec inventor/build/sgi-OpenInventor-devel.rpm.spec > --- inventor.orig/build/sgi-OpenInventor-devel.rpm.spec Fri Oct 6 05:33:20 2000 > +++ inventor/build/sgi-OpenInventor-devel.rpm.spec Thu May 20 13:57:40 2004 > @@ -5,6 +5,10 @@ > Packager: Silicon Graphics, Inc. > Source: oiv.tar.gz > > +BuildRoot: %{_tmppath}/sgi-OpenInventor-root > +%define _unpackaged_files_terminate_build 0 > +%define _missing_doc_files_terminate_build 0 > + > # > # Change the following as appropriate. > # > @@ -43,8 +47,10 @@ > > %build > export LIBTYPE=debug > -make clobber > -make install > +R=/var/tmp/sgi-OpenInventor-root > +rm -rf $R > +make IVROOT=$R clobber > +make IVROOT=$R install > > %post > type1=/usr/lib/X11/fonts/Type1 > diff -uNr inventor.orig/libFL/GNUmakefile inventor/libFL/GNUmakefile > --- inventor.orig/libFL/GNUmakefile Fri May 18 06:57:20 2001 > +++ inventor/libFL/GNUmakefile Thu May 20 10:37:59 2004 > @@ -3,7 +3,7 @@ > > SUBDIRS = src > ifdef FREETYPE > -SUBDIRS = freetype > +SUBDIRS = ang > endif > > all install: link > diff -uNr inventor.orig/make/ivcommonrules inventor/make/ivcommonrules > --- inventor.orig/make/ivcommonrules Sat Jul 12 08:40:54 2003 > +++ inventor/make/ivcommonrules Thu May 20 14:53:59 2004 > @@ -53,7 +53,7 @@ > .SUFFIXES: .ivm .3iv > > .ivm.3iv: > - (cd .. && $(IVMAN) `$(MAKEMANDIRS) $(*F)`) > $@ > + (cd .. && LD_LIBRARY_PATH=$(IVLIBDIR):DEFAULT $(IVMAN) `$(MAKEMANDIRS) $(*F)`) > $@ > > MAN3PAGES = $(IVMFILES:.ivm=.3iv) > > diff -uNr inventor.orig/make/system inventor/make/system > --- inventor.orig/make/system Sat Jul 12 08:40:54 2003 > +++ inventor/make/system Fri May 21 12:10:15 2004 > @@ -11,6 +11,7 @@ > > ifneq (, $(findstring linux, $(UNAME))) > usingLinux = 1 > +FREETYPE = 1 > endif > > ifneq (, $(findstring freebsd, $(UNAME))) > > > >