alacarte-maps / alacarte

Renderer for OpenStreetMap tiles.
https://alacarte-maps.github.io/
Other
57 stars 18 forks source link

alacarte format is architecture dependent #49

Open Venemo opened 9 years ago

Venemo commented 9 years ago

I'd like to run alacarte on a Raspberry Pi (which has an ARMv6 CPU). I thought that I can use alacarte-importer on my laptop and then copy data.carte to the Raspberry Pi. However it didn't work. alacarte-server on the Raspberry Pi couldn't use the data.carte file that was generated on my x86_64 laptop.

TheMarex commented 9 years ago

Probably a 64bit vs. 32bit issue. We used the boost serialization with a binary format, because it was much faster than the plain text one. You can probably modify it to use the plain text format: Loading: https://github.com/alacarte-maps/alacarte/blob/master/src/general/geodata.cpp#L166 Saving: https://github.com/alacarte-maps/alacarte/blob/master/src/general/geodata.cpp#L190

SrTobi commented 9 years ago

Be also aware of the version of the serializer! The serializer version on the system where you want to use alacarte-server must be equal or greater compared to the version where you run alacarte-importer. That's because the boost serializer can deserialize archives of an older version of boost serializer, but not vice versa (isn't that always the case^^). This is important if you use different distros, because one might ship a newer boost version (arch vs ubuntu for example).