Hi Patric,
looking at the code, I believe the attached patch is necessary, however
I'm surprised it ever worked without it. On my linux box I can not
reproduce the error by adding a #define OSG_NO_INT8_PNT to OSGConfig.h,
so I'd like to ask you if the patch helps with your build?
Thanks,
Carsten
On Mon, 2007-08-20 at 11:46 +0200, Patric Schmitz wrote:
> Hey there again,
>
> i am getting similar errors (i believe) as at the end of 2005 when i
> struggled with building the 1.6 version on Solaris 2.9. Dirk fixed them
> quickly the last time, i hope it will be possible this time, too.
>
> (http://www.mail-archive.com/[email protected]/msg04157.html)
>
> I get the error(s)
> .../OpenSG/Source/System/NodeCores/Drawables/Geometry/OSGGeometry.cpp",
> line 2204: Error: GeoNormals3bPtr is not defined.
>
> in the line where the "copyAllAttrib" macro is used.
>
> kind regards,
> Patric
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________ Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
Index: Source/System/NodeCores/Drawables/Geometry/OSGGeometry.cpp
===================================================================
RCS file: /cvsroot/opensg/OpenSG/Source/System/NodeCores/Drawables/Geometry/OSGGeometry.cpp,v
retrieving revision 1.44
diff -u -r1.44 OSGGeometry.cpp
--- Source/System/NodeCores/Drawables/Geometry/OSGGeometry.cpp 1 Aug 2007 14:43:22 -0000 1.44
+++ Source/System/NodeCores/Drawables/Geometry/OSGGeometry.cpp 20 Aug 2007 16:56:49 -0000
@@ -2126,69 +2126,139 @@
} \
}
-#define copyAllAttrib \
-{ \
- copyAttrib(pos, Positions2f, Positions) \
- copyAttrib(pos, Positions3f, Positions) \
- copyAttrib(pos, Positions4f, Positions) \
- copyAttrib(pos, Positions2d, Positions) \
- copyAttrib(pos, Positions3d, Positions) \
- copyAttrib(pos, Positions4d, Positions) \
- copyAttrib(pos, Positions2s, Positions) \
- copyAttrib(pos, Positions3s, Positions) \
- copyAttrib(pos, Positions4s, Positions) \
- copyAttrib(type, PTypesUI8, Types) \
- copyAttrib(length, PLengthsUI8, Lengths) \
- copyAttrib(length, PLengthsUI16, Lengths) \
- copyAttrib(length, PLengthsUI32, Lengths) \
- copyAttrib(normal, Normals3f, Normals) \
- copyAttrib(normal, Normals3s, Normals) \
- copyAttrib(normal, Normals3b, Normals) \
- copyAttrib(color, Colors3f, Colors) \
- copyAttrib(color, Colors4f, Colors) \
- copyAttrib(color, Colors3ub, Colors) \
- copyAttrib(color, Colors4ub, Colors) \
- copyAttrib(seccolor, Colors3f, SecondaryColors) \
- copyAttrib(seccolor, Colors4f, SecondaryColors) \
- copyAttrib(seccolor, Colors3ub, SecondaryColors) \
- copyAttrib(seccolor, Colors4ub, SecondaryColors) \
- copyAttrib(texcoord, TexCoords1f, TexCoords) \
- copyAttrib(texcoord, TexCoords2f, TexCoords) \
- copyAttrib(texcoord, TexCoords3f, TexCoords) \
- copyAttrib(texcoord, TexCoords4f, TexCoords) \
- copyAttrib(texcoord1, TexCoords1f, TexCoords1) \
- copyAttrib(texcoord1, TexCoords2f, TexCoords1) \
- copyAttrib(texcoord1, TexCoords3f, TexCoords1) \
- copyAttrib(texcoord1, TexCoords4f, TexCoords1) \
- copyAttrib(texcoord2, TexCoords1f, TexCoords2) \
- copyAttrib(texcoord2, TexCoords2f, TexCoords2) \
- copyAttrib(texcoord2, TexCoords3f, TexCoords2) \
- copyAttrib(texcoord2, TexCoords4f, TexCoords2) \
- copyAttrib(texcoord3, TexCoords1f, TexCoords3) \
- copyAttrib(texcoord3, TexCoords2f, TexCoords3) \
- copyAttrib(texcoord3, TexCoords3f, TexCoords3) \
- copyAttrib(texcoord3, TexCoords4f, TexCoords3) \
- copyAttrib(texcoord4, TexCoords1f, TexCoords4) \
- copyAttrib(texcoord4, TexCoords2f, TexCoords4) \
- copyAttrib(texcoord4, TexCoords3f, TexCoords4) \
- copyAttrib(texcoord4, TexCoords4f, TexCoords4) \
- copyAttrib(texcoord5, TexCoords1f, TexCoords5) \
- copyAttrib(texcoord5, TexCoords2f, TexCoords5) \
- copyAttrib(texcoord5, TexCoords3f, TexCoords5) \
- copyAttrib(texcoord5, TexCoords4f, TexCoords5) \
- copyAttrib(texcoord6, TexCoords1f, TexCoords6) \
- copyAttrib(texcoord6, TexCoords2f, TexCoords6) \
- copyAttrib(texcoord6, TexCoords3f, TexCoords6) \
- copyAttrib(texcoord6, TexCoords4f, TexCoords6) \
- copyAttrib(texcoord7, TexCoords1f, TexCoords7) \
- copyAttrib(texcoord7, TexCoords2f, TexCoords7) \
- copyAttrib(texcoord7, TexCoords3f, TexCoords7) \
- copyAttrib(texcoord7, TexCoords4f, TexCoords7) \
- beginEditCP((GeometryPtr)this); \
- setDlistCache(other->getDlistCache()); \
- setVbo(other->getVbo()); \
- endEditCP((GeometryPtr)this); \
-}
+#ifndef OSG_NO_INT8_PNT
+
+ #define copyAllAttrib \
+ { \
+ copyAttrib(pos, Positions2f, Positions) \
+ copyAttrib(pos, Positions3f, Positions) \
+ copyAttrib(pos, Positions4f, Positions) \
+ copyAttrib(pos, Positions2d, Positions) \
+ copyAttrib(pos, Positions3d, Positions) \
+ copyAttrib(pos, Positions4d, Positions) \
+ copyAttrib(pos, Positions2s, Positions) \
+ copyAttrib(pos, Positions3s, Positions) \
+ copyAttrib(pos, Positions4s, Positions) \
+ copyAttrib(type, PTypesUI8, Types) \
+ copyAttrib(length, PLengthsUI8, Lengths) \
+ copyAttrib(length, PLengthsUI16, Lengths) \
+ copyAttrib(length, PLengthsUI32, Lengths) \
+ copyAttrib(normal, Normals3f, Normals) \
+ copyAttrib(normal, Normals3s, Normals) \
+ copyAttrib(normal, Normals3b, Normals) \
+ copyAttrib(color, Colors3f, Colors) \
+ copyAttrib(color, Colors4f, Colors) \
+ copyAttrib(color, Colors3ub, Colors) \
+ copyAttrib(color, Colors4ub, Colors) \
+ copyAttrib(seccolor, Colors3f, SecondaryColors) \
+ copyAttrib(seccolor, Colors4f, SecondaryColors) \
+ copyAttrib(seccolor, Colors3ub, SecondaryColors) \
+ copyAttrib(seccolor, Colors4ub, SecondaryColors) \
+ copyAttrib(texcoord, TexCoords1f, TexCoords) \
+ copyAttrib(texcoord, TexCoords2f, TexCoords) \
+ copyAttrib(texcoord, TexCoords3f, TexCoords) \
+ copyAttrib(texcoord, TexCoords4f, TexCoords) \
+ copyAttrib(texcoord1, TexCoords1f, TexCoords1) \
+ copyAttrib(texcoord1, TexCoords2f, TexCoords1) \
+ copyAttrib(texcoord1, TexCoords3f, TexCoords1) \
+ copyAttrib(texcoord1, TexCoords4f, TexCoords1) \
+ copyAttrib(texcoord2, TexCoords1f, TexCoords2) \
+ copyAttrib(texcoord2, TexCoords2f, TexCoords2) \
+ copyAttrib(texcoord2, TexCoords3f, TexCoords2) \
+ copyAttrib(texcoord2, TexCoords4f, TexCoords2) \
+ copyAttrib(texcoord3, TexCoords1f, TexCoords3) \
+ copyAttrib(texcoord3, TexCoords2f, TexCoords3) \
+ copyAttrib(texcoord3, TexCoords3f, TexCoords3) \
+ copyAttrib(texcoord3, TexCoords4f, TexCoords3) \
+ copyAttrib(texcoord4, TexCoords1f, TexCoords4) \
+ copyAttrib(texcoord4, TexCoords2f, TexCoords4) \
+ copyAttrib(texcoord4, TexCoords3f, TexCoords4) \
+ copyAttrib(texcoord4, TexCoords4f, TexCoords4) \
+ copyAttrib(texcoord5, TexCoords1f, TexCoords5) \
+ copyAttrib(texcoord5, TexCoords2f, TexCoords5) \
+ copyAttrib(texcoord5, TexCoords3f, TexCoords5) \
+ copyAttrib(texcoord5, TexCoords4f, TexCoords5) \
+ copyAttrib(texcoord6, TexCoords1f, TexCoords6) \
+ copyAttrib(texcoord6, TexCoords2f, TexCoords6) \
+ copyAttrib(texcoord6, TexCoords3f, TexCoords6) \
+ copyAttrib(texcoord6, TexCoords4f, TexCoords6) \
+ copyAttrib(texcoord7, TexCoords1f, TexCoords7) \
+ copyAttrib(texcoord7, TexCoords2f, TexCoords7) \
+ copyAttrib(texcoord7, TexCoords3f, TexCoords7) \
+ copyAttrib(texcoord7, TexCoords4f, TexCoords7) \
+ GeometryPtr copyAllAttribTempPtr(*this); \
+ beginEditCP(copyAllAttribTempPtr); \
+ setDlistCache(other->getDlistCache()); \
+ setVbo(other->getVbo()); \
+ endEditCP(copyAllAttribTempPtr); \
+ }
+
+#else
+
+ #define copyAllAttrib \
+ { \
+ copyAttrib(pos, Positions2f, Positions) \
+ copyAttrib(pos, Positions3f, Positions) \
+ copyAttrib(pos, Positions4f, Positions) \
+ copyAttrib(pos, Positions2d, Positions) \
+ copyAttrib(pos, Positions3d, Positions) \
+ copyAttrib(pos, Positions4d, Positions) \
+ copyAttrib(pos, Positions2s, Positions) \
+ copyAttrib(pos, Positions3s, Positions) \
+ copyAttrib(pos, Positions4s, Positions) \
+ copyAttrib(type, PTypesUI8, Types) \
+ copyAttrib(length, PLengthsUI8, Lengths) \
+ copyAttrib(length, PLengthsUI16, Lengths) \
+ copyAttrib(length, PLengthsUI32, Lengths) \
+ copyAttrib(normal, Normals3f, Normals) \
+ copyAttrib(normal, Normals3s, Normals) \
+ copyAttrib(color, Colors3f, Colors) \
+ copyAttrib(color, Colors4f, Colors) \
+ copyAttrib(color, Colors3ub, Colors) \
+ copyAttrib(color, Colors4ub, Colors) \
+ copyAttrib(seccolor, Colors3f, SecondaryColors) \
+ copyAttrib(seccolor, Colors4f, SecondaryColors) \
+ copyAttrib(seccolor, Colors3ub, SecondaryColors) \
+ copyAttrib(seccolor, Colors4ub, SecondaryColors) \
+ copyAttrib(texcoord, TexCoords1f, TexCoords) \
+ copyAttrib(texcoord, TexCoords2f, TexCoords) \
+ copyAttrib(texcoord, TexCoords3f, TexCoords) \
+ copyAttrib(texcoord, TexCoords4f, TexCoords) \
+ copyAttrib(texcoord1, TexCoords1f, TexCoords1) \
+ copyAttrib(texcoord1, TexCoords2f, TexCoords1) \
+ copyAttrib(texcoord1, TexCoords3f, TexCoords1) \
+ copyAttrib(texcoord1, TexCoords4f, TexCoords1) \
+ copyAttrib(texcoord2, TexCoords1f, TexCoords2) \
+ copyAttrib(texcoord2, TexCoords2f, TexCoords2) \
+ copyAttrib(texcoord2, TexCoords3f, TexCoords2) \
+ copyAttrib(texcoord2, TexCoords4f, TexCoords2) \
+ copyAttrib(texcoord3, TexCoords1f, TexCoords3) \
+ copyAttrib(texcoord3, TexCoords2f, TexCoords3) \
+ copyAttrib(texcoord3, TexCoords3f, TexCoords3) \
+ copyAttrib(texcoord3, TexCoords4f, TexCoords3) \
+ copyAttrib(texcoord4, TexCoords1f, TexCoords4) \
+ copyAttrib(texcoord4, TexCoords2f, TexCoords4) \
+ copyAttrib(texcoord4, TexCoords3f, TexCoords4) \
+ copyAttrib(texcoord4, TexCoords4f, TexCoords4) \
+ copyAttrib(texcoord5, TexCoords1f, TexCoords5) \
+ copyAttrib(texcoord5, TexCoords2f, TexCoords5) \
+ copyAttrib(texcoord5, TexCoords3f, TexCoords5) \
+ copyAttrib(texcoord5, TexCoords4f, TexCoords5) \
+ copyAttrib(texcoord6, TexCoords1f, TexCoords6) \
+ copyAttrib(texcoord6, TexCoords2f, TexCoords6) \
+ copyAttrib(texcoord6, TexCoords3f, TexCoords6) \
+ copyAttrib(texcoord6, TexCoords4f, TexCoords6) \
+ copyAttrib(texcoord7, TexCoords1f, TexCoords7) \
+ copyAttrib(texcoord7, TexCoords2f, TexCoords7) \
+ copyAttrib(texcoord7, TexCoords3f, TexCoords7) \
+ copyAttrib(texcoord7, TexCoords4f, TexCoords7) \
+ GeometryPtr copyAllAttribTempPtr(*this); \
+ beginEditCP(copyAllAttribTempPtr); \
+ setDlistCache(other->getDlistCache()); \
+ setVbo(other->getVbo()); \
+ endEditCP(copyAllAttribTempPtr); \
+ }
+#endif
//merge two identical geometries
void Geometry::merge0( const GeometryPtr other )
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users