Hi all,

I'm trying to install a Mapnik trunk checkout (r691) in Mac OS 10.5.2
and having problems.  The build and install seem to go ok (with some
mysterious warnings I don't understand, like
"/opt/local/include/python2.5/pyconfig.h:519:1: warning: this is the
location of the previous definition"), but when I try to import the
mapnik module in Python I get this:

>>> import mapnik
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/Users/kueda/<ipython console> in <module>()

/opt/local/lib/python2.5/site-packages/mapnik/__init__.py in <module>()
     29 setdlopenflags(RTLD_NOW | RTLD_GLOBAL)
     30
---> 31 from _mapnik import *
     32 from paths import inputpluginspath, fontscollectionpath
     33

ImportError: dlopen(/opt/local/lib/python2.5/site-packages/mapnik/_mapnik.so,
10): Library not loaded: libmapnik.dylib
  Referenced from: /opt/local/lib/python2.5/site-packages/mapnik/_mapnik.so
  Reason: image not found


I'm assuming either libmapnik.dylib wasn't built quite right, or that
there's a path problem and _mapnik isn't looking for libmanik.dylib in
the right place, but I'm not sure how to begin debugging either of
these problems.  Here's my build command:

python scons/scons.py                              \
  PREFIX=/opt/local                                \
  BOOST_INCLUDES=/opt/local/include                \
  BOOST_LIBS=/opt/local/lib                        \
  FREETYPE_CONFIG=/opt/local/bin/freetype-config   \
  ICU_INCLUDES=/opt/local/include                  \
  ICU_LIBS=/opt/local/lib                          \
  PNG_INCLUDES=/opt/local/include                  \
  PNG_LIBS=/opt/local/lib                          \
  JPEG_INCLUDES=/opt/local/include                 \
  JPEG_LIBS=/opt/local/lib                         \
  TIFF_INCLUDES=/opt/local/include                 \
  TIFF_LIBS=/opt/local/lib                         \
  PGSQL_INCLUDES=/opt/local/include                \
  PGSQL_LIBS=/opt/local/lib                        \
  PROJ_INCLUDES=/opt/local/include                 \
  PROJ_LIBS=/opt/local/lib                         \
  GDAL_INCLUDES=/opt/local/include                 \
  GDAL_LIBS=/opt/local/lib                         \
  PYTHON=/opt/local/bin/python


Can anyone recommend a solution?  I'm not at the most recent boost
(1.34.1_2) or python (2.5.2_0) so maybe I should try updating...

-Ken-ichi
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to