Thanks, that did help. I've made much progress and am able to get the  
'from mapnik import *' to work without errors.

Now, however, when I try the "getting started" map image generation  
for the 'world_borders' shape file, the python process keeps churning  
(at about 100% CPU) without any results. After a few minutes I had to  
kill the process.

The command was "render_to_file(m,'world.png', 'png')" after all the  
other commands as suggested on the wiki page.

On Apr 18, 2008, at 8:22 AM, Justin Bronn wrote:

> I just rebuilt both a debug build and non-debug build using r694.  I  
> had
> no problems running the demo with both builds using Boost 1.34.1.  
> However, I ran into problems with the recently released Boost 1.35  
> and I've created a ticket with a patch that fixes these issues:
>
> http://trac.mapnik.org/ticket/90
>
> I've found that removing all previous attempted mapnik installs  
> prior to
> attempting a recompile is essential.  Thus, _before_ you instantiate  
> scons, clean up all your previous install attempts.  Attached is the  
> shell script I use (modify accordingly).
>
> When building Boost in OSX I've found that it is best to use their  
> `bjam` tool rather than their `configure` script.  Note that if you  
> have a dual-core system you can add the `-j2` flag to both `bjam`  
> and `scons` to take advantage of both cores:
>
> $ tar xjvf boost_1_35_0.tar.bz2
> $ cd boost_1_35_0
> $ export BOOST=`pwd`
> $ cd tools/jam/src
> $ ./build.sh darwin
> $ cd bin.macosxx86/
> $ export PATH=`pwd`:$PATH
> $ cd $BOOST
> $ bjam --toolset=darwin \
>   --with-thread --with-filesystem --with-iostreams \
>   --with-regex --with-program_options --with-python \
>   --with-system stage
> $ sudo bjam --toolset=darwin \
>   --with-thread --with-filesystem --with-iostreams \
>   --with-regex --with-program_options --with-python \
>   --with-system install
>
> After applying the patch from ticket #90 (assuming in Mapnik source  
> directory):
>
> $ python scons/scons.py PREFIX=/usr/local BOOST_INCLUDES=/usr/local/ 
> include/boost-1_35 BOOST_TOOLKIT=1_35
> $ sudo python scons/scons.py PREFIX=/usr/local BOOST_INCLUDES=/usr/ 
> local/include/boost-1_35 BOOST_TOOLKIT=1_35 install
>
> -Justin
> #!/bin/sh
> PREFIX=/usr/local
> PYTHON_PREFIX=/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
> python2.5/site-packages
>
> # Uninstalling Python `mapnik` module.
> rm -fr $PYTHON_PREFIX/mapnik
>
> # Uninstalling mapnik
> rm -fr $PREFIX/include/mapnik
> rm -fr $PREFIX/lib/mapnik
> rm -f $PREFIX/lib/libmapnik.*
> rm $PREFIX/bin/shapeindex
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users

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

Reply via email to