applied patch from Jochen :

1. The README talks about "scons.py", but it is just called "scons".

2. In demo/c++ there is a Makefile, but the readme.txt gives a command
   line to compile. Both don't work for me. One error can at least be
   fixed by adding -I../../agg/include to the command line.

3. When compiling Mapnik an error is thrown because of a redefined type.
   This was on an Intel 64Bit machine. Fixed by "typedef char byte" to
   "typedef uint8_t byte" in include/mapnik/global.hpp. I am not sure
   whether thats the right fix, though, I just guessed. :-)

4. include/mapnik/image_data.hpp needs
   #include <mapnik/octree.hpp>
   to compile
This commit is contained in:
Artem Pavlenko 2007-12-16 12:33:28 +00:00
parent 58f4431df1
commit 2058f966b2
4 changed files with 6 additions and 5 deletions

View file

@ -41,7 +41,7 @@ Building
Once you've installed the required software packages, the simplest way to build mapnik is to run "scons" (The software builder) without any options:
$ cd /path/to/mapnik-sourcecode
$ /path/to/python scons/scons.py
$ /path/to/python scons/scons
This should compile and link the mapnik library, the input plugins and the python language binding (if possible). If any mandatory dependencies are not found the build will fail, and you will need to specify custom paths to your libraries and include files (see below).
@ -135,7 +135,7 @@ This help should be self-explanatory!
For example, if you compiled your own set of Boost libraries, you might use:
$ /path/to/python scons/scons.py BOOST_INCLUDES=/usr/local/include/boost-1_33_1 BOOST_LIBS=/usr/local/lib
$ /path/to/python scons/scons BOOST_INCLUDES=/usr/local/include/boost-1_33_1 BOOST_LIBS=/usr/local/lib
Installation
@ -143,7 +143,7 @@ Installation
Once the build has successfully completed, you can install the various files on your system by executing:
$ /path/to/python scons/scons.py install
$ /path/to/python scons/scons install
By default, everything will be installed under the PREFIX '/usr/local' as such:

View file

@ -2,7 +2,7 @@ This directory contains a simple c++ program demonstrating Mapnik API. It mimics
To build (using GCC/G++ toolkit):
g++ -O3 -I/usr/local/include/mapnik -I/opt/boost/include/boost-1_33_1 -I/usr/include/freetype2 -L/usr/local/lib -lmapnik rundemo.cpp -o rundemo
g++ -O3 -I/usr/local/include/mapnik -I/opt/boost/include/boost-1_33_1 -I/usr/include/freetype2 -I../../agg/include -L/usr/local/lib -lmapnik rundemo.cpp -o rundemo
To run:

View file

@ -45,7 +45,7 @@ namespace mapnik
(((uint32_t) ((uint8_t) (A)[0])) << 24))
typedef char byte;
typedef uint8_t byte;
#define float8net(V,M) do { double def_temp; \
((byte*) &def_temp)[0]=(M)[7]; \
((byte*) &def_temp)[1]=(M)[6]; \

View file

@ -25,6 +25,7 @@
#ifndef IMAGE_DATA_HPP
#define IMAGE_DATA_HPP
#include <mapnik/octree.hpp>
#include <cassert>
namespace mapnik