wiki:BuildingOnUnixWithAutotools

Version 8 (modified by mloskot, 8 years ago) (diff)

--

Building on Unix with Autotools

The following instructions are dedicated to users of Unix-like systems (Linux, Mac OS X, Solaris, *BSD, etc.)

Requirements

  • Decent C++ compiler and C++ Standard Library, GNU GCC 4.x or later recommended
  • Download the latest source code release or checkout from SVN trunk.

Configure

Note, if you are building GEOS downloaded from SVN, you need to have Autotools available in your system, so you can first generate ./configure script using the following command:

$ ./autogen.sh

Now, run configuration script:

$ ./configure

For more details about configuration options run:

$ ./configure --help

Build

$ make

Test

$ make check

Install

$ make install

Build Hints

Feel free to update this article with build hints related to Autotools-based configuration that may be useful for users of Unix-like systems.

Solaris

  • From #331 - Build fails on linking on Solaris
$ LIBS="-lm" ./configure ...