hi,

thanks for the prompt reply :)

This is the compilation error I have for VPB (v0.9.12) using OSG (v3.0.1 32-bit 
built myself using MSVC 2010 on win64) and GDAL(v1.6 built myself using MSVC 
2010 from http://www.gisinternals.com/sdk/ )

2>C:\osg\include\osgDB\fstream(32): error C2504: 
'std::basic_fstream<_Elem,_Traits>' : base class undefined
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>C:\osg\include\osgDB\fstream(44): error C2504: 
'std::basic_ifstream<_Elem,_Traits>' : base class undefined
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>C:\osg\include\osgDB\fstream(56): error C2504: 
'std::basic_ofstream<_Elem,_Traits>' : base class undefined
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>C:\VirtualPlanetBuilder\src\include\vpb/BuildLog(76): error C2079: 
'vpb::LogFile::_fout' uses undefined class 'std::basic_ofstream<_Elem,_Traits>'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>C:\VirtualPlanetBuilder\src\include\vpb/BuildLog(212): error C2679: binary 
'<<' : no operator found which takes a right-hand operand of type 'const 
std::string' (or there is no acceptable conversion)
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(679): could be 'std::basic_ostream<_Elem,_Traits> 
&std::operator 
<<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const char 
*)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(726): or       'std::basic_ostream<_Elem,_Traits> 
&std::operator 
<<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,char)' 
[found using argument-dependent lookup]
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(764): or       'std::basic_ostream<_Elem,_Traits> 
&std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> 
&,const char *)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(811): or       'std::basic_ostream<_Elem,_Traits> 
&std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> 
&,char)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(937): or       'std::basic_ostream<_Elem,_Traits> 
&std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> 
&,const signed char *)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(944): or       'std::basic_ostream<_Elem,_Traits> 
&std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> 
&,signed char)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(951): or       'std::basic_ostream<_Elem,_Traits> 
&std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> 
&,const unsigned char *)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(958): or       'std::basic_ostream<_Elem,_Traits> 
&std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> 
&,unsigned char)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(968): or       'std::basic_ostream<_Elem,_Traits> 
&std::operator 
<<<char,std::char_traits<char>,std::string>(std::basic_ostream<_Elem,_Traits> 
&&,_Ty)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>,
2>              _Ty=std::string
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(1085): or       'std::basic_ostream<_Elem,_Traits> 
&std::operator 
<<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const 
std::error_code &)' [found using argument-dependent lookup]
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(186): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator 
<<(std::basic_ostream<_Elem,_Traits> &(__cdecl 
*)(std::basic_ostream<_Elem,_Traits> &))'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(192): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> 
&(__cdecl *)(std::basic_ios<_Elem,_Traits> &))'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(199): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl 
*)(std::ios_base &))'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(206): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(226): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator <<(short)'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(260): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(280): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator <<(int)'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(305): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator <<(unsigned int)'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(325): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator <<(long)'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(345): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator <<(unsigned long)'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(366): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator <<(__int64)'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(386): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(407): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator <<(float)'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(427): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator <<(double)'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(447): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator <<(long double)'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(467): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator <<(const void *)'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\include\ostream(487): or       'std::basic_ostream<_Elem,_Traits> 
&std::basic_ostream<_Elem,_Traits>::operator 
<<(std::basic_streambuf<_Elem,_Traits> *)'
2>          with
2>          [
2>              _Elem=char,
2>              _Traits=std::char_traits<char>
2>          ]
2>          while trying to match the argument list '(std::ostream, const 
std::string)'
2>C:\osg\include\osg/State(2477): error C3767: '<': candidate function(s) not 
accessible
2>          could be the friend function at 
'C:\osg\include\osg/MixinVector(152)' : '<'  [may be found via 
argument-dependent lookup]
2>          or the friend function at       
'C:\osg\include\osg/MixinVector(153)' : '<'  [may be found via 
argument-dependent lookup]
2>          or the friend function at       
'C:\osg\include\osg/MixinVector(154)' : '<'  [may be found via 
argument-dependent lookup]
2>          or the friend function at       
'C:\osg\include\osg/MixinVector(152)' : '<'  [may be found via 
argument-dependent lookup]
2>          or the friend function at       
'C:\osg\include\osg/MixinVector(153)' : '<'  [may be found via 
argument-dependent lookup]
2>          or the friend function at       
'C:\osg\include\osg/MixinVector(154)' : '<'  [may be found via 
argument-dependent lookup]
2>          or the friend function at       
'C:\osg\include\osg/MixinVector(152)' : '<'  [may be found via 
argument-dependent lookup]
2>          or the friend function at       
'C:\osg\include\osg/MixinVector(153)' : '<'  [may be found via 
argument-dependent lookup]
2>          or the friend function at       
'C:\osg\include\osg/MixinVector(154)' : '<'  [may be found via 
argument-dependent lookup]
2>          or the friend function at       
'C:\osg\include\osg/MixinVector(152)' : '<'  [may be found via 
argument-dependent lookup]
2>          or the friend function at       
'C:\osg\include\osg/MixinVector(153)' : '<'  [may be found via 
argument-dependent lookup]
2>          or the friend function at       
'C:\osg\include\osg/MixinVector(154)' : '<'  [may be found via 
argument-dependent lookup]
2>          or the friend function at       
'C:\osg\include\osg/MixinVector(152)' : '<'  [may be found via 
argument-dependent lookup]
2>          or the friend function at       
'C:\osg\include\osg/MixinVector(153)' : '<'  [may be found via 
argument-dependent lookup]
2>          or the friend function at       
'C:\osg\include\osg/MixinVector(154)' : '<'  [may be found via 
argument-dependent lookup]




sk92129 wrote:
> I also used visual studio 2010 pro.
> 
> Here are some notes when I built it (about two months ago).
> 
> 
> The link stage of the build will fail. The failure will look like this.
> 
> 2>osgDB.lib(osg80-osgDB.dll) : error LNK2005: "public: void __thiscall
> std::basic_ofstream<char,struct std::char_traits<char> >::`vbase
> destructor'(void)"
> (??_D?$basic_ofstream@DU?$char_traits@D@std@@@std@@QAEXXZ) already
> defined in SpatialProperties.obj 2> Creating library
> C:/projects/vpb0.9.12/build/lib/Release/vpb.lib and object
> C:/projects/vpb0.9.12/build/lib/Release/vpb.exp 2>DataSet.obj : error
> LNK2019: unresolved external symbol "__declspec(dllimport) public:
> void __thiscall osgViewer::Viewer::`vbase destructor'(void)"
> (__imp_??_DViewer@osgViewer@@QAEXXZ) referenced in function
> __unwindfunclet$?_run@DataSet@vpb@@IAEHXZ$0 2>DataSet.obj : error
> LNK2019: unresolved external symbol "__declspec(dllimport) public:
> virtual __thiscall osgViewer::Viewer::~Viewer(void)"
> (__imp_??1Viewer@osgViewer@@UAE@XZ) referenced in function "protected:
> int __thiscall vpb::DataSet::_run(void)" (?_run@DataSet@vpb@@IAEHXZ)
> 2>DataSet.obj : error LNK2019: unresolved external symbol
> __imp__osgViewerGetVersion referenced in function "protected: int
> __thiscall vpb::DataSet::_run(void)" (?_run@DataSet@vpb@@IAEHXZ)
> 2>DataSet.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: __thiscall
> osgViewer::Viewer::Viewer(void)" (__imp_??0Viewer@osgViewer@@QAE@XZ)
> referenced in function "protected: int __thiscall
> vpb::DataSet::_run(void)" (?_run@DataSet@vpb@@IAEHXZ)
> 2>C:\projects\vpb0.9.12\build\lib\Release\vpb.dll : fatal error
> LNK1120: 4 unresolved externals
> 
> If you noticed it is unable to resolve some symbols related to the
> osgviewer, and from the previous section of the list of link dependent
> libraries, it did not include a osgviewer.lib, so we need to add that.
> Go back to where we changed the path to the osg.lib and add a new lib.
> If you save all the changes and rebuild, you will still a last
> remaining linker error related to a symbol already existing in two
> places.
> Go back to the Linker section. But instead of the "Input" panel,
> go to the "General" panel. Select the "Force File Output" and look at
> the choices of settings.
> There will be /FORCE, /FORCE:MULTIPLE, and /FORCE:UNRESOLVED. Use
> /FORCE:MULTIPLE.
> Save the changes, and re-build.
> 
> 
> 
> On Fri, Jul 20, 2012 at 2:08 PM, Yonas Sahlemariam
> <> wrote:
> 
> > Hi,
> > 
> > thanks for the reply,
> > 
> > can you also tell me which compiler you used?
> > 
> > I have tried building VPB (v0.9.12) using OSG (v3.0.1 32-bit built myself 
> > using MSVC 2010 on win64) and pre-build GDAL(v1.6) from 
> > http://www.gisinternals.com/sdk/. I ended up with the same error discussed 
> > in this thread 
> > (http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2010-August/044528.html).
> >  They suggested setting /FORCE:MULTIPLE in the linker param but it doesn't 
> > help in my case :(
> > 
> > 
> > 
> > sk92129 wrote:
> > 
> > > I have successfully built VPB (32 bit build on Windows 7 64 bit machine) 
> > > with :
> > > 
> > > OSG version 3.0.1   from
> > > http://www.openscenegraph.org/projects/osg/wiki/Downloads
> > > VPB version 0.9.12 from
> > > http://www.openscenegraph.org/projects/VirtualPlanetBuilder/browser/tags/VirtualPlanetBuilder-0.9.12
> > > GDAL version 1.6.0 from http://trac.osgeo.org/gdal/wiki/DownloadSource
> > > And the OSG 3rd party binaries from
> > > http://www.alphapixel.com/osg/downloads/openscenegraph-third-party-library-downloads
> > > 
> > > 
> > > 
> > > 
> > > 
> > > On Fri, Jul 20, 2012 at 7:01 AM, Yonas Sahlemariam
> > > <> wrote:
> > > 
> > > 
> > > > Hi quzayli,
> > > > 
> > > > I wanted to test VirtualPlanetBuilder-2.9.10 and OSG-2.8.3 as you 
> > > > recommended, but I couldn't find VirtualPlanetBuilder-2.9.10. It seems 
> > > > that VirtualPlanetBuilder-0.9.11 is the latest version as of today(july 
> > > > 20).
> > > > 
> > > > 
> > > > 
> > > > 
> > > > quzayli wrote:
> > > > 
> > > > 
> > > > > Hi,
> > > > > 
> > > > > I had the same problem with VirtualPlanetBuilder. I did same changes 
> > > > > in source and it worked. But for me VirtualPlanetBuilder-2.9.10 which 
> > > > > needs OSG-2.8.3 is the best because i think that this version is 
> > > > > optimal than others. You can use VPB-2.9.10 for creating mesh and 
> > > > > then you can use this mesh in OSG-3.0.0. Strange but i test that 
> > > > > osgGis dont work with other versions of VTB..
> > > > > ...
> > > > > 
> > > > > Thank you!
> > > > > 
> > > > > Cheers,
> > > > > Umid
> > > > > 
> > > > > 
> > > > 
> > > > 
> > > > ------------------
> > > > Read this topic online here:
> > > > http://forum.openscenegraph.org/viewtopic.php?p=48959#48959
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > _______________________________________________
> > > > osg-users mailing list
> > > > 
> > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > > > 
> > > > 
> > > _______________________________________________
> > > osg-users mailing list
> > > 
> > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > > 
> > > ------------------
> > > Post generated by Mail2Forum
> > > 
> > 
> > 
> > ------------------
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=48966#48966
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > osg-users mailing list
> > 
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > 
> _______________________________________________
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  ------------------
> Post generated by Mail2Forum


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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to