[Liblas-devel] Building under VS2010
Michael Gerlek
mpg at flaxen.com
Fri Nov 19 19:30:47 EST 2010
I had to bootstrap my liblas development environment today, and as
these sorts of things are wont to go, it was a bit of a hassle the
first time through (especially since I'm new to cmake).
So, for the record, a couple lessons-learned.. not all of these may be
required, but they all seemed to help a little bit at various times
throughout the day:
(1) Use the cmake gui or the command line tool, but not both. And
remember to thoroughly delete your caches when you start fooling
around with things you don't really understand.
(2) In fact, don't use the cmake gui. Just make your own copy of
hobu-config.dat and use that instead.
(3) Make sure your include paths reference the osgeo4w gdal-dev
include world first, and then the regular osgeo4w include world. This
will solve your problems with SetEquirectangular2. Do the same for
your library paths too, just in case.
(4) Don't even try to build Oracle support until you've gotten
everything else working first.
(5) You only need to download the Boost libraries for serialization
and program-options -- none of the other libs. Really. And in
theory, you need to only pull down the multithreaded/static versions,
but I wound up bringing down all the versions before I was done.
If I was daring, I would now blow away my build environment and try
again from scratch, and see if any of the above is *really* needed.
But I'm not.
As my father always used to say, "It's easy, when you know how."
-mpg
More information about the Liblas-devel
mailing list