On 8 Aug 2007, at 08:54, Petter Reinholdtsen wrote:
[Artem Pavlenko]
OK, you put on spot :). I committed some preliminary stuff into
http://trac.mapnik.org/browser/trunk/demo/viewer It's basically what
I demoed at SOTM plus couple improvements e.g - switching layers
on/off is working now. It is generic viewer not just OSM .
Great.
I gave it a try, and ran into build problems. Where is the
freetype/config/ftheader.h expected to come from?
$ qmake-qt4
$ make
make -f Makefile.Debug
make[1]: Entering directory `/home/pere/src/openstreetmapsvn/
mapnik-viewer'
g++ -c -pipe -g -D_REENTRANT -Wall -W -DQT_SHARED -DQT_GUI_LIB -
DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/
qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/
usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/local/include -I/
opt/boost_1_35/include/boost-1_35 -I/usr/local/include/freetype2 -
I. -Idebug -I. -o debug/main.o main.cpp
In file included from /usr/include/mapnik/
font_engine_freetype.hpp:31,
from main.cpp:25:
/usr/include/ft2build.h:56:38: error: freetype/config/ftheader.h:
No such file or directory
In file included from main.cpp:25:
/usr/include/mapnik/font_engine_freetype.hpp:32:10: error:
#include expects "FILENAME" or <FILENAME>
/usr/include/mapnik/font_engine_freetype.hpp:33:10: error:
#include expects "FILENAME" or <FILENAME>
In file included from /usr/include/boost/ptr_container/
ptr_sequence_adapter.hpp:20,
from /usr/include/boost/ptr_container/
ptr_vector.hpp:20,
from /usr/include/mapnik/
font_engine_freetype.hpp:44,
from main.cpp:25:
/usr/include/boost/ptr_container/detail/
reversible_ptr_container.hpp:38:48: error: boost/serialization/
split_member.hpp: No such file or directory
/usr/include/boost/ptr_container/detail/
reversible_ptr_container.hpp:610: error: expected ';' before '}' token
/usr/include/boost/ptr_container/detail/
reversible_ptr_container.hpp:610: error: expected `;' before '}' token
/usr/include/boost/ptr_container/ptr_vector.hpp:70: error:
expected ';' before '}' token
/usr/include/boost/ptr_container/ptr_vector.hpp:70: error:
expected `;' before '}' token
/usr/include/mapnik/font_engine_freetype.hpp:59: error: expected
`)' before 'face'
/usr/include/mapnik/font_engine_freetype.hpp:77: error:
'FT_GlyphSlot' does not name a type
/usr/include/mapnik/font_engine_freetype.hpp:82: error: 'FT_Face'
does not name a type
/usr/include/mapnik/font_engine_freetype.hpp:105: error:
'FT_Face' does not name a type
Did you modify viewer.pro to have something like
INCLUDEPATH += /usr/include/freetype2
To pack this program for Debian, it would be very useful to know what
the tarball will be called, as the debian source package should
inherit the name. May I suggest 'mapnik-viewer'?
Sounds good to me.
The source directory could need a README file with key info. Please
consider this one:
Mapnik viewer
=============
This is a postgis map drawing application.
Well, it can talk to any data sources supported by Mapnik e.g shape
files, postgis, raster (tiff) , gdal raster.
Build instructions
------------------
Install qt4-dev-tools and libmapnik-dev.
Run
qmake-qt4 && make
Patch and bug reporting
-----------------------
Submit bugs, patches and suggestions to [EMAIL PROTECTED]
Upstream source
---------------
The source is available from subversion, svn://trac.mapnik.org/
trunk/demo/viewer .
Happy hacking,
--
Petter Reinholdtsen
Let me know if you're getting anywhere with the build
Artem
Artem Pavlenko
http://mapnik.org
_______________________________________________
Pkg-grass-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel