[osg-users] Please Help with Setup

Ralf Stokholm alfmail1 at arenalogic.com
Sun Nov 15 12:52:52 PST 2009


Hi Jacob

Not sure why you are hawing problems with your setup, im using vs2008 but it
shouldent make much difference comparred to vs2005. You could try
downloading vs2008 express though I have successfully build using the
express versions.

Anyway I have a folder called scenerygenerator in my svn with the following
svn externals....

osg
http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-2.8.2
osgdata
http://www.openscenegraph.org/svn/osg/OpenSceneGraph-Data/tags/OpenSceneGraph-Data-2.8.0
3rdPartysvn
https://osgtoy.svn.sourceforge.net/svnroot/osgtoy/3rdParty/branches/3rdParty_win32binaries_vs80sp1
osgdem
http://www.openscenegraph.org/svn/VirtualPlanetBuilder/tags/VirtualPlanetBuilder-0.9.10
>From there on I use scripts for building osg, with little modefication they
should work for you as well.

I use FWtools for gdal etc, install FWtools 2.4.6 or edit the script to
whatever you use. same goes for your visual studio stuff.

The put the following in a build script in the folder you set the svn
externals on, then is should build :-) when not let me know.

##########################################################################################
setlocal
SET AX=%CD%
if exist "C:\Program Files" set PGM_FILES=C:\Program Files
if exist "C:\Program Files (x86)" set PGM_FILES=C:\Program Files (x86)
SET OSG_SOURCE_DIR=%AX%\osg
SET OSG_DIR=%AX%\osgbuild
SET OSG_INCLUDE_DIR=%AX%\osg\include;%AX%\osgbuild\include
SET INCLUDE=%INCLUDE%;%OSG_INCLUDE_DIR%
::Call environment variables script
call "%PGM_FILES%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
::call "%PGM_FILES%\Microsoft Platform SDK for Windows Server 2003
R2\SetEnv.Cmd" /XP32
:OSG
@echo ""
@echo ########################################################
@echo # Building openSceneGraph
@echo ########################################################
@echo ""
if not exist ./osgbuild md osgbuild
pushd osgbuild
 cmake -debug-output ..\osg -G "Visual Studio 9 2008" -DWIN32_USE_MP:BOOL=ON
-DFREETYPE_INCLUDE_DIR_ft2build=%AX%\3rdParty\include
-DFREETYPE_INCLUDE_DIR_freetype2=%AX%\3rdParty\include
-DFREETYPE_LIBRARY=%AX%\3rdParty\lib\freetype237.lib
-DCMAKE_BUILD_TYPE=Release
 vcbuild /useenv OpenSceneGraph.sln "Release|Win32"
 ::vcbuild /useenv OpenSceneGraph.sln "Debug|Win32"
popd
::goto END
:VPB
@echo ""
@echo ########################################################
@echo # Building VirtualPlanetBuilder
@echo ########################################################
@echo ""
if not exist ./osgdembuild md osgdembuild
pushd osgdembuild
 cmake -debug-output ..\osgdem -G "Visual Studio 9 2008"
-DCURL_INCLUDE_DIR=%AX%\3rdParty\include
-DCURL_LIBRARY="%AX%\3rdParty\lib\curllib.lib"
-DGDAL_LIBRARY="%PGM_FILES%\FWTools2.4.6\lib\gdal_i.lib"
-DGDAL_INCLUDE_DIR="%PGM_FILES%\FWTools2.4.6\include"
-DCMAKE_BUILD_TYPE=Release
 vcbuild /useenv VIRTUALPLANETBUILDER.sln "Release|Win32"
 ::vcbuild /useenv VIRTUALPLANETBUILDER.sln "Debug|Win32"
popd

:END
endlocal
###############################################################################

Brgs.

Ralf Stokholm
www.arenalogic.com


2009/11/15 Chris 'Xenon' Hanson <xenon at alphapixel.com>

> Jacob Armstrong wrote:
> > Thanks for the response, Chris! I would definitely like to discuss this
> > further, and I think a phone call would help out tremendously. Would I
> > be able to reach you at that phone number during the week?
>
>  Certainly.
>
> > I'm not sure
> > what I can do as far as the remote-desktop assistance, that would be
> > up to my manager. The link you provided worked in my web browser, so I
> > could manually download everything if need-be, right?
>
>  I've never tried that, and I don't know how that would work. You really do
> want to have
> Subversion operating correctly though, to stay on top of bug fixes.
>
> > The only problem
> > I would have after that is setting up the VirtualPlanetBuilder
> > directories so they play with the OSG, if I even need that.
>
>  You will need that.
>
> > The only
> > thing I'm really using out of the entire product is OSGDem, which I
> > understand is in VPB now. Do I really need OSG to be able to run VPB?
>
>  You need OSG to build VPB, and to run VPB/OSGDEM.
>
> > If
> > so, then I'm not sure how to set them both up, with dependencies so they
> > work together. My availability is pretty limited today as well, and I'm
> > actually traveling for work this week, so I'm not sure when I'll be able
> > to phone you if you're still available after today.
>
>  Well, get in touch when you're ready to discuss it.
>
> > Thanks,
> > Jake
>
> --
> Chris 'Xenon' Hanson, omo sanza lettere                  Xenon
> AlphaPixel.com
> PixelSense Landsat processing now available!
> http://www.alphapixel.com/demos/
> "There is no Truth. There is only Perception. To Perceive is to Exist." -
> Xen
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20091115/776aa903/attachment.htm>


More information about the osg-users mailing list