[Shapelib] [Fwd: shapelib built on macosx, changes to makefile]

Curt, WE7U archer at eskimo.com
Thu Nov 4 17:30:35 EST 2004


On Thu, 4 Nov 2004, Frank Warmerdam wrote:

> Suggestions for building shapelib on MacOS.  I would add that shapelib is
> tiny.  Perhaps people should skip the shared library and just use it as a
> static library!  I am not particularly planning to incorporate the suggested
> changes.

FYI:  This is what we have in our app's instructions for building
Shapelib on MacOSX:


     For MacOSX:  Bill Owen, N2RKL, suggested the following for
     ShapeLib:

       "The shapelib Makefile wouldn't work out of the box, so I
       figured out what the important bits were and built them by
       hand:"

       -----------------------------------------------
         cc -c shpopen.c
         cc -c shptree.c
         cc -c dbfopen.c
         ar cru libshp.a shpopen.o shptree.o dbfopen.o
         sudo cp libshp.a /sw/lib
         sudo ranlib /sw/lib/libshp.a
         sudo mkdir /sw/include/libshp
         sudo cp shapefil.h /sw/include/libshp/
       -----------------------------------------------


--
Curt, WE7U			         http://www.eskimo.com/~archer
"Lotto:    A tax on people who are bad at math." -- unknown
"Windows:  Microsoft's tax on computer illiterates." -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"


More information about the Shapelib mailing list