Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

For using liblwgeom function in spatialite, I need to compile the library. I found that it is included in the PostGIS code.

My question is, how to compile the library without compiling the whole PostGIS?

share|improve this question
    
What type of system are you trying to build spatialite on? –  BradHards Jan 19 '13 at 4:51
    
64 bit ubuntu 11.10 –  Harold Chan Jan 19 '13 at 4:53
    
Are you looking for GEOS (the geometry library that powers spatialite and and postgis) –  Ragi Yaser Burhum Jan 19 '13 at 5:36
    
No, liblwgeom is another library provided by PostGIS. –  Harold Chan Jan 19 '13 at 5:39
add comment

1 Answer 1

up vote 1 down vote accepted

There may be an easier way, but one option:

  • get source code for postgis (svn or recent tarball)
  • make sure you have dependencies (e.g. install postgres devel packages, or just do aptitude build-dep postgis)
  • ./autogen.sh (if using svn checkout)
  • ./configure --without-raster --without-topology
  • check results, fix as required
  • cd liblwgeom
  • make
  • sudo make install if required
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.