Problem converting maps. was: MC Navi 0.2.10 released

Vladimir Koutny vlado at moko.ksp.sk
Thu Aug 12 22:16:18 CEST 2010


Hi,

>> azral at wraith:/data/mcnavi$ ls -lah
>> total 70G
>> drwxr-xr-x 2 azral azral 4.0K 2010-08-12 09:56 .
>> drwxrwxrwx 9 root  root  4.0K 2010-08-11 22:40 ..
>> -rw-r--r-- 1 azral azral  60G 2010-08-10 08:26 europe.osm
>> -rw-r--r-- 1 azral azral 9.8G 2010-08-10 09:36 germany.osm
>> azral at wraith:/data/mcnavi$ osm2mcmap -bt 0 -bo boundary.mcb europe.osm
>> Error opening file!
>> Error parsing file europe.osm
>> azral at wraith:/data/mcnavi$

You have 32bit system and you need to enable largefile support while building
osm2mcmap - add these defines while building:

CFLAGS=`getconf LFS_CFLAGS` ./configure
(usually expands to -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64)

This will help with opening the file - but still the conversion will fail (somewhere
around 7%) due to small address-space in 32bit mode (osm2mcmap loads the whole file
into memory...)


You can successfully convert smaller regions though - just download precomputed
boundary extract from http://www.gps-routes.info/index.php?name=Downloads&d_op=viewdownload&cid=3
and then use with "-bi" option. (Still won't work for germany.osm - it is too large
to fit into memory space)

Regards,
  Vlado


> 
> does anyone else has that problem?
> it said error opening file.. so maybe it's not where it should be?
> 
> 
> Cheers,
> 
> 
> 
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 380 bytes
Desc: OpenPGP digital signature
Url : http://lists.openmoko.org/pipermail/community/attachments/20100812/807ff687/attachment.pgp 


More information about the community mailing list