Hello,
Currently I have a really hard time compiling OpenSG 1.8 on Mac OS
( 10.5, Leopard with gcc 4.01). First I tried the usual ./configure
make. The BaseLib gets built in debug and optimized mode, but in the
SystemLib it stops compiling in lex.OSGScanParseSkel_.cc. As the other
libraries depend on the SystemLib, the build fails.
The last build output (with the error) is:
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_PNG -
D_OSG_HAVE_CONFIGURED_H_ -fno-common -fPIC -g -
DOSG_DEBUG -c -I"../Base" -I/Users/mbroecker/dev/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
.... and so on. I tried finding yy_buffer stack in the source files,
but i could not find any descripition. Plus the line numbers the
compiler complains about don't match with the line numbers in the
file. I was not able to find yy_buffer_stack on line 893 for example.
I tried building it with scons. After fixing some reinterpret_casts it
compiled, but it threw linking errors about OpenGL at me, As I was
building under Mac OS it didn't recognize my build system and compiled
with the settings for 'unknown'. Is there an updated SConstruct
available?
Thank you in advance for your answer.
Markus Broecker
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users