It looks like you're using the OSG v3.0.1 release. What version of osgWorks are
you using? The v2.00.00 release has been tested with and should therefore be
compatible with OSG v3.0.1:
http://code.google.com/p/osgworks/wiki/CompatibilityMatrix
It looks like Visual Studio 10 output. Are you building 32bit or 64bit?
-Paul
On 3/14/2012 8:08 PM, flintFred wrote:
> I'm trying to compile osgBullet for the first time.
>
> So I'm believing I have to include osgWorks.
>
> I'm receiving a lot of errors compiling osgWorks.
>
> Here's some of the errors I'm getting. Any help, thank you.
>
> 2>E:\MyApp\lib\OpenSceneGraph-3.0.1\OpenSceneGraph-3.0.1\include\osg/
> State(2477): error C2784: 'bool std::operator<(const
> std::list<_Ty,_Ax> &,const std::list<_Ty,_Ax> &)' : could not deduce
> template argument for 'const std::list<_Ty,_Ax> &' from 'const
> std::string'
> 2> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> \include\list(1588) : see declaration of 'std::operator<'
> 2>E:\MyApp\lib\OpenSceneGraph-3.0.1\OpenSceneGraph-3.0.1\include\osg/
> State(2477): error C2784: 'bool std::operator<(const
> std::list<_Ty,_Ax> &,const std::list<_Ty,_Ax> &)' : could not deduce
> template argument for 'const std::list<_Ty,_Ax> &' from 'const
> std::string'
> 2> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> \include\list(1588) : see declaration of 'std::operator<'
> 2>E:\MyApp\lib\OpenSceneGraph-3.0.1\OpenSceneGraph-3.0.1\include\osg/
> State(2477): error C2784: 'bool std::operator<(const
> std::list<_Ty,_Ax> &,const std::list<_Ty,_Ax> &)' : could not deduce
> template argument for 'const std::list<_Ty,_Ax> &' from 'const
> std::string'
> 2> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> \include\list(1588) : see declaration of 'std::operator<'
> 2>E:\MyApp\lib\OpenSceneGraph-3.0.1\OpenSceneGraph-3.0.1\include\osg/
> State(2477): error C2784: 'bool std::operator<(const
> std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce
> template argument for 'const std::_Tree<_Traits> &' from 'const
> std::string'
> 2> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> \include\xtree(1885) : see declaration of 'std::operator<'
> 2>E:\MyApp\lib\OpenSceneGraph-3.0.1\OpenSceneGraph-3.0.1\include\osg/
> State(2477): error C2784: 'bool std::operator<(const
> std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce
> template argument for 'const std::_Tree<_Traits> &' from 'const
> std::string'
> 2> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> \include\xtree(1885) : see declaration of 'std::operator<'
> 2>E:\MyApp\lib\OpenSceneGraph-3.0.1\OpenSceneGraph-3.0.1\include\osg/
> State(2477): error C2784: 'bool std::operator<(const
> std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce
> template argument for 'const std::_Tree<_Traits> &' from 'const
> std::string'
> 2> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> \include\xtree(1885) : see declaration of 'std::operator<'
> 2>E:\MyApp\lib\OpenSceneGraph-3.0.1\OpenSceneGraph-3.0.1\include\osg/
> State(2477): error C2784: 'bool std::operator<(const
> std::vector<_Ty,_Ax> &,const std::vector<_Ty,_Ax> &)' : could not
> deduce template argument for 'const std::vector<_Ty,_Ax> &' from
> 'const std::string'
> 2> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> \include\vector(1502) : see declaration of 'std::operator<'
> 2>E:\MyApp\lib\OpenSceneGraph-3.0.1\OpenSceneGraph-3.0.1\include\osg/
> State(2477): error C2784: 'bool std::operator<(const
> std::vector<_Ty,_Ax> &,const std::vector<_Ty,_Ax> &)' : could not
> deduce template argument for 'const std::vector<_Ty,_Ax> &' from
> 'const std::string'
> 2> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> \include\vector(1502) : see declaration of 'std::operator<'
> 2>E:\MyApp\lib\OpenSceneGraph-3.0.1\OpenSceneGraph-3.0.1\include\osg/
> State(2477): error C2784: 'bool std::operator<(const
> std::vector<_Ty,_Ax> &,const std::vector<_Ty,_Ax> &)' : could not
> deduce template argument for 'const std::vector<_Ty,_Ax> &' from
> 'const std::string'
> 2> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> \include\vector(1502) : see declaration of 'std::operator<'
> 2>E:\MyApp\lib\OpenSceneGraph-3.0.1\OpenSceneGraph-3.0.1\include\osg/
> State(2477): error C2784: 'bool std::operator<(const
> std::unique_ptr<_Ty,_Dx> &,const std::unique_ptr<_Ty2,_Dx2> &)' :
> could not deduce template argument for 'const std::unique_ptr<_Ty,_Dx>
> &' from 'const std::string'
> 2> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> \include\memory(2582) : see declaration of 'std::operator<'
> 2>E:\MyApp\lib\OpenSceneGraph-3.0.1\OpenSceneGraph-3.0.1\include\osg/
> State(2477): error C2784: 'bool std::operator<(const
> std::unique_ptr<_Ty,_Dx> &,const std::unique_ptr<_Ty2,_Dx2> &)' :
> could not deduce template argument for 'const std::unique_ptr<_Ty,_Dx>
> &' from 'const std::string'
> 2> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> \include\memory(2582) : see declaration of 'std::operator<'
> 2>E:\MyApp\lib\OpenSceneGraph-3.0.1\OpenSceneGraph-3.0.1\include\osg/
> State(2477): error C2784: 'bool std::operator<(const
> std::unique_ptr<_Ty,_Dx> &,const std::unique_ptr<_Ty2,_Dx2> &)' :
> could not deduce template argument for 'const std::unique_ptr<_Ty,_Dx>
> &' from 'const std::string'
> 2> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> \include\memory(2582) : see declaration of 'std::operator<'
> 2>E:\MyApp\lib\OpenSceneGraph-3.0.1\OpenSceneGraph-3.0.1\include\osg/
> State(2477): error C2784: 'bool std::operator<(const
> std::reverse_iterator<_RanIt> &,const std::reverse_iterator<_RanIt2>
> &)' : could not deduce template argument for 'const
> std::reverse_iterator<_RanIt> &' from 'const std::string'
> 2> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> \include\xutility(1356) : see declaration of 'std::operator<'
> 2>E:\MyApp\lib\OpenSceneGraph-3.0.1\OpenSceneGraph-3.0.1\include\osg/
> State(2477): error C2784: 'bool std::operator<(const
> std::reverse_iterator<_RanIt> &,const std::reverse_iterator<_RanIt2>
> &)' : could not deduce template argument for 'const
> std::reverse_iterator<_RanIt> &' from 'const std::string'
> 2> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
> \include\xutility(1356) : see declaration of 'std::operator<'
> 2>E:\MyApp\lib\OpenSceneGraph-3.0.1\OpenSceneGraph-3.0.1\include\osg/
> State(2477): error C2784: 'bool std::operator<(const
> std::reverse_iterator<_RanIt> &,const std::reverse_iterator<_RanIt2>
> &)' : could not deduce template argument for 'const
> std::reverse_iterator<_RanIt> &' from 'const std::string'
>
I'm having trouble following your description below. When you say "2 config
files", do you mean the include/osg/Config and include/OpenThreads/Config header
files, the ones that OSG automatically generates?
Basically it sounds like you have a screwed up OSG install. Have you tried to
build any other external OSG projects using the same OSG on your system?
When you run osgWorks CMake, what do you set OSGInstallType to?
-Paul
On 3/14/2012 8:33 PM, flintFred wrote:
> I'm compiling 32bit.
>
> I used cmake, first problem I had was 2 config files not being
> included in the vs solution, so I have added the 'include' director
> from my 'osg build' folder, withing this folder are 'osg' and
> 'openthreads' folders, each containing the config files needed?
>
> That is all I have done.
>
> Yes, I.m using osgWorks v2.00.00.