Hi, just a follow up about the problem we had. We have commented the
redefinition out and have more errors:
c++ -Wall -W -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion
-Wsign-compare -Winline -Wno-unused -Wno-long-long -Wno-reorder
-D_GNU_SOURCE -DQT_CLEAN_NAMESPACE -DOSG_WITH_GLUT -DOSG_WITH_TIF
-DOSG_WITH_JPG -DOSG_WITH_PNG -D_OSG_HAVE_CONFIGURED_H_ -fno-common -fPIC
-g -DOSG_DEBUG -c -I"../Base"
-I/Users/taolong/dev/packages/OpenSG/Builds/i386-apple-darwin-g++/BaseLib
-I$BD/Base/Base -I$BD/Base/Field -I$BD/Base/Functors
-I$BD/Base/Network/Base -I$BD/Base/Network/Socket
-I$BD/Base/OSHelpers/darwin -I$BD/Base/StringConversion -I$BD/Base/Xml
-I$BD/Experimental/Manipulators -I$BD/Experimental/NativeFileIO
-I$BD/Experimental/NewAction/Actors -I$BD/Experimental/NewAction
-I$BD/Experimental/SHL -I$BD/Experimental/ShadowMapViewport
-I$BD/Experimental/ShadowViewport -I$BD/Experimental/Text
-I$BD/Experimental/WebInterface -I$BD/System/Action/DrawAction
-I$BD/System/Action/IntersectAction
-I$BD/System/Action/RenderAction -I$BD/System/Action
-I$BD/System/Cluster/Base -I$BD/System/Cluster/Server
-I$BD/System/Cluster/Window/BalancedMultiWindow
-I$BD/System/Cluster/Window/Base -I$BD/System/Cluster/Window/MultiDisplay
-I$BD/System/Cluster/Window/SortFirst -I$BD/System/Cluster/Window/SortLast
-I$BD/System/FieldContainer/Impl -I$BD/System/FieldContainer
-I$BD/System/FileIO/3DS -I$BD/System/FileIO/BIN -I$BD/System/FileIO/Base
-I$BD/System/FileIO/DXF -I$BD/System/FileIO/OBJ -I$BD/System/FileIO/OFF
-I$BD/System/FileIO/OSG -I$BD/System/FileIO/RAW -I$BD/System/FileIO/SLP
-I$BD/System/FileIO/STL -I$BD/System/FileIO/ScanParseSkel
-I$BD/System/FileIO/WRL -I$BD/System/GraphOp -I$BD/System/Image
-I$BD/System/Material -I$BD/System/NodeCores/Drawables/Base
-I$BD/System/NodeCores/Drawables/Geometry
-I$BD/System/NodeCores/Drawables/Misc
-I$BD/System/NodeCores/Drawables/Nurbs/Internal
-I$BD/System/NodeCores/Drawables/Nurbs
-I$BD/System/NodeCores/Drawables/Particles
-I$BD/System/NodeCores/Drawables/VolRen -I$BD/System/NodeCores/Groups/Base
-I$BD/System/NodeCores/Groups/Light -I$BD/System/NodeCores/Groups/Misc
-I$BD/System/RenderingBackend -I$BD/System/State -I$BD/System/Statistics
-I$BD/System/Text -I$BD/System/Window \
-Iobj-dbg -I.\
-o obj-dbg/OSGScanParseSkel.lex.o obj-dbg/OSGScanParseSkel.lex.cpp
lex.OSGScanParseSkel_.cc: In member function ‘virtual int
OSGScanParseLexer::yylex()’:
lex.OSGScanParseSkel_.cc:893: error: ‘yy_buffer_stack’ was not declared in this
scope
lex.OSGScanParseSkel_.cc:893: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:894: error: ‘yyensure_buffer_stack’ was not declared
in this scope
lex.OSGScanParseSkel_.cc:1545: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:1545: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:1568: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:1568: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc: In constructor
‘OSGScanParseSkel_FlexLexer::OSGScanParseSkel_FlexLexer(std::istream*,
std::ostream*)’:
lex.OSGScanParseSkel_.cc:1685: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:1686: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:1687: error: ‘yy_buffer_stack_max’ was not declared in
this scope
lex.OSGScanParseSkel_.cc: In destructor ‘virtual
OSGScanParseSkel_FlexLexer::~OSGScanParseSkel_FlexLexer()’:
lex.OSGScanParseSkel_.cc:1697: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:1697: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc: In member function ‘virtual void
OSGScanParseSkel_FlexLexer::switch_streams(std::istream*, std::ostream*)’:
lex.OSGScanParseSkel_.cc:1704: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:1704: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc: In member function ‘int
OSGScanParseSkel_FlexLexer::yy_get_next_buffer()’:
lex.OSGScanParseSkel_.cc:1756: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:1756: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc: In member function ‘void
OSGScanParseSkel_FlexLexer::yyunput(int, char*)’:
lex.OSGScanParseSkel_.cc:1944: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:1944: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc: In member function ‘int
OSGScanParseSkel_FlexLexer::yyinput()’:
lex.OSGScanParseSkel_.cc:1988: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:1988: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc: In member function ‘virtual void
OSGScanParseSkel_FlexLexer::yyrestart(std::istream*)’:
lex.OSGScanParseSkel_.cc:2056: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2056: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2057: error: ‘yyensure_buffer_stack’ was not declared
in this scope
lex.OSGScanParseSkel_.cc:2062: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2062: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc: In member function ‘virtual void
OSGScanParseSkel_FlexLexer::yy_switch_to_buffer(yy_buffer_state*)’:
lex.OSGScanParseSkel_.cc:2078: error: ‘yyensure_buffer_stack’ was not declared
in this scope
lex.OSGScanParseSkel_.cc:2079: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2079: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2082: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2082: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2090: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2090: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc: In member function ‘void
OSGScanParseSkel_FlexLexer::yy_load_buffer_state()’:
lex.OSGScanParseSkel_.cc:2103: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2103: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc: In member function ‘virtual void
OSGScanParseSkel_FlexLexer::yy_delete_buffer(yy_buffer_state*)’:
lex.OSGScanParseSkel_.cc:2149: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2149: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc: In member function ‘void
OSGScanParseSkel_FlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)’:
lex.OSGScanParseSkel_.cc:2178: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2178: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc: In member function ‘void
OSGScanParseSkel_FlexLexer::yy_flush_buffer(yy_buffer_state*)’:
lex.OSGScanParseSkel_.cc:2210: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2210: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc: At global scope:
lex.OSGScanParseSkel_..cc:2220: error: no ‘void
OSGScanParseSkel_FlexLexer::yypush_buffer_state(yy_buffer_state*)’ member
function declared in class ‘OSGScanParseSkel_FlexLexer’
lex.OSGScanParseSkel_.cc: In member function ‘void
OSGScanParseSkel_FlexLexer::yypush_buffer_state(yy_buffer_state*)’:
lex.OSGScanParseSkel_.cc:2225: error: ‘yyensure_buffer_stack’ was not declared
in this scope
lex.OSGScanParseSkel_.cc:2228: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2228: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2237: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2237: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2239: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2239: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc: At global scope:
lex.OSGScanParseSkel_.cc:2250: error: no ‘void
OSGScanParseSkel_FlexLexer::yypop_buffer_state()’ member function declared in
class ‘OSGScanParseSkel_FlexLexer’
lex.OSGScanParseSkel_.cc: In member function ‘void
OSGScanParseSkel_FlexLexer::yypop_buffer_state()’:
lex.OSGScanParseSkel_.cc:2252: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2252: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2255: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2255: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc: At global scope:
lex.OSGScanParseSkel_.cc:2269: error: no ‘void
OSGScanParseSkel_FlexLexer::yyensure_buffer_stack()’ member function declared
in class ‘OSGScanParseSkel_FlexLexer’
lex.OSGScanParseSkel_.cc: In member function ‘void
OSGScanParseSkel_FlexLexer::yyensure_buffer_stack()’:
lex.OSGScanParseSkel_.cc:2273: error: ‘yy_buffer_stack’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2286: error: ‘yy_buffer_stack_max’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2287: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2291: error: ‘yy_buffer_stack_top’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2291: error: ‘yy_buffer_stack_max’ was not declared in
this scope
lex.OSGScanParseSkel_.cc:2297: error: ‘yy_buffer_stack’ was not declared in
this scope
make[3]: *** [obj-dbg/OSGScanParseSkel.lex..o] Error 1
Thanks
Tao
________________________________
From: Patrick Dähne <[email protected]>
To: [email protected]
Sent: Monday, April 13, 2009 6:09:19 PM
Subject: Re: [Opensg-users] building on mac 10.5 ver 1.8
Hello Tom,
> Hi,
> Has anyone had success build OSG on mac 10.5? I downloaded the
> lastest source code and tried to build it. It gives the following
> error:
>
> OpenSG/Source/Base/Base/OSGBaseTypeTraits.h:1038: error:
> redefinition of 'struct osg::TypeTraits<osg::UInt32>'
> OpenSG/Source/Base/Base/OSGBaseTypeTraits.h:452: error: previous
> definition of 'struct osg::TypeTraits<osg::UInt32>'
Yes, it is possible to compile OSG 1.8 successfully on Mac OS 10.5.
What goes wrong in your case is hard to say without giving us more
information. I can just give you some hints to solve the problem.
OSGBaseTypeTraits defines classes that contain meta data for all data
types used in OpenSG. The problem is that there is a conflict between
the type trait class defined for OSG::UInt32 (which is defined as
"unsigned int") and the trait class defined for GLenum. Before Mac OS
10.5, GLenum was defined as "unsigned long". Starting with Mac OS
10.5, it is defined as "unsigned int". So on Mac OS 10.5, we are not
allowed to define the trait class for GLenum. That's why it is inside
an "#ifdef OSG_GLENUM_NEQ_UINT32".
OSG_GLENUM_NEQ_UINT32 is defined in "OpenSG/Source/Base/Base/
OSGConfig.h". The relevant lines look like this:
# include <AvailabilityMacros.h>
# if !defined(MAC_OS_X_VERSION_10_5) || (MAC_OS_X_VERSION_MAX_ALLOWED
< MAC_OS_X_VERSION_10_5)
# define OSG_GLENUM_NEQ_UINT32
# endif
For some reason, that code fails. As a quick fix, simply make sure
OSG_GLENUM_NEQ_UINT32 is not defined. But you'll probably run into
problems later. Try to find out why the code above fails to detect
your system as Mac OS 10.5..
Bye,
Patrick
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge..net/lists/listinfo/opensg-users
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users