[Tile-serving] [mod_tile] Compiling with Mapnik master (3.x) (#55)
Stephan Bösch-Plepelits
notifications at github.com
Tue Feb 11 07:48:11 UTC 2014
I tried to add it, but I still get errors.
* in `m4/ax_lib_mapnik.m4` I added `--defines --cxxflags` to the line with `--includes`
* The resulting `MAPNIK_INCLUDES` in the Makefile has three lines. If I concatenate them to one line I no longer get warnings about c++11 not being used. Instead I get the following error:
```
g++ -DHAVE_CONFIG_H -I. -I./includes -I/usr/include/freetype2 -pthread -I/usr/local/include -I/usr/local/include/mapnik/agg -DSHAPE_MEMORY_MAPPED_FILE -DBIGINT -DBOOST_REGEX_HAS_ICU -DHAVE_JPEG -DMAPNIK_USE_PROJ4 -DHAVE_PNG -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 -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts -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/libpng12 -g -O2 -MT gen_tile.o -MD -MP -MF .deps/gen_tile.Tpo -c -o gen_tile.o `test -f 'src/gen_tile.cpp' || echo './'`src/gen_tile.cpp
src/gen_tile.cpp: In function ‘void parameterize_map_max_connections(mapnik::Map&, int)’:
src/gen_tile.cpp:178:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < m.layer_count(); i++) {
^
src/gen_tile.cpp:179:22: error: ‘class mapnik::Map’ has no member named ‘getLayer’
layer& l = m.getLayer(i);
^
src/gen_tile.cpp:186: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:190:28: error: no matching function for call to ‘mapnik::layer::set_datasource(boost::shared_ptr<mapnik::datasource>&)’
l.set_datasource(ds);
^
src/gen_tile.cpp:190:28: note: candidate is:
In file included from /usr/local/include/mapnik/map.hpp:32:0,
from src/gen_tile.cpp:2:
/usr/local/include/mapnik/layer.hpp:182:10: note: void mapnik::layer::set_datasource(const datasource_ptr&)
void set_datasource(datasource_ptr const& ds);
^
/usr/local/include/mapnik/layer.hpp:182:10: note: no known conversion for argument 1 from ‘boost::shared_ptr<mapnik::datasource>’ to ‘const datasource_ptr& {aka const std::shared_ptr<mapnik::datasource>&}’
src/gen_tile.cpp: In function ‘protoCmd render(xmlmapconfig*, int, int, int, char*, metaTile&)’:
src/gen_tile.cpp:257:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (yy = 0; yy < render_size_ty; yy++) {
^
src/gen_tile.cpp:258:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (xx = 0; xx < render_size_tx; xx++) {
^
make[1]: *** [gen_tile.o] Error 1
make[1]: Leaving directory `/home/skunk/mod_tile'
make: *** [all-recursive] Error 1
```
So, I think there's more than just a bug in mod_tiles' configure step ...
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/55#issuecomment-34732576
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20140210/9b36c55b/attachment.html>
More information about the Tile-serving
mailing list