<p><a href="https://github.com/SomeoneElseOSM" class="user-mention">@SomeoneElseOSM</a><br>
I have followed <a href="http://wiki.openstreetmap.org/wiki/User:SomeoneElse/Ubuntu_1604_tileserver_load">http://wiki.openstreetmap.org/wiki/User:SomeoneElse/Ubuntu_1604_tileserver_load</a><br>
but when I compile I get issue:</p>
<p><code>home/osm/src/mod_tile/src/gen_tile.cpp:174: undefined reference to</code>mapnik::freetype_engine::register_font(std::string const&)'<br>
src/renderd-gen_tile.o: In function <code>render_init': /home/osm/src/mod_tile/src/gen_tile.cpp:329: undefined reference to</code>mapnik::datasource_cache::register_datasources(std::string const&, bool)'<br>
src/renderd-gen_tile.o: In function <code>xmlmapconfig': /home/osm/src/mod_tile/src/gen_tile.cpp:98: undefined reference to</code>mapnik::Map::Map(int, int, std::string const&)'<br>
src/renderd-gen_tile.o: In function <code>render_thread': /home/osm/src/mod_tile/src/gen_tile.cpp:361: undefined reference to</code>mapnik::load_map(mapnik::Map&, std::string const&, bool, std::string)'<br>
/home/osm/src/mod_tile/src/gen_tile.cpp:369: undefined reference to <code>mapnik::Map::srs() const' src/renderd-gen_tile.o: In function</code>render':<br>
/home/osm/src/mod_tile/src/gen_tile.cpp:277: undefined reference to <code>std::string mapnik::save_to_string<mapnik::image_view_any>(mapnik::image_view_any const&, std::string const&)' src/renderd-parameterize_style.o: In function</code>parameterize_map_language(mapnik::Map&, char*)':<br>
/home/osm/src/mod_tile/src/parameterize_style.cpp:48: undefined reference to <code>boost::optional<std::string> mapnik::parameters::get<std::string>(std::string const&) const' collect2: error: ld returned 1 exit status Makefile:784: recipe for target 'renderd' failed make[1]: *** [renderd] Error 1 make[1]: Leaving directory '/home/osm/src/mod_tile' Makefile:1300: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 osm@ubuntu:~/src/mod_tile$ export CXXFLAGS="$(mapnik-config --cflags)" export LDFLAGS="$(mapnik-config --ldflags)"osm@ubuntu:~/src/mod_tile$ export LDFLAGS="$(mapnik-config --ldflags)" osm@ubuntu:~/src/mod_tile$ make Making all in iniparser3.0b make[1]: Entering directory '/home/osm/src/mod_tile/iniparser3.0b' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/osm/src/mod_tile/iniparser3.0b' make[1]: Entering directory '/home/osm/src/mod_tile' /bin/bash ./libtool --tag=CXX --mode=link g++ -I/usr/include -I/usr/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/libpng12 -DMAPNIK_MEMORY_MAPPED_FILE -DMAPNIK_HAS_DLCFN -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 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g0 -Wall -pthread -Wsign-compare -Wshadow -O2 -g -O2 -o renderd src/daemon.o src/daemon_compat.o src/renderd-gen_tile.o src/sys_utils.o src/request_queue.o src/cache_expire.o src/renderd-metatile.o src/renderd-parameterize_style.o src/protocol_helper.o src/store.o src/store_file.o src/store_file_utils.o src/store_memcached.o src/store_rados.o src/store_ro_http_proxy.o src/store_ro_composite.o src/store_null.o -pthread -L/usr/lib -lmapnik -L/usr/lib -L/usr/lib/x86_64-linux-gnu -Wl,-Bsymbolic-functions -Wl,-z,relro -g0 -pthread -lboost_filesystem -lboost_regex -lcairo -lpng -lproj -ltiff -lwebp -lxml2 -licui18n -lboost_system -lharfbuzz -ljpeg -licuuc -lfreetype -lz -ldl -L/usr/lib/x86_64-linux-gnu -lcurl -liniparser -Liniparser3.0b/.libs -liniparser -lm libtool: link: g++ -I/usr/include -I/usr/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/libpng12 -DMAPNIK_MEMORY_MAPPED_FILE -DMAPNIK_HAS_DLCFN -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 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g0 -Wall -pthread -Wsign-compare -Wshadow -O2 -g -O2 -o .libs/renderd src/daemon.o src/daemon_compat.o src/renderd-gen_tile.o src/sys_utils.o src/request_queue.o src/cache_expire.o src/renderd-metatile.o src/renderd-parameterize_style.o src/protocol_helper.o src/store.o src/store_file.o src/store_file_utils.o src/store_memcached.o src/store_rados.o src/store_ro_http_proxy.o src/store_ro_composite.o src/store_null.o -pthread -Wl,-Bsymbolic-functions -Wl,-z -Wl,relro -g0 -pthread -L/usr/lib -lmapnik -L/usr/lib/x86_64-linux-gnu -lboost_filesystem -lboost_regex -lcairo -lpng /usr/lib/x86_64-linux-gnu/libproj.so -ltiff -lwebp -lxml2 -licui18n -lboost_system -lharfbuzz -ljpeg -licuuc /usr/lib/x86_64-linux-gnu/libfreetype.so -lz -ldl /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so -Liniparser3.0b/.libs /home/osm/src/mod_tile/iniparser3.0b/.libs/libiniparser.so -lm -pthread src/renderd-gen_tile.o: In function</code>load_fonts(char const*, int)':<br>
/home/osm/src/mod_tile/src/gen_tile.cpp:174: undefined reference to <code>mapnik::freetype_engine::register_font(std::string const&)' src/renderd-gen_tile.o: In function</code>render_init':<br>
/home/osm/src/mod_tile/src/gen_tile.cpp:329: undefined reference to <code>mapnik::datasource_cache::register_datasources(std::string const&, bool)' src/renderd-gen_tile.o: In function</code>xmlmapconfig':<br>
/home/osm/src/mod_tile/src/gen_tile.cpp:98: undefined reference to <code>mapnik::Map::Map(int, int, std::string const&)' src/renderd-gen_tile.o: In function</code>render_thread':<br>
/home/osm/src/mod_tile/src/gen_tile.cpp:361: undefined reference to <code>mapnik::load_map(mapnik::Map&, std::string const&, bool, std::string)' /home/osm/src/mod_tile/src/gen_tile.cpp:369: undefined reference to</code>mapnik::Map::srs() const'<br>
src/renderd-gen_tile.o: In function <code>render': /home/osm/src/mod_tile/src/gen_tile.cpp:277: undefined reference to</code>std::string mapnik::save_to_stringmapnik::image_view_any(mapnik::image_view_any const&, std::string const&)'<br>
src/renderd-parameterize_style.o: In function <code>parameterize_map_language(mapnik::Map&, char*)': /home/osm/src/mod_tile/src/parameterize_style.cpp:48: undefined reference to</code>boost::optionalstd::string mapnik::parameters::getstd::string(std::string const&) const'<br>
collect2: error: ld returned 1 exit status<br>
Makefile:784: recipe for target 'renderd' failed<br>
make[1]: *** [renderd] Error 1<br>
make[1]: Leaving directory '/home/osm/src/mod_tile'<br>
Makefile:1300: recipe for target 'all-recursive' failed<br>
make: *** [all-recursive] Error 1`</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/mod_tile/issues/133#issuecomment-291249532">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AD2-7k0CctTTmWV5gpOeCSzPGgkq1-7Kks5rsUmygaJpZM4J0_nv">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7hlxZNIeDw74DAjbhhXknJJxo0zFks5rsUmygaJpZM4J0_nv.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/openstreetmap/mod_tile/issues/133#issuecomment-291249532"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/mod_tile","title":"openstreetmap/mod_tile","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/mod_tile"}},"updates":{"snippets":[{"icon":"PERSON","message":"@mozartvn in #133: @SomeoneElseOSM \r\nI have followed http://wiki.openstreetmap.org/wiki/User:SomeoneElse/Ubuntu_1604_tileserver_load\r\nbut when I compile I get issue:\r\n\r\n`home/osm/src/mod_tile/src/gen_tile.cpp:174: undefined reference to `mapnik::freetype_engine::register_font(std::string const\u0026)'\r\nsrc/renderd-gen_tile.o: In function `render_init':\r\n/home/osm/src/mod_tile/src/gen_tile.cpp:329: undefined reference to `mapnik::datasource_cache::register_datasources(std::string const\u0026, bool)'\r\nsrc/renderd-gen_tile.o: In function `xmlmapconfig':\r\n/home/osm/src/mod_tile/src/gen_tile.cpp:98: undefined reference to `mapnik::Map::Map(int, int, std::string const\u0026)'\r\nsrc/renderd-gen_tile.o: In function `render_thread':\r\n/home/osm/src/mod_tile/src/gen_tile.cpp:361: undefined reference to `mapnik::load_map(mapnik::Map\u0026, std::string const\u0026, bool, std::string)'\r\n/home/osm/src/mod_tile/src/gen_tile.cpp:369: undefined reference to `mapnik::Map::srs() const'\r\nsrc/renderd-gen_tile.o: In function `render':\r\n/home/osm/src/mod_tile/src/gen_tile.cpp:277: undefined reference to `std::string mapnik::save_to_string\u003cmapnik::image_view_any\u003e(mapnik::image_view_any const\u0026, std::string const\u0026)'\r\nsrc/renderd-parameterize_style.o: In function `parameterize_map_language(mapnik::Map\u0026, char*)':\r\n/home/osm/src/mod_tile/src/parameterize_style.cpp:48: undefined reference to `boost::optional\u003cstd::string\u003e mapnik::parameters::get\u003cstd::string\u003e(std::string const\u0026) const'\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:784: recipe for target 'renderd' failed\r\nmake[1]: *** [renderd] Error 1\r\nmake[1]: Leaving directory '/home/osm/src/mod_tile'\r\nMakefile:1300: recipe for target 'all-recursive' failed\r\nmake: *** [all-recursive] Error 1\r\nosm@ubuntu:~/src/mod_tile$ export CXXFLAGS=\"$(mapnik-config --cflags)\"\r\nexport LDFLAGS=\"$(mapnik-config --ldflags)\"osm@ubuntu:~/src/mod_tile$ export LDFLAGS=\"$(mapnik-config --ldflags)\"\r\nosm@ubuntu:~/src/mod_tile$ make\r\nMaking all in iniparser3.0b\r\nmake[1]: Entering directory '/home/osm/src/mod_tile/iniparser3.0b'\r\nmake[1]: Nothing to be done for 'all'.\r\nmake[1]: Leaving directory '/home/osm/src/mod_tile/iniparser3.0b'\r\nmake[1]: Entering directory '/home/osm/src/mod_tile'\r\n/bin/bash ./libtool  --tag=CXX   --mode=link g++ -I/usr/include -I/usr/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/libpng12 -DMAPNIK_MEMORY_MAPPED_FILE -DMAPNIK_HAS_DLCFN -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 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g0 -Wall -pthread -Wsign-compare -Wshadow -O2 -g -O2   -o renderd src/daemon.o src/daemon_compat.o src/renderd-gen_tile.o src/sys_utils.o src/request_queue.o src/cache_expire.o src/renderd-metatile.o src/renderd-parameterize_style.o src/protocol_helper.o src/store.o src/store_file.o src/store_file_utils.o src/store_memcached.o src/store_rados.o src/store_ro_http_proxy.o src/store_ro_composite.o src/store_null.o  -pthread -L/usr/lib -lmapnik -L/usr/lib -L/usr/lib/x86_64-linux-gnu -Wl,-Bsymbolic-functions -Wl,-z,relro -g0 -pthread -lboost_filesystem -lboost_regex -lcairo -lpng -lproj -ltiff -lwebp -lxml2 -licui18n -lboost_system -lharfbuzz -ljpeg -licuuc -lfreetype -lz -ldl   -L/usr/lib/x86_64-linux-gnu -lcurl -liniparser -Liniparser3.0b/.libs -liniparser -lm \r\nlibtool: link: g++ -I/usr/include -I/usr/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/libpng12 -DMAPNIK_MEMORY_MAPPED_FILE -DMAPNIK_HAS_DLCFN -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 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g0 -Wall -pthread -Wsign-compare -Wshadow -O2 -g -O2 -o .libs/renderd src/daemon.o src/daemon_compat.o src/renderd-gen_tile.o src/sys_utils.o src/request_queue.o src/cache_expire.o src/renderd-metatile.o src/renderd-parameterize_style.o src/protocol_helper.o src/store.o src/store_file.o src/store_file_utils.o src/store_memcached.o src/store_rados.o src/store_ro_http_proxy.o src/store_ro_composite.o src/store_null.o -pthread -Wl,-Bsymbolic-functions -Wl,-z -Wl,relro -g0 -pthread  -L/usr/lib -lmapnik -L/usr/lib/x86_64-linux-gnu -lboost_filesystem -lboost_regex -lcairo -lpng /usr/lib/x86_64-linux-gnu/libproj.so -ltiff -lwebp -lxml2 -licui18n -lboost_system -lharfbuzz -ljpeg -licuuc /usr/lib/x86_64-linux-gnu/libfreetype.so -lz -ldl /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so -Liniparser3.0b/.libs /home/osm/src/mod_tile/iniparser3.0b/.libs/libiniparser.so -lm -pthread\r\nsrc/renderd-gen_tile.o: In function `load_fonts(char const*, int)':\r\n/home/osm/src/mod_tile/src/gen_tile.cpp:174: undefined reference to `mapnik::freetype_engine::register_font(std::string const\u0026)'\r\nsrc/renderd-gen_tile.o: In function `render_init':\r\n/home/osm/src/mod_tile/src/gen_tile.cpp:329: undefined reference to `mapnik::datasource_cache::register_datasources(std::string const\u0026, bool)'\r\nsrc/renderd-gen_tile.o: In function `xmlmapconfig':\r\n/home/osm/src/mod_tile/src/gen_tile.cpp:98: undefined reference to `mapnik::Map::Map(int, int, std::string const\u0026)'\r\nsrc/renderd-gen_tile.o: In function `render_thread':\r\n/home/osm/src/mod_tile/src/gen_tile.cpp:361: undefined reference to `mapnik::load_map(mapnik::Map\u0026, std::string const\u0026, bool, std::string)'\r\n/home/osm/src/mod_tile/src/gen_tile.cpp:369: undefined reference to `mapnik::Map::srs() const'\r\nsrc/renderd-gen_tile.o: In function `render':\r\n/home/osm/src/mod_tile/src/gen_tile.cpp:277: undefined reference to `std::string mapnik::save_to_string\u003cmapnik::image_view_any\u003e(mapnik::image_view_any const\u0026, std::string const\u0026)'\r\nsrc/renderd-parameterize_style.o: In function `parameterize_map_language(mapnik::Map\u0026, char*)':\r\n/home/osm/src/mod_tile/src/parameterize_style.cpp:48: undefined reference to `boost::optional\u003cstd::string\u003e mapnik::parameters::get\u003cstd::string\u003e(std::string const\u0026) const'\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:784: recipe for target 'renderd' failed\r\nmake[1]: *** [renderd] Error 1\r\nmake[1]: Leaving directory '/home/osm/src/mod_tile'\r\nMakefile:1300: recipe for target 'all-recursive' failed\r\nmake: *** [all-recursive] Error 1`"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/mod_tile/issues/133#issuecomment-291249532"}}}</script>