
Hi! I want to make an installer for the Mapsource version of a map covering Europe completely. The nsis option produces a *.nsi file. But when trying to build the installer NSIS produces an error: File: "63240417.img" Internal compiler error #12345: error mmapping file (2130809330, 2889216) is out of range. Note: you may have one or two (large) stale temporary file(s) left in your temporary directory (Generally this only happens on Windows 9x). Maybe this is because my map is larger than 2GB. What can I do about it? http://wiki.openstreetmap.org/wiki/User:RheinSkipper

Hello
Internal compiler error #12345: error mmapping file (2130809330, 2889216) is out of range.
Maybe this is because my map is larger than 2GB.
What can I do about it?
Yes it seems that NSIS has a 2GB limit on a single file. There are various plugins available that allow you to split the distribution but still have a single install step. This looks like a useful example: http://shad0wbq.blogspot.com/2007/05/building-nsis-installers-for-large-file... ..Steve

For my Europe and Germany maps I use the following NSIS template: http://mijndev.openstreetmap.nl/~ligfietser/diverse/installer_template.nsi Put this file installer_template.nsi in the resources subdirectory where you run mkgmap. If you compile the map tiles, it only creates a small install / uninstall.exe file to register the map folder where the tiles are produced into Mapsource / Basecamp. If you distribute the map, zip all files from this folder. To install it, just unzip all files to a directory of your choice and run install.exe. If you want to move the map to another location, simply run install.exe again. See for an example: http://sites.google.com/site/openfietsmap/downloads/germany (OFM_DE(29-02-2012).zip)

that's an easy but not elegant solution (in principle you just need to comment all "File" commands for your map files and decide if you want to pack the "mapset" files into the installer, or leave them outside). As one first has to unzip it, well and people will not understand about moving/copying to other folders, so many users will make errors. the solution linked by Steve in the first reply is much more elegant as you end up with an .exe of unlimited size - however I also don't fully understand the howto (but didn't try it either). On 13.03.2012 14:38, Minko wrote:
For my Europe and Germany maps I use the following NSIS template: http://mijndev.openstreetmap.nl/~ligfietser/diverse/installer_template.nsi
Put this file installer_template.nsi in the resources subdirectory where you run mkgmap.
If you compile the map tiles, it only creates a small install / uninstall.exe file to register the map folder where the tiles are produced into Mapsource / Basecamp.
If you distribute the map, zip all files from this folder. To install it, just unzip all files to a directory of your choice and run install.exe. If you want to move the map to another location, simply run install.exe again.
See for an example: http://sites.google.com/site/openfietsmap/downloads/germany (OFM_DE(29-02-2012).zip)
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

I agree my method isn't for dummies, but it is much quicker to see your map (it skips the time for compression / decompression by nsis). Besides this, all tiles are available for Linux users or Mac users (just convert the zip file with Javawa's Mapconverter)

I agree it's quicker, as the NSIS unpacker/packer for lzma is much (about factor 2) slower than 7zip.... but also nsis lzma converted .exe can easily be unpacked by 7zip... (rests of course the 2GB limitation)... On 13.03.2012 15:23, Minko wrote:
I agree my method isn't for dummies, but it is much quicker to see your map (it skips the time for compression / decompression by nsis). Besides this, all tiles are available for Linux users or Mac users (just convert the zip file with Javawa's Mapconverter)
participants (4)
-
Felix Hartmann
-
Minko
-
RheinSkipper
-
Steve Ratcliffe