On Sun, Jan 17, 2010 at 8:01 PM, Dane Springmeyer <[email protected]> wrote:
>
> On Jan 17, 2010, at 9:11 AM, Michael Friis wrote:
>
>>> The compile gets further with boost 1.42, but oddly exits with a
>>> similar-looking error (both mapnik trunk and 0.7):
>>
>> Aha, it turns out scons was detecting boost 1.42 headers but was
>> actually using 1.40 boost stuff installed using apt-get. I've now
>> removed all boost 1.40 related packages. This leads to a new
>> conondrum:
>> "Could not find required header or shared library for boost regex".
>
>
> Open up the file that Scons creates in the mapnik source folder called
> 'config.log' and find the error related to boost_regex.
>
> Feel free to jump back on IRC or send an email back here with what you find.
>
> My guess is that libboost_regex has a linking problem with icu, which it
> optionally requires.
>
> Mapnik trunk requires boost_regex built with icu support, Mapnik 0.7 does
> not.
>
> ldd /usr/local/lib/libboost_regex.so should give you some details.
>
> You may need to rebuild boost regex with icu support.
>
> Dom's recent email hinted at how to do this:
>
> bjam toolset=gcc --with-regex -sHAVE_ICU=1-sICU_PATH=/usr/local/ -a
>
> (the '/usr/local' assumes you built icu yourself)
In case anyone's interested, I resolved this (under springmeyers
tutelage) in the following way: I switched to Mapnik 0.7 which doesn't
require boost-regex be built with ICU. I rebuilt regex-boost
explicitly without ICU (by temporarily moving
/usr/local/include/unicode to /tmp). I then built mapnik 0.7 as per
the usual instructions.
I hit another bump after this when running "import mapnik" in the
python shell (I include the solution here in case it's related to the
above -- it may not be relevant for you): "ImportError:
/usr/local/lib/libmapnik.so.0.7: undefined symbol:
_ZN6icu_4313UnicodeStringD1Ev".
This was resolved (again by springmeyer) by patching SConstruct with this:
Index: SConstruct
===================================================================
--- SConstruct (revision 1566)
+++ SConstruct (working copy)
@@ -1019,6 +1019,9 @@
if not HELP_REQUESTED:
Exit(0)
+env.Prepend(CPPPATH = '/usr/local/include')
+env.Prepend(LIBPATH = '/usr/local/lib')
+
# autogenerate help on default/current SCons options
Help(opts.GenerateHelpText(env))
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users