Please help with my problem, which is connected with an attempt to use Mapnik in Microsoft Visual C++ 2008 Express Edition.
Objective: Want to create a console application for Win32, using Mapnik, which will load or create an electronic map and maintain the functions of its on-screen display and a standard GIS navigation. Development Environment: - Windows XP with SP2 - Visual C++ 2008 Express Edition Steps in working with Mapnik: - From http://mapnik.org downloaded win32 binaries - Installed Python 2.5.4 in directory C:\Python25 - Perform installation in accordance with the instructions "Installing Mapnik in Windows", in directory D:\Mapnik - Downloaded the source (mapnik-0.6.1.tar.bz2), unpacked the archive and executed from the directory \demo\python file rundemo.py - worked without error (new files were created: demo.jpg, demo.png, demo256.png, map.xml) Then decided to check the directory \demo\c++, file rundemo.cpp. To do this: - Created in Visual C++ 2008 Express Edition empty project (Win32 Console Application) - Added to the project file rundemo.cpp - In the project settings added: o in “Include additional directories” add path D:\mapnik\include o in “Additional libraries” add path D:\mapnik\lib o in “additional dependence” add file mapnik.lib - In the directory D:\mapnik\include added: o Directory “boost”, containing files *.hpp from archive boost_1_39_0.zip (http://www.boost.org/users/download/) o Directory “unicode”, containing files *.hpp from archive icu4c-4_2_1-Win32-msvc9.zip (http://icu-project.org/download/) o File ft2build.h and directory “freetype”, containing files *.h from archive freetype-2.3.5.tar.gz (http://freetype.sourceforge.net/download.html#stable) o file ltdl.h from archive libtool-1.5.26-bin.zip (http://gnuwin32.sourceforge.net/downlinks/libtool-bin-zip.php) - In the directory D:\mapnik\lib added: o mapnik.lib o libboost_date_time-vc90-mt-gd-1_39.lib o libboost_regex-vc90-mt-gd-1_39.lib o libboost_thread-vc90-mt-gd-1_39.lib - In the directory C:\windows\system32 added: o mapnik.dll o icudt40.dll o icuuc40.dll o libxml2.dll - Build the project “Debug|Win32” - no errors! Next - an attempt to launch executable rundemo.exe: - Run from a console program with additional parameter: rundemo.exe D:\mapnik produces errors (access violation when reading: "0xcccccccc") in line: datasource_cache::instance()->register_datasources(mapnik_dir + "/lib/mapnik/input/"); - If comment this lines: datasource_cache::instance()->register_datasources(mapnik_dir + "/lib/mapnik/input/"); mapnik::freetype_engine::register_font(mapnik_dir + "/lib/mapnik/fonts/DejaVuSans.ttf"); - Then get an error (std:: bad_alloc at 0x0012d4f0) in other line: Map m(800,600); Thanks in advance for any help! -- View this message in context: http://www.nabble.com/Mapnik%2BWin32%2BVisual-C%2B%2B-tp25286445p25286445.html Sent from the Mapnik - Users mailing list archive at Nabble.com. _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

