artemp/mapnik — Issue #653: rundemo.cpp on mapnik2 failed on windows
Author: artemp
Created: 2011-10-11 16:30:46+00:00
State: open
Labels: Windows_Binaries

the app output enmpty images.

{{{
'''compile with:'''
vc9
boost 1.42
icu 4_4_2
libtool-1.5.26 from sf.net
other libs from OSGeo4W
'''the compile CMD:'''
/Od /I "E:\SVNS\mapnik\svn\include" /I "E:\SVNS\mapnik\svn\agg" /I "C:\OSGeo4W\include\freetype" /I "C:\OSGeo4W\include" /I "E:\SVNS\mapnik\svn\agg\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "MAPNIK_EXPORTS" /D "_USE_MATH_DEFINES" /D "HAVE_LIBXML2" /D "MAPNIK_DEBUG" /D "MAPNIK_THREADSAFE" /D "BOOST_ALL_NO_LIB" /D "BOOST_LIB_DIAGNOSTIC" /D "_WINDLL" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3 /nologo /c /ZI /TP /errorReport:prompt
'''the link CMD:'''
/VERBOSE /OUT:"E:\SVNS\mapnik\svn\build\maknik\Debug\mapnik2.dll" /INCREMENTAL /NOLOGO /LIBPATH:"C:\OSGeo4W\lib" /LIBPATH:"E:\download\Sea\icu4c-4_4_2-src\icu\lib" /DLL /MANIFEST /MANIFESTFILE:"Debug\mapnik2.dll.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"e:\SVNS\mapnik\svn\build\maknik\Debug\mapnik2.pdb" /SUBSYSTEM:WINDOWS /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib icuind.lib icuiod.lib iculed.lib iculxd.lib icutestd.lib icutud.lib icuucd.lib agg.lib libpq.lib libxml2.lib freetype.lib zlib.lib proj.lib proj_i.lib freetype237.lib geotiff_i.lib jpeg_i.lib jpeg12_i.lib freetype.lib libcurl_imp.lib libpng13.lib gdal_i.lib geotiff_i.lib geos_c_i.lib libtiff_i.lib qwt5.lib agg.lib E:\download\Sea\libtool-1.5.26-lib\lib\ltdl.lib D:\GTD\Utopia\libs\boost_1_42_0\stage\lib\libboost_regex-vc90-mt-gd-1_42.lib D:\GTD\Utopia\libs\boost_1_42_0\stage\lib\libboost_system-vc90-mt-gd-1_42.lib D:\GTD\Utopia\libs\boost_1_42_0\stage\lib\libboost_thread-vc90-mt-gd-1_42.lib D:\GTD\Utopia\libs\boost_1_42_0\stage\lib\libboost_filesystem-vc90-mt-gd-1_42.lib

the shape plugin and rundemo.cpp are nearly same.

'''the output when running:'''
running demo ...
looking for 'shape.input' plugin in... E:\SVNS\mapnik\svn\build\makn
ugins/
registered datasource : shape
looking for DejaVuSans font in... E:\SVNS\mapnik\svn\build\maknik\De
ejaVuSans.ttf
size = 2
file=../data/boundaries
type=shape
Z min/max 0,0
M min/max 0,0
box2d(-11121.68966508055,-724724.2165263165,2463000.678656047,1649661

file_length=426516
shape_type=5
datasource=01CBAC08 type=1
size = 2
file=../data/qcdrainage
type=shape
Z min/max 0,0
M min/max 0,0
box2d(1372113.675467631,-189595.4595949994,1751462.646535812,63159.97
file_length=163752
shape_type=5
datasource=01CBFD18 type=1
size = 2
file=../data/ontdrainage
type=shape
Z min/max 0,0
M min/max 0,0
box2d(1362796.561661276,-323704.1091564409,1751462.646707202,63159.97
file_length=248490
shape_type=5
datasource=01CBF928 type=1
size = 2
file=../data/boundaries_l
type=shape
Z min/max 0,0
M min/max 0,0
box2d(1304893.624998408,-392605.9653079294,1841696.628029505,-102832.

file_length=47718
shape_type=3
datasource=025CB350 type=1
size = 2
file=../data/roads
type=shape
Z min/max 0,0
M min/max 0,0
box2d(1395807.124998691,-255601.140622234,1719770.886447084,-15784.70
file_length=272738
shape_type=3
datasource=025D5520 type=1
scale=376.547
start map processing bbox=box2d(1405120.04127408,-249015.180277767,17
276,-23087.22627125698)
start layer processing : Provinces
datasource = 01CBAC08
query size=0
0 features
end layer processing
start layer processing : Quebec Hydrography
datasource = 01CBFD18
query size=0
0 features
end layer processing
start layer processing : Ontario Hydrography
datasource = 01CBF928
query size=0
0 features
end layer processing
start layer processing : Provincial borders
datasource = 025CB350
query size=0
0 features
end layer processing
start layer processing : Roads
datasource = 025D5520
query size=0
0 features
end layer processing
end map processing
Three maps have been rendered using AGG in the current directory:
- demo.jpg
- demo.png
- demo256.png
Have a look!
~stroker: destroy stroker:01CD3228
}}}