I’ve encoutered some problems compiling mod_tile, with the command “make”.
Indeed, when the compiler is focusing on gen_tile.cpp, the console gives me those errors :
g++ -DHAVE_CONFIG_H -I. -I/usr/include/freetype2 -pthread -I/usr/include -D_REENTRANT -I/usr/local/include -g -O2 -MT gen_tile.o -MD -MP -MF .deps/gen_tile.Tpo -c -o gen_tile.o gen_tile.cpp In file included from gen_tile.cpp:5: /usr/local/include/mapnik/filter_factory.hpp:1:2: warning: #warning "filter_factory.hpp" is now called "expression.hpp" gen_tile.cpp: In function ‘protoCmd render(mapnik::Map&, char*, mapnik::projection&, int, int, int, unsigned int, metaTile&)’: gen_tile.cpp:445: error: variable ‘mapnik::image_32 buf’ has initializer but incomplete type gen_tile.cpp:453: error: ‘image_view’ was not declared in this scope gen_tile.cpp:453: error: expected primary-expression before ‘>’ token gen_tile.cpp:453: error: ‘vw’ was not declared in this scope make: *** [gen_tile.o] Error 1 make: Leaving directory `/home/direst/osm/mod_tile' make: *** [all-recursive] Error 1 make: Leaving directory `/home/direst/osm/mod_tile' make: *** [all] Error 2
Apparently, the value of “buf” can’t be instantiate and I don’t understand why.
My OS is Debian 6 Squeeze and I’ve installed Mapnik properly, according to the following site :
The libboost version I have is 1.49 and I’ve also the latest ICU version.
In order to install mod_tile, I’ve performed those operations :
cd ~/osm/ svn co http://svn.openstreetmap.org/applications/utils/mod_tile cd mod_tile ./autogen.sh ./configure make sudo make install sudo make install-mod_tile
But the “make” and “sudo make install” commands are not working, whereas “sudo make install-mod_tile” is working.
If I can’t compile, I will not be able to perform this command : " ./renderd -f"
So if anyone has a solution…