mapnik/mapnik — Issue #1069: can't build master
Author: jfgirard
Created: 2012-02-07 20:09:58+00:00
State: open

Hi,

I would like to use mapnik in my node server. I need to install the laster mapnik (2.1-dev) in order to do that. I install the dependencies using brew (im on OS X 10.7.3).
https://github.com/mapnik/mapnik/wiki/MacInstallation_Homebrew

The ./configure did work well. But, doing the Make, it failed.

MacBook-Air:mapnik jeanfelixg$ ./configure CXX="clang++" JOBS=`sysctl -n hw.ncpu`
scons: Reading SConscript files ...

Welcome to Mapnik...

Configuring build environment...
SCons CONFIG found: 'config.py', variables will be inherited...
Configuring on Darwin in *release mode*...
Checking for freetype-config... yes
Checking for xml2-config... yes
Sorting lib and inc compiler paths...(cached) yes
Checking for C library m... yes
Checking for C library ltdl... yes
Checking for C library png... yes
Checking for C library tiff... yes
Checking for C library z... yes
Checking for C library proj... yes
Checking for C++ library icuuc... yes
Checking for C library jpeg... yes
Checking for ICU version >= 4.2... found: icu 4.8
(cached) Searching for boost libs and headers... (cached)
*libs found: /usr/local/lib
*headers found: /usr/local/include
*lib naming extension found: -mt
Checking for Boost version >= 1.41... yes
Found boost lib version... 1_48
Checking for C++ library boost_system-mt... yes
Checking for C++ library boost_filesystem-mt... yes
Checking for C++ library boost_regex-mt... yes
Checking for C++ library boost_program_options-mt... yes
Checking for C++ library boost_thread-mt... yes
Checking if boost_regex was built with ICU unicode support... (cached) no
Checking for requested plugins dependencies...
Checking for gdal-config --libs... yes
Checking for gdal-config --cflags... yes
Checking for name of gdal library... gdal
Checking if gdal is ogr enabled... yes
Checking for name of ogr library... gdal
Checking for pg_config... yes
Checking for C library sqlite3... yes
Checking if SQLite supports RTREE... (cached) yes
Checking for pkg-config... yes
Checking for cairo... yes
Checking for cairomm-1.0... yes
Checking for at least version 1.8.0 for cairomm-1.0... yes
Checking for cairo/cairomm lib and include paths... yes
Checking for C++ header file boost/python/detail/config.hpp... yes
Checking for pkg-config... yes
Checking for pycairo... no

All Required dependencies found!

Overwriting and re-saving file 'config.py'...
Will hold custom path variables from commandline and python config file(s)...

Note: will build without these OPTIONAL dependencies:
- boost_regex_icu (libboost_regex built with optional ICU unicode support is needed for unicode regex support in mapnik.)
- pycairo (Python bindings to Cairo library | configured using pkg-config | try setting PKG_CONFIG_PATH SCons option)

Checking for C header file Python.h... yes
Bindings Python version... 2.7
Python 2.7 prefix... /System/Library/Frameworks/Python.framework/Versions/2.7
Python bindings will install in... /Library/Python/2.7/site-packages

Configure completed: run `make` to build or `make install`
MacBook-Air:mapnik jeanfelixg$ make
python scons/scons.py
scons: Reading SConscript files ...
Using previous successful configuration...
Re-configure by running "python scons/scons.py configure".

Welcome to Mapnik...

scons: done reading SConscript files.
scons: Building targets ...
clang++ -o bindings/python/mapnik_color.os -c -DHAVE_JPEG -ansi -Wall -ftemplate-depth-300 -DDARWIN -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts -DNDEBUG -DHAVE_CAIRO -fPIC -Ideps/agg/include -I. -Iinclude -I/usr/local/Cellar/postgresql/9.1.2/include -I/usr/local/Cellar/gdal/1.9.0/include -I/usr/local/include -I/usr/include -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/include/libxml2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/Cellar/cairomm/1.8.4/include/cairomm-1.0 -I/usr/local/Cellar/cairomm/1.8.4/lib/cairomm-1.0/include -I/usr/local/Cellar/libsigc++/2.2.10/include/sigc++-2.0 -I/usr/local/Cellar/libsigc++/2.2.10/lib/sigc++-2.0/include -I/usr/local/Cellar/pixman/0.24.2/include/pixman-1 -I/usr/X11/include/cairo -I/usr/X11/include/libpng15 bindings/python/mapnik_color.cpp
...
Then the error:

clang++ -o src/markers_symbolizer.os -c -DHAVE_JPEG -ansi -Wall -ftemplate-depth-300 -DDARWIN -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts -DNDEBUG -DHAVE_CAIRO -fPIC -I/usr/local/Cellar/cairomm/1.8.4/include/cairomm-1.0 -I/usr/local/Cellar/cairomm/1.8.4/lib/cairomm-1.0/include -I/usr/local/Cellar/libsigc++/2.2.10/include/sigc++-2.0 -I/usr/local/Cellar/libsigc++/2.2.10/lib/sigc++-2.0/include -I/usr/local/Cellar/pixman/0.24.2/include/pixman-1 -I/usr/X11/include/cairo -I/usr/X11/include/libpng15 -Ideps/agg/include -I. -Iinclude -I/usr/local/Cellar/postgresql/9.1.2/include -I/usr/local/Cellar/gdal/1.9.0/include -I/usr/local/include -I/usr/include -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/include/libxml2 src/markers_symbolizer.cpp
clang++ -o src/metawriter.os -c -DHAVE_JPEG -ansi -Wall -ftemplate-depth-300 -DDARWIN -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts -DNDEBUG -DHAVE_CAIRO -fPIC -I/usr/local/Cellar/cairomm/1.8.4/include/cairomm-1.0 -I/usr/local/Cellar/cairomm/1.8.4/lib/cairomm-1.0/include -I/usr/local/Cellar/libsigc++/2.2.10/include/sigc++-2.0 -I/usr/local/Cellar/libsigc++/2.2.10/lib/sigc++-2.0/include -I/usr/local/Cellar/pixman/0.24.2/include/pixman-1 -I/usr/X11/include/cairo -I/usr/X11/include/libpng15 -Ideps/agg/include -I. -Iinclude -I/usr/local/Cellar/postgresql/9.1.2/include -I/usr/local/Cellar/gdal/1.9.0/include -I/usr/local/include -I/usr/include -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/include/libxml2 src/metawriter.cpp
src/symbolizer_helpers.cpp:197:13: error: non-const lvalue reference to type 'mapnik::evaluate' cannot bind to a temporary of type 'evaluate'
evaluate(feature_),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/symbolizer_helpers.cpp:372:16: note: in instantiation of member function
'mapnik::text_symbolizer_helper,
mapnik::label_collision_detector4>::next_placement' requested here
template class text_symbolizer_helper, label_collision_detector4>;
^
/usr/local/include/boost/variant/detail/apply_visitor_unary.hpp:58:24: note: passing argument to parameter 'visitor' here
apply_visitor(Visitor& visitor, Visitable& visitable)
^
3 warnings generated.
clang++ -o src/raster_colorizer.os -c -DHAVE_JPEG -ansi -Wall -ftemplate-depth-300 -DDARWIN -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts -DNDEBUG -DHAVE_CAIRO -fPIC -I/usr/local/Cellar/cairomm/1.8.4/include/cairomm-1.0 -I/usr/local/Cellar/cairomm/1.8.4/lib/cairomm-1.0/include -I/usr/local/Cellar/libsigc++/2.2.10/include/sigc++-2.0 -I/usr/local/Cellar/libsigc++/2.2.10/lib/sigc++-2.0/include -I/usr/local/Cellar/pixman/0.24.2/include/pixman-1 -I/usr/X11/include/cairo -I/usr/X11/include/libpng15 -Ideps/agg/include -I. -Iinclude -I/usr/local/Cellar/postgresql/9.1.2/include -I/usr/local/Cellar/gdal/1.9.0/include -I/usr/local/include -I/usr/include -I/usr/X11/include/freetype2 -I/usr/X11/include -I/usr/include/libxml2 src/raster_colorizer.cpp
1 error generated.
scons: *** [src/symbolizer_helpers.os] Error 1
scons: building terminated because of errors.
make: *** [mapnik] Error 2

What's wrong ?

Thanks!