I tested this on Windows using gcc (under MinGW, not MSYS) and
MSVC/C++ 10.0 (plain Windows). I did not test the install target though.
It simply works, only the usual caveat:
- The sample programs that come with shapelib require the shp.dll DLL
and that is stored in a subdirectory. So to run them you have to
set the path to include that directory or copy the DLL into the
directory containing these programs.
The shapelib library seems to insist that there is an index file, .shx.
Or that may just be the sample program. As the shape file (.shp) itself
contains the coordinates and the index file is only a means to make
look-ups faster, I was a bit surprised about that.
On 2012-10-31 01:35, Alan W. Irwin wrote:
> I have just (revision 12261) implemented and tested on both Linux and
> MinGW/MSYS/Wine a complete CMake-based build system for shapelib. My
> tests on both platforms included running ctest for shapelib as well as
> running example 19 for a PLplot version built using shapelib built
> with the new CMake-based build system.
> Just follow the simple directions in the
> cmake/external/shapelib/README file if you are interested in trying
> out this new CMake-based build system for shapelib.
> I would welcome further testing of the new CMake-based build system
> for shapelib on all platforms, but that goes especially for the
> various Microsoft Windows platforms accessible to Arjen, Hazen, and
> Phil to verify the good results I got on Wine.
> Alan W. Irwin
> Astronomical research affiliation with Department of Physics and Astronomy,
> University of Victoria (astrowww.phys.uvic.ca).
> Programming affiliations with the FreeEOS equation-of-state
> implementation for stellar interiors (freeeos.sf.net); the Time
> Ephemerides project (timeephem.sf.net); PLplot scientific plotting
> software package (plplot.sf.net); the libLASi project
> (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
> and the Linux Brochure Project (lbproject.sf.net).
> Linux-powered Science
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> Plplot-devel mailing list
DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited.
The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail.