INSTALL.md should note libboost min version #1001

Closed
kayD opened this Issue Jan 3, 2012 · 2 comments

2 participants

@kayD

I tried to install mapnik 2 on Ubuntu oneiric and installed libboost 1.42 first. There were errors compiling with python scons/scons.py

g++ -o src/mapped_memory_cache.os -c -DHAVE_JPEG -DBOOST_REGEX_HAS_ICU -ansi -Wall -pthread -ftemplate-depth-300 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts -DNDEBUG -DHAVE_CAIRO -fPIC -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -Ideps/agg/include -I. -Iinclude -I/usr/local/include -I/usr/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/postgresql src/mapped_memory_cache.cpp
In file included from /usr/include/boost/interprocess/detail/utilities.hpp:29:0,
                 from /usr/include/boost/interprocess/mapped_region.hpp:20,
                 from include/mapnik/mapped_memory_cache.hpp:33,
                 from src/mapped_memory_cache.cpp:26:
/usr/include/boost/interprocess/detail/transform_iterator.hpp:57:15: error: reference ‘m_value’ cannot be declared ‘mutable’ [-fpermissive]
scons: *** [src/mapped_memory_cache.os] Error 1
scons: building terminated because of errors.
make: *** [mapnik] Error 2

I could resolve this problem by removing libboost 1.42 and installing libboost 1.46. So the documentation should
state the required minimum version for libboost, or (better) it should be checked in the .configure script.

@springmeyer
Mapnik member

Boost 1.42 works fine in most cases, but yes I have seen that error on ubuntu. I think it is a boost bug that is likely fixed in some packages of 1.42 (or only affects certain g++ versions). I compile frequently for example, mapnik with boost 1.42 on Mac OS, without problem.

@springmeyer springmeyer added a commit that referenced this issue Jan 9, 2012
@springmeyer springmeyer Revert "recommend 1.46 since that dodges the ubuntu issue with interp…
…rocess - refs #950 and #1001"

This reverts commit 6005997.
ca1b5ea
@springmeyer springmeyer added a commit that referenced this issue Jan 9, 2012
@springmeyer springmeyer scons: fully workaround potential compile error with gcc/boost 1.42/u…
…buntu relating to interprocess bug - refs #1001 and #950
1b3d232
@kayD
@springmeyer springmeyer added a commit that referenced this issue Feb 14, 2012
@springmeyer springmeyer add permissive flag to ogr and shape plugins to work around boost int…
…erprocess compile bug - closes #1082 - refs #950 and #1001
e2d398f
@springmeyer springmeyer added a commit that referenced this issue Feb 15, 2012
@springmeyer springmeyer add permissive flag to ogr and shape plugins to work around boost int…
…erprocess compile bug - closes #1082 - refs #950 and #1001
01d6567
@kkaefer kkaefer pushed a commit to kkaefer/mapnik that referenced this issue Feb 16, 2012
@springmeyer springmeyer clarify recommended boost versions - closes #1001 34e0cd7
@kkaefer kkaefer pushed a commit to kkaefer/mapnik that referenced this issue Feb 16, 2012
@springmeyer springmeyer recommend 1.46 since that dodges the ubuntu issue with interprocess -…
… refs #950 and #1001
69f4cec
@kkaefer kkaefer pushed a commit to kkaefer/mapnik that referenced this issue Feb 16, 2012
@springmeyer springmeyer Revert "recommend 1.46 since that dodges the ubuntu issue with interp…
…rocess - refs #950 and #1001"

This reverts commit 6005997.
156026c
@kkaefer kkaefer pushed a commit to kkaefer/mapnik that referenced this issue Feb 16, 2012
@springmeyer springmeyer recommend 1.46 since that dodges the ubuntu issue with interprocess -…
… refs #950 and #1001
894494a
@kkaefer kkaefer pushed a commit to kkaefer/mapnik that referenced this issue Feb 16, 2012
@springmeyer springmeyer scons: fully workaround potential compile error with gcc/boost 1.42/u…
…buntu relating to interprocess bug - refs #1001 and #950
e9bb566
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment