[Tile-serving] [mod_tile] Compiling with Mapnik master (3.x) (#55)

Andrey-VI notifications at github.com
Wed Aug 13 08:55:02 UTC 2014


Seems that still not fixed yet.

Sources:
mod_tile: https://github.com/openstreetmap/mod_tile/commit/4f9b9f1cf6d339c7ef6afda310bc34e6621cdbd6
Mapnik master: https://github.com/mapnik/mapnik/commit/44844f7bd0b11b9b68887e3e4a678d3dd82eda8a

Steps:
Last patch above (https://github.com/openstreetmap/mod_tile/issues/55#issuecomment-44064119)
```
export CXXFLAGS="$(mapnik-config --cflags)"
export LDFLAGS="$(mapnik-config --ldflags)"
```
Before ./autogen.sh && ./configure

Result:
```
make[1]: Entering directory '/home/andrey/sources/mod_tile-master'
depbase=`echo src/gen_tile.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I./includes  -I/usr/include/freetype2 -pthread -I/usr/local/include -I/usr/local/include/mapnik/agg -I/usr/include  -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/freetype2 -I/usr/include/libdrm -I/usr/include/libpng12  -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/freetype2 -I/usr/include/libdrm -I/usr/include/libpng12 -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include  -DSYSTEM_LIBINIPARSER=1   -I/usr/local/include -I/usr/local/include/mapnik/agg -I/usr/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/gdal -I/usr/include/postgresql -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/libdrm -I/usr/include/libpng12 -DSHAPE_MEMORY_MAPPED_FILE -DBIGINT -DBOOST_REGEX_HAS_ICU -DHAVE_JPEG -DMAPNIK_USE_PROJ4 -DHAVE_PNG -DHAVE_WEBP -DHAVE_TIFF -DLINUX -DMAPNIK_THREADSAFE -DBOOST_SPIRIT_NO_PREDEFINED_TERMINALS=1 -DBOOST_PHOENIX_NO_PREDEFINED_TERMINALS=1 -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DNDEBUG -DHAVE_CAIRO -DGRID_RENDERER -DHAVE_LIBXML2 -std=c++11 -Wall -Wsign-compare -pthread -ftemplate-depth-300 -O3 -fno-strict-aliasing -Wno-inline -Wno-parentheses -Wno-char-subscripts -MT src/gen_tile.o -MD -MP -MF $depbase.Tpo -c -o src/gen_tile.o src/gen_tile.cpp &&\
mv -f $depbase.Tpo $depbase.Po
src/gen_tile.cpp: In function ‘void parameterize_map_max_connections(mapnik::Map&, int)’:
src/gen_tile.cpp:179:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (i = 0; i < m.layer_count(); i++) {
                   ^
src/gen_tile.cpp:180:22: error: ‘class mapnik::Map’ has no member named ‘getLayer’
         layer& l = m.getLayer(i);
                      ^
src/gen_tile.cpp:181:30: error: invalid use of incomplete type ‘class mapnik::layer’
         parameters params = l.datasource()->params();
                              ^
In file included from src/gen_tile.cpp:2:0:
/usr/local/include/mapnik/map.hpp:52:7: error: forward declaration of ‘class mapnik::layer’
 class layer;
       ^
src/gen_tile.cpp:187:86: error: conversion from ‘std::shared_ptr<mapnik::datasource>’ to non-scalar type ‘boost::shared_ptr<mapnik::datasource>’ requested
         boost::shared_ptr<datasource> ds = datasource_cache::instance().create(params);
                                                                                      ^
src/gen_tile.cpp:191:10: error: invalid use of incomplete type ‘class mapnik::layer’
         l.set_datasource(ds);
          ^
In file included from src/gen_tile.cpp:2:0:
/usr/local/include/mapnik/map.hpp:52:7: error: forward declaration of ‘class mapnik::layer’
 class layer;
       ^
src/gen_tile.cpp: In function ‘protoCmd render(xmlmapconfig*, int, int, int, char*, metaTile&)’:
src/gen_tile.cpp:258:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (yy = 0; yy < render_size_ty; yy++) {
                     ^
src/gen_tile.cpp:259:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (xx = 0; xx < render_size_tx; xx++) {
                         ^
Makefile:1043: recipe for target 'src/gen_tile.o' failed
make[1]: *** [src/gen_tile.o] Error 1
make[1]: Leaving directory '/home/andrey/sources/mod_tile-master'
Makefile:1189: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
```
Am I missed something?

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/55#issuecomment-52024252
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20140813/cc5eb739/attachment-0001.html>


More information about the Tile-serving mailing list