Hello. I want to use mapnik in my simple C++/QT project on Windows( MSVC or MinGw).
I have tried to compile rundemo.cpp on Windows with MSVC2008. Mapnik from win32 binaries version 0.7.1. I install boost_1_43_0, icu-4-4-1, libtool-2.2.10, freetype-2.4.1 for headers only (I do not compile it at all). Is it possible to place all headers into Mapnik 'include'? It needed for usage mapnik from C++. After five hours I have build executable without link errors. My .pro file look like this: QT += core #QT -= gui TARGET = qt CONFIG += console CONFIG -= app_bundle TEMPLATE = app #INCLUDEPATH+=C:/mapnik/mapnik-0.7.1/include INCLUDEPATH+=c:/boost/boost_1_43_0 INCLUDEPATH+=C:/msys/1.0/home/Andrew/icu-4-4-1/source/common INCLUDEPATH+=C:/msys/1.0/home/Andrew/libtool-2.2.10/libltdl #INCLUDEPATH+=C:/msys/1.0/home/Andrew/freetype-2.4.1/include INCLUDEPATH+=C:/OSGeo4W/include #INCLUDEPATH+=C:/OSGeo4W/include/libltdl INCLUDEPATH+=C:/OSGeo4W/include/freetype LIBS+=-lmapnik SOURCES += main.cpp My executable starts and halt on Map m(800,600); I have correcly register datasources plugins. I try 0.7.0, 0.6.1 version of win32 binaries. I can't compile 0.7.1 with error not found boost::property_tree has no symbol put_own. Trunc not have this error. I also try to compile with QT/MSVC Mapnik from trunc. There are too many link dependences missing. I use OSGeo4W for simplify library search and also compile all libraries with MSys. I can't take it working anyway. There are questions: 1. Is it possilbe to use Mapnik from C++(without Python) in WIndows with MSVC or MinGW? 2. How to compile rundemo.cpp and viewver.pro on Windows? 3. How to compile Mapnik library with MinGW for usage without Python? 4. How to compile Mapnik with MSVC for usage without Python? 5. Is mapnik depends on versions of boost, freetype, etc? Thank you. P.S. А может тут по русски можно?
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

