Note: These instructions did not seem to work in Ubuntu 10.04 for v0.5. I suggest using v0.6 instead.
Compilation of 0.5 and earlier
- A system with a large amount of RAM.
- A C++ compiler (tested in linux g++, porting to windows should be relatively easy)
2) To compile the code, some development libraries are needed. If you are using a DEB based packaging system, do this:
sudo apt-get install libboost-dev libmorph-dev libmagickwand-dev g++ libxml++2.6-dev libnewmat10-dev libperl-dev
3) Get the source.
Note: older versions here.
4) Extract source and compile using "make" or another compiler. This creates warpos and gentiles. The warpos program takes an image and rectifies it into KML format. gentiles splits one or more KML files into slippy map tiles.
tar xvf warp-gbos0.1.tar.gz cd warp-gbos make
If you receive the error "/usr/include/xmorph/warp.h:10:28: error: braindead_msvc.h: No such file or directory", see here for a work around.
If "perl.h" and "EXTERN.h" can't be found, the path to the perl libraries might have changed. Check the makefile.
If you get the error "cannot find -lboost_program_options-mt", you might need to install the libboost-program-options-dev package.
If you get the error "cannot find -lboost_filesystem-mt", install libboost-filesystem-dev
5) If you are using 0.2 or later, Geo-Coordinates-OSGB is required. Download it, extract it and set the perl library environment variable:
PERL5LIB=/path/to/lib/Geo-Coordinates-OSGB-2.04/lib export PERL5LIB
6) Basic help on program options is available: