[osg-users] Need Build Support OSG 2.2.0\STLPort 4.5\VC 6
Paul Martz
pmartz at skew-matrix.com
Tue Apr 1 15:55:10 PDT 2008
Hi Judie -- I don't think anyone is using VC6 for OSG anymore due to exactly
the types of problems you've encountered. VC6's STL isn't up to par, and the
various hacks to get around that (STLPort) are difficult tow work with.
Robert might comment but I believe OSG v2.0 "officially" dropped support for
VC6.
-Paul
_____
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Judie
Stanley
Sent: Tuesday, April 01, 2008 4:39 PM
To: osg-users at lists.openscenegraph.org
Subject: [osg-users] Need Build Support OSG 2.2.0\STLPort 4.5\VC 6
Hi, I am new to this community. To qualify, let me say that I have
downloaded all the files for building the OpenSceneGraph 2.2.0 osg
core plus the applications and examples. I have configured builds for
both VC 8 and VC 6. I installed SVN so I could optain the latest
3rdParty items. I have built the VC 8 configuration just fine.
My problem is, our project has to be built using VC 6. So I also read
and configured everything for VC 6. I built and used STLPort 4.5 but I
get the following error when used with the osg build (and I googled
and tried everything I could find to resolve it - rest assured my
stlPort include and library paths come before the Microsoft SDK ones).
When using STLPort 4.5 - I get these errors for the OpenThreads:
Win32Thread.cpp
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\winbase.h(1392) : error C2733:
second C linkage of overloaded function 'InterlockedIncrement' not
allowed
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\winbase.h(1390) : see
declaration of 'InterlockedIncrement'
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\winbase.h(1399) : error C2733:
second C linkage of overloaded function 'InterlockedDecrement' not
allowed
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\winbase.h(1397) : see
declaration of 'InterlockedDecrement'
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\winbase.h(1407) : error C2733:
second C linkage of overloaded function 'InterlockedExchange' not
allowed
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\winbase.h(1404) : see
declaration of 'InterlockedExchange'
But we have an older version of STLPort that is used to build our
project in VC6 which also has the 1.2 version of OpenSceneGraph. I was
hoping to update us to the 2.2.0 version, however. So when I use this
older version of STLPort (and I can't find the version number
anywhere), It gets past the above error and the OpenThreads project
builds just fine, but then I get the following errors:
--------------------Configuration: osg - Win32
Debug--------------------
Compiling...
AnimationPath.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
Billboard.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
BufferObject.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\BufferObject.cpp(408) : error C2374: 'itr' : redefinition; multiple
initialization
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\BufferObject.cpp(356) : see declaration of 'itr'
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\BufferObject.cpp(577) : error C2374: 'itr' : redefinition; multiple
initialization
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\BufferObject.cpp(525) : see declaration of 'itr'
Camera.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
ClusterCullingCallback.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
ComputeBoundsVisitor.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
CopyOp.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
DrawPixels.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
Drawable.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
FrameBufferObject.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
GLObjects.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
Geode.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
Geometry.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
GraphicsContext.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(603) : error C2039: 'iterator' : is not a member
of 'OperationQueue'
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include
\osg/OperationThread(97) : see declaration of 'OperationQueue'
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(603) : error C2065: 'iterator' : undeclared
identifier
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(603) : error C2146: syntax error : missing ';'
before identifier 'itr'
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(603) : error C2065: 'itr' : undeclared identifier
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(603) : error C2679: binary '=' : no operator
defined which takes a right-hand operand of type 'struct
_STL::_List_iterator<class osg::ref_ptr<class osg::Operation>,str
uct _STL::_Nonconst_traits<class osg::ref_ptr<class osg::Operation> >
>' (or there is no acceptable conversion)
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(604) : error C2059: syntax error : ';'
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(606) : error C2100: illegal indirection
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(606) : error C2446: '==' : no conversion from
'class osg::Operation *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(606) : error C2040: '==' : 'int' differs in
levels of indirection from 'class osg::Operation *'
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(624) : error C2039: 'iterator' : is not a member
of 'OperationQueue'
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include
\osg/OperationThread(97) : see declaration of 'OperationQueue'
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(624) : error C2146: syntax error : missing ';'
before identifier 'itr'
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(624) : error C2679: binary '=' : no operator
defined which takes a right-hand operand of type 'struct
_STL::_List_iterator<class osg::ref_ptr<class osg::Operation>,str
uct _STL::_Nonconst_traits<class osg::ref_ptr<class osg::Operation> >
>' (or there is no acceptable conversion)
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(625) : error C2059: syntax error : ';'
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(627) : error C2100: illegal indirection
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(627) : error C2227: left of '->getName' must
point to class/struct/union
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(674) : error C2039: 'iterator' : is not a member
of 'OperationQueue'
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include
\osg/OperationThread(97) : see declaration of 'OperationQueue'
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(674) : error C2146: syntax error : missing ';'
before identifier 'itr'
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(674) : error C2679: binary '=' : no operator
defined which takes a right-hand operand of type 'struct
_STL::_List_iterator<class osg::ref_ptr<class osg::Operation>,str
uct _STL::_Nonconst_traits<class osg::ref_ptr<class osg::Operation> >
>' (or there is no acceptable conversion)
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(675) : error C2679: binary '!=' : no operator
defined which takes a right-hand operand of type 'struct
_STL::_List_iterator<class osg::ref_ptr<class osg::Operation>,st
ruct _STL::_Nonconst_traits<class osg::ref_ptr<class osg::Operation> >
>' (or there is no acceptable conversion)
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(676) : error C2059: syntax error : ';'
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(680) : error C2679: binary '=' : no operator
defined which takes a right-hand operand of type 'class osg::Camera
*' (or there is no acceptable conversion)
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\GraphicsContext.cpp(684) : error C2664: 'struct
_STL::_List_iterator<class osg::ref_ptr<class osg::Operation>,struct
_STL::_Nonconst_traits<class osg::ref_ptr<class osg::Operation> > > __
thiscall _STL::list<class osg::ref_ptr<class osg::Operation>,class
_STL::allocator<class osg::ref_ptr<class osg::Operation> >
>::erase(struct _STL::_List_iterator<class osg::ref_ptr<class
osg::Operation>,struct _STL::_Nonconst_traits<class osg::ref_
ptr<class osg::Operation> > >)' : cannot convert parameter 1 from
'class osg::Camera ** ' to 'struct _STL::_List_iterator<class
osg::ref_ptr<class osg::Operation>,struct _STL::_Nonconst_traits<class
osg::ref_ptr<class osg::Operation> > >'
No constructor could take the source type, or constructor
overload resolution was ambiguous
GraphicsThread.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
Image.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
NodeTrackerCallback.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
OperationThread.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
Program.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\Program.cpp(2283) : error C2086: 'itr' : redefinition
ShadowVolumeOccluder.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
Generating Code...
Compiling...
ShapeDrawable.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
StateSet.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
Switch.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\Switch.cpp(210) : error C2374: 'pos' : redefinition; multiple
initialization
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg
\Switch.cpp(193) : see declaration of 'pos'
TexMat.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
Texture.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
Texture1D.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
Texture2D.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
Texture2DArray.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
Texture3D.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
TextureCubeMap.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
TextureRectangle.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
TransferFunction.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
Transform.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
View.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
dxtctool.cpp
C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/
OperationThread(35) : error C2437: 'Referenced' : already initialized
Generating Code...
Error executing cl.exe.
ALL_BUILD - 58 error(s), 0 warning(s)
I hope this looks familiar to somebody and I can get a quick fix.
Thanks,
Judie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080401/b8815810/attachment-0001.html
More information about the osg-users
mailing list