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
<[email protected]> 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
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to