On Tue, Oct 02, 2012 at 02:51:34PM -0700, phil rosenberg wrote: > Hi All > I just downloaded shapelib and it builds with no difficulties at all on > Windows. It?seems to be?written in "pure" C so it is just a case of compiling > and linking the files - no build system is necessary as such. In less than an > hour I had built the library and written a 10 line chunk of code to read in > in file. In this sense then it would be easy to make use of. > ? > However I still have some Windows pejudices. It's not at all clear to me how > CMake could find out if I have shapelib or not automatically or even what the > library is called (I just created shapelibsd.lib and shapelibs.lib s for > static, d for debug). > ? > It's always worth remembering that not everyone is an expert and for a long > time after starting using C++. I found compiling PLplot for the first time > (some years ago)?a challenge and the more complexity we add the more we might > put off?potential users (especially on Windows) > ?
To demonstrate how easy it is I've added cmake support for shapelib to plplot. This is currently only tested on Linux, but should work on other platforms. You may need to set the SHAPELIB_INCLUDE_DIR and add to the library paths, but it should be relatively straightforward. At least this gives a template to work from. Debian installs the library as libshp.so so I would suggest sticking to a naming convention with shp as the the base library name. The cmake support will assume that, and will add on the appropriate prefixes / suffixes for each platform. Cheers Andrew ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel