Hi Tobias,

> I was trying to compile matplotlib basemap
> (http://sourceforge.net/projects/matplotlib/files/matplotlib-
> toolkits/basemap-1.0.7/) which depends on libgeos.
> The compilation fails because matplotlib basemap tries to link against
> "libgeos.so" but in "/usr/lib" only "libgeos-3.3.3-so" is present.
> When manually creating a link ("sudo ln -s /usr/lib/libgeos-3.3.3.so
> /usr/lib/libgeos.so"), the compilation/linking works without problems.
> I think during installation this link should be created.

Creating library symlinks manuall is seldomly a good idea.

libgeos-3.3.3.so is the C++ library, linking against this is discouraged.
Applications should like to the C API (libgeos_c.so) which is considered

In de documentation for mathplotlib basemaps they document linking to the

If you already have it on your system, just set the environment variable
GEOS_DIR to point to the location of libgeos_c and geos_c.h (if libgeos_c
is in /usr/local/lib and geos_c.h is in /usr/local/include, set GEOS_DIR
to /usr/local).

See: https://github.com/matplotlib/basemap

Please try the above procedure to build mathplotlibs basemap with the GEOS
C API. You may need to install libgeos-c1 if it's not already installed.

Kind Regards,


Pkg-grass-devel mailing list

Reply via email to