Hi Robert,

it was just a faulty setting of "GDAL_DIR" on my side. Now compiling
with "DYNAMIC_VIRTUALTERRAINBUILDER=ON" works, but running "osgdem"
leads to

   setDestinationName(output.ive)
      path 
      base output
      extension .ive
   Failed to create pbuffer, failing back to normal graphics window.
   Error: Unable to create graphis context - cannot run osgdem

I've OpenSUSE-10.2 (64-Bit), GeForce8800GTX, nVidia-OpenGL-driver
1.0-9755.

Additionally linking "osgdem" statically doesn't work, because "osgFX"
is linked afterwards "osg" -> "undefined reference".
Even changing the order in "src/vpb/CMakeLists.txt: LINK_EXTERNAL( ...
)" doesn't matter, because "osg" is as well linked directly to "osgdem",
and the macro(SETUP_LINK_LIBRARIES) discards the second "osg" to link
...

And a last item:
I've installed OpenThreads separately from OSG (because I'm behind a
proxy and cannot checkout externals from SVN).
While there is an unused "FindOpenThreads.cmake" in
"VirtualPlanetBuilder" (as well as in "OSG"), I added its use to my
working copy of VPB.
Is it possible to merge this into the repository (I can submit the
files), or is this a too special case?

Rudi


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Tuesday, June 26, 2007 8:32 PM
To: osg users
Subject: Re: [osg-users] VirtualPlanetBuilder now ported over to use
CMake

Hi Rudolf,

On 6/26/07, Wiedemann, Rudolf, OPS3 <[EMAIL PROTECTED]>
wrote:
> "The end of a CMakeLists file was reached with an IF statement that
was
> not closed properly."
>
> => Typo in "VpbMacroUtils.cmake", line 181:
>
>             IF(VOB_BUILD_APPLICATION_BUNDLES)
>         =>  IF(VPB_BUILD_APPLICATION_BUNDLES)
>
> If this is fixed, there are following messages:

Thanks for the testing.  I presume you must be using a Mac then...
looking at the what code path breaks as I don't get this error.  Error
now fixed and checked in.

> CMake Error: This project requires some variables to be set,
> and cmake can not find them.
> Please set the following variables:
>
/common/source/VirtualPlanetBuilder/applications/osgdem/GDAL_INCLUDE_DIR
>
/common/source/VirtualPlanetBuilder/applications/osgdem/OSG_INCLUDE_DIR
> /common/source/VirtualPlanetBuilder/src/vpb/GDAL_INCLUDE_DIR
> /common/source/VirtualPlanetBuilder/src/vpb/OSG_INCLUDE_DIR
>
/common/source/VirtualPlanetBuilder/src/vpbPlugins/gdal/GDAL_INCLUDE_DIR
>
/common/source/VirtualPlanetBuilder/src/vpbPlugins/gdal/OSG_INCLUDE_DIR

This suggest that the FindGDAL.cmake and FindOSG.cmake din't find the
OSG and GDAL  respectively.

On my machine CMake found GDAL installed in /usr/local/ and the OSG
installed in my /home/robert/OpenSceneGraph - pointed to by the
OSG_DIR env var that I have previous set.

I've set my OSG_DIR to "" and get the errors:

CMake Error: This project requires some variables to be set,
and cmake can not find them.
Please set the following variables:
OSGDB_LIBRARY
OSGFX_LIBRARY
OSGUTIL_LIBRARY
OSG_INCLUDE_DIR
OSG_LIBRARY

Which is reasonable considering that my build of OpenSceneGraph isn't
installed anywhere :-)

Installing OpenSceneGraph allows CMake to find the OSG OK.

Whereabouts are is GDAL and OpenSceneGraph installed on your machine?

Robert.
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to