Monday, September 09, 2013

Pay-it-forward

Decades of sustained, methodical development of Singapore’s water policies has its many players, from multi-national corporations to international organisations, all of whom have performed a crucial role. During the dialogue, Mr Lee acknowledged their contributions, and in a pay-it-forward move, Singapore now wants to share its expertise with other countries facing water shortages.

"We did not do this by ourselves. We climbed on other people’s shoulders. We brought this [technology] together and improved on them. We’re happy to have people climb on our shoulders, whether they are from the Middle East, China, India, whatever. It’s a collaborative effort. The world will need this because what we have assumed was limitless — endless supplies of water — is not so. We’ve found it not to be so, and that we’ve got a way out of it.” -MM Lee

C++ build environment for mapnik project on Windows

C/C++ General
\mapnik\mapnik-v2.2.0\include;\mapnik\mapnik-v2.2.0\include\mapnik\agg;.;%(AdditionalIncludeDirectories)


C/C++ Preprocessor
LINUX;_WINDOWS;HAVE_JPEG;HAVE_PNG;HAVE_TIFF;MAPNIK_USE_PROJ4;BOOST_REGEX_HAS_ICU;MAPNIK_THREADSAFE;BIGINT;HAVE_LIBXML2;HAVE_CAIRO;%(PreprocessorDefinitions)


Linker General
Additional Library Directories \mapnik\mapnik-v2.2.0\lib

Linker Input
mapnik.lib;icuuc.lib;icuin.lib;cairo.lib;libboost_system-vc100-mt-1_49.lib


main include

#include "mapnik/layer.hpp"
#include "mapnik/rule.hpp"
#include "mapnik/line_symbolizer.hpp"
#include "mapnik/polygon_symbolizer.hpp"
#include "mapnik/text_symbolizer.hpp"
#include "mapnik/feature_type_style.hpp"
#include "mapnik/graphics.hpp"
#include "mapnik/datasource_cache.hpp"
#include "mapnik/font_engine_freetype.hpp"
#include "mapnik/agg_renderer.hpp"
#include "mapnik/expression.hpp"
#include "mapnik/color_factory.hpp"
#include "mapnik/image_util.hpp"

#if defined(HAVE_CAIRO)
#include "mapnik/cairo_renderer.hpp"
#include "mapnik/cairo_context.hpp"
#endif

#include <iostream>



Remarks:
Build with
C/C++ Code Generation>Basic Runtime Checks>Default
C/C++ Code Generation>Runtime Library>Multi-threaded DLL (/MD)
If you attempt to build with C/C++ Code Generation>Runtime Library>Multi-threaded Debug DLL (/MDd)
1>LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc100-mt-gd-1_49.lib'