Hi,

>> az...@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
>> az...@wraith:/data/mcnavi$ osm2mcmap -bt 0 -bo boundary.mcb europe.osm
>> Error opening file!
>> Error parsing file europe.osm
>> az...@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@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community

Reply via email to