Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INSTALL.md should note libboost min version #1001

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

INSTALL.md should note libboost min version #1001

kayD opened this issue Jan 3, 2012 · 2 comments

Comments

@kayD
Copy link

kayD commented Jan 3, 2012

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
Copy link
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 pushed a commit that referenced this issue Jan 9, 2012
springmeyer pushed a commit that referenced this issue Jan 9, 2012
@kayD
Copy link
Author

kayD commented Jan 9, 2012

Boost 1.42 works fine in most cases

Ok, maybe it's worth mentioning anyway that arising problems may be resolved by switching to boost 1.46, assuming that upgrading poses no other problems.

springmeyer pushed a commit that referenced this issue Feb 14, 2012
springmeyer pushed a commit that referenced this issue Feb 15, 2012
kkaefer pushed a commit to kkaefer/mapnik that referenced this issue Feb 16, 2012
kkaefer pushed a commit to kkaefer/mapnik that referenced this issue Feb 16, 2012
kkaefer pushed a commit to kkaefer/mapnik that referenced this issue Feb 16, 2012
kkaefer pushed a commit to kkaefer/mapnik that referenced this issue Feb 16, 2012
kkaefer pushed a commit to kkaefer/mapnik that referenced this issue Feb 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants