Re: [osg-users] [osgOcean] Problem building osgOcean in visual studio 9.0.

2010-02-04 Thread Kim Bale
Hi Chris,

I've built osgOcean again 2.8.2 with vs2008 on xp,vista and win7 without
issue. So i'm rather at a loss on this one.

Can you be more specific about the CMake settings your using? Maybe I'll be
able to spot something.

Regards,

Kim.


On 3 February 2010 21:54, Chris Innanen f...@nonsanity.com wrote:

 Hi, J-S...

 My settup isn't much different than what has been reported previously in
 this thread, by both people for whom this worked, and that had the errors.

 OSG 2.8.2 (last Stable release)
 osgOcean 1.0.1 (latest release)
 Visual Studio 2008

 And the errors for the first cpp with problems:


 Code:

 1Compiling...
 1SiltEffect.cpp
 1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C3767:
 '': candidate function(s) not accessible
 1could be the friend function at
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : ''  [may be
 found via argument-dependent lookup]
 1or the friend function at
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : ''  [may be
 found via argument-dependent lookup]
 1or the friend function at
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : ''  [may be
 found via argument-dependent lookup]
 1or the friend function at
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : ''  [may be
 found via argument-dependent lookup]
 1or the friend function at
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : ''  [may be
 found via argument-dependent lookup]
 1or the friend function at
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : ''  [may be
 found via argument-dependent lookup]
 1or the friend function at
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : ''  [may be
 found via argument-dependent lookup]
 1or the friend function at
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : ''  [may be
 found via argument-dependent lookup]
 1or the friend function at
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : ''  [may be
 found via argument-dependent lookup]
 1or the friend function at
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : ''  [may be
 found via argument-dependent lookup]
 1or the friend function at
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : ''  [may be
 found via argument-dependent lookup]
 1or the friend function at
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : ''  [may be
 found via argument-dependent lookup]
 1or the friend function at
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : ''  [may be
 found via argument-dependent lookup]
 1or the friend function at
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : ''  [may be
 found via argument-dependent lookup]
 1or the friend function at
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : ''  [may be
 found via argument-dependent lookup]
 1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : 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'
 1c:\Program Files\Microsoft Visual Studio
 9.0\VC\include\xtree(1466) : see declaration of 'std::operator '
 1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : 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'
 1c:\Program Files\Microsoft Visual Studio
 9.0\VC\include\xtree(1466) : see declaration of 'std::operator '
 1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : 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'
 1c:\Program Files\Microsoft Visual Studio
 9.0\VC\include\xtree(1466) : see declaration of 'std::operator '
 1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : 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'
 1c:\Program Files\Microsoft Visual Studio
 9.0\VC\include\xtree(1466) : see declaration of 'std::operator '
 1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784:
 'bool std::operator (const std::vector_Ty,_Alloc ,const
 std::vector_Ty,_Alloc )' : could not deduce template argument for 'const
 std::vector_Ty,_Alloc ' from 'const std::string'
 1c:\Program Files\Microsoft Visual Studio
 9.0\VC\include\vector(1327) : see declaration of 'std::operator '
 1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784:
 'bool std::operator (const std::vector_Ty,_Alloc ,const
 std::vector_Ty,_Alloc )' 

Re: [osg-users] [osgOcean] Problem building osgOcean in visual studio 9.0.

2010-02-04 Thread Chris Innanen
Hiya, Kim...

I seem to have fixed the problem...

In the osgOcean project settings, the additional include directories includes 
the osg header directories, including osgDB and osgText. These are put there by 
CMake, which demands those paths in order to generate the project files.

osgText has its own String class based on std::string and osgDB has it's own 
fstream. Both are defined in headers with the same name as the standard library 
headers. So when osgOcean tries to include the standard varieties, it gets 
these overridden files.

By removing those two directories from the additional includes, osgOcean builds 
correctly.


 ~ Chris Innanen
 ~ Nonsanity

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=23703#23703





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgOcean] Problem building osgOcean in visual studio 9.0.

2010-02-04 Thread Jean-Sébastien Guay

Hi Chris,


In the osgOcean project settings, the additional include directories includes 
the osg header directories, including osgDB and osgText. These are put there by 
CMake, which demands those paths in order to generate the project files.

osgText has its own String class based on std::string and osgDB has it's own 
fstream. Both are defined in headers with the same name as the standard library 
headers. So when osgOcean tries to include the standard varieties, it gets 
these overridden files.

By removing those two directories from the additional includes, osgOcean builds 
correctly.


Hm, interesting. CMake should be adding only osg root/include to the 
project's include paths, and not any of osg root/include/osg, osg 
root/include/osgText, osg root/include/osgDB or anything like that. 
If that were the case, the include lines in osgOcean (presumably 
#include string and #include fstream) would not find the osgText and 
osgDB versions, you would need to do #include osgText/String and 
#include osgDB/fstream specifically to get those, and all would be 
well in the world (and curse Windows' case-insensitive filesystem in the 
case of String vs string...).


What version of CMake are you using? I'm pretty sure if CMake generated 
project files that way for you, it should have generated them that way 
for us too, unless there's a bug in the version of CMake you're using.


The other possibility - did you manually specify the include 
directories? If that's the case, then you should have specified the same 
directory (osg root/include) for all *_INCLUDE_DIR settings. Doing 
that in the CMake GUI and then regenerating should fix the problem too, 
without needing to remove include paths manually from the project files. 
This should perhaps be better documented.


Hope this helps,

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgOcean] Problem building osgOcean in visual studio 9.0.

2010-02-04 Thread Jean-Sébastien Guay

Hi Chris,


By removing those two directories from the additional includes, osgOcean builds 
correctly.


Oh, and I forgot to mention - great work tracking this down, it was 
certainly not obvious what the problem was when considering only the 
compiler errors you posted :-)


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgOcean] Problem building osgOcean in visual studio 9.0.

2010-02-03 Thread Chris Innanen
Hey, all...

I've just run into the same problem. The first of the errors is when building 
SiltEffect (the third cpp in the compile) where Visual Studio 2008 complains:


 1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C3767: '': 
 candidate function(s) not accessible


Followed by a bunch of could be friend function at (un)helpful hints:


 1could be the friend function at 
 'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : ''  [may be 
 found via argument-dependent lookup]


Also the error:


 1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : 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'
 1c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1466) 
 : see declaration of 'std::operator '


So almost every error I get is related to the use for a sort comparison  as 
used by a class that gets put into a STL list of some sort inside OSG itself, 
mainly the State class.

This suggests a Microsoft-only issue, but the errors VS provides are fairly 
useless for tracking down the problem in osgOcean or its configuration.

Here's hoping someone has figured out this problem in the last 6-7 months since 
this thread was active... Because I'm stuck.

 ~ Chris Innanen
 ~ Nonsanity

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=23646#23646





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgOcean] Problem building osgOcean in visual studio 9.0.

2010-02-03 Thread Jean-Sébastien Guay

Hi Chris,


Here's hoping someone has figured out this problem in the last 6-7 months since 
this thread was active... Because I'm stuck.


I've used VS2005SP1 to build osgOcean and have been doing so 
successfully since the start of the project... What version of OSG are 
you building osgOcean against?


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgOcean] Problem building osgOcean in visual studio 9.0.

2010-02-03 Thread Chris Innanen
Hi, J-S...

My settup isn't much different than what has been reported previously in this 
thread, by both people for whom this worked, and that had the errors.

OSG 2.8.2 (last Stable release)
osgOcean 1.0.1 (latest release)
Visual Studio 2008

And the errors for the first cpp with problems:


Code:

1Compiling...
1SiltEffect.cpp
1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C3767: '': 
candidate function(s) not accessible
1could be the friend function at 
'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : ''  [may be 
found via argument-dependent lookup]
1or the friend function at   
'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : ''  [may be 
found via argument-dependent lookup]
1or the friend function at   
'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : ''  [may be 
found via argument-dependent lookup]
1or the friend function at   
'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : ''  [may be 
found via argument-dependent lookup]
1or the friend function at   
'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : ''  [may be 
found via argument-dependent lookup]
1or the friend function at   
'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : ''  [may be 
found via argument-dependent lookup]
1or the friend function at   
'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : ''  [may be 
found via argument-dependent lookup]
1or the friend function at   
'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : ''  [may be 
found via argument-dependent lookup]
1or the friend function at   
'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : ''  [may be 
found via argument-dependent lookup]
1or the friend function at   
'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : ''  [may be 
found via argument-dependent lookup]
1or the friend function at   
'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : ''  [may be 
found via argument-dependent lookup]
1or the friend function at   
'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : ''  [may be 
found via argument-dependent lookup]
1or the friend function at   
'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : ''  [may be 
found via argument-dependent lookup]
1or the friend function at   
'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : ''  [may be 
found via argument-dependent lookup]
1or the friend function at   
'C:\[]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : ''  [may be 
found via argument-dependent lookup]
1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : 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'
1c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1466) : 
see declaration of 'std::operator '
1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : 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'
1c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1466) : 
see declaration of 'std::operator '
1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : 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'
1c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1466) : 
see declaration of 'std::operator '
1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : 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'
1c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1466) : 
see declaration of 'std::operator '
1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool 
std::operator (const std::vector_Ty,_Alloc ,const std::vector_Ty,_Alloc 
)' : could not deduce template argument for 'const std::vector_Ty,_Alloc ' 
from 'const std::string'
1c:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(1327) 
: see declaration of 'std::operator '
1C:\[]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool 
std::operator (const std::vector_Ty,_Alloc ,const std::vector_Ty,_Alloc 
)' : could not deduce template argument for 'const std::vector_Ty,_Alloc ' 
from 'const std::string'
1c:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(1327) 
: see declaration of 'std::operator '