I have the OSG 3 Cookbook of Rui Wang and I am trying to use Virtual Planet Builder as explained in the book.
I have OSG 3.0.1 pre-built binaries from Alphapixel (Windows 32 bits, Visual C++ 2008).
As explained in the book, VPB needs GDAL and I installed it from binaries as provided by the link, but the instruction in the book is for Ubuntu and Debian:
Before we build VPB from the source code and use it for terrain creation later, we should establish some prerequisites. One is to install OSG headers and libraries at a reachable location. Of course every reader of this book should be able to achieve this.The other requirement is that you must have the GDAL library installed, which will be used
heavily in VPB for reading and parsing original raster data. You may download the source code and build it from the source code too. But GDAL has already provided various downloadable
binaries for different platforms and versions. Linux, Mac OS X, and Windows users please see the download link for details:
And Debian and Ubuntu developers can also make use of the common apt-get command to obtain GDAL binaries and developer files:
# apt-get install gdal-bin
# apt-get install libgdal-dev
I installed Gdal for Windows from the binaries and it is working as I can test some command-line functions like gdal_translate, etc...
Then I checked out VPB with svn and the Cmake file asks for GDAL_INCLUDE_DIR and GDAL_LIBRARY but I can't find them on my GDAL folder (C:\Program Files (x86)\GDAL). In the book (for Ubuntu), these are:
GDAL_INCLUDE_DIR = /usr/include/gdal
GDAL_LIBRARY = /usr/lib/libgdal1.7.0.so
Could someone explains how to build VPB for Windows and what libraries/paths/folders to set to make it work ?