bdon / OSMExpress

Fast database file format for OpenStreetMap
BSD 2-Clause "Simplified" License
243 stars 20 forks source link

(windows) MDB_Transaction Error when trying to work with Windows Subsystem for Linux #21

Open ghost opened 4 years ago

ghost commented 4 years ago

I'm trying to get the OSMExpress CommandLine Tool to work with Windows. As there is no release for windows yet I followed the manual build instructions to build the project in the Windows Linux Subsystem (Ubuntu). The commands do run successfully but the resulting osmx executable isn't found by the system for some reason. I tried setting it as a path variable and it seems to work but when trying to execute osmx expand new_york_county.osm.pbf new_york_county.osmx I get the following database error:

osmx_error
bdon commented 4 years ago

Hi, thanks for giving this a shot on a new platform! The matches the description encountered here: https://github.com/Venemo/node-lmdb/issues/161 although we're not using that nodejs wrapper - seems to indicate a problem in WSL that causes LMDB to not work correctly.

Would you be able to investigate how to build the project for Windows directly?

ghost commented 4 years ago

Thanks for the quick answer! Unfortunately, I have never worked with CMake before and not really familiar with it. I tried building it directly in Windows, but there are some required libraries like Zlib, OpenSSL, Swig, ... that are missing on my system. I installed them and set some missing Path Variables but I can't get it too work nonetheless. I guess I need to get a little more familiar with CMake first.

bdon commented 4 years ago

I don't have a good sense on what package management Windows developers are using now - last time I did something similar I was using Chocolatey. Do any other windows users want to weigh in on the best way for this to work?