OSMExpress icon indicating copy to clipboard operation
OSMExpress copied to clipboard

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

Open ghost opened this issue 5 years ago • 3 comments

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

ghost avatar Jul 08 '20 09:07 ghost

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?

bdon avatar Jul 08 '20 09:07 bdon

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.

mmstdur avatar Jul 08 '20 12:07 mmstdur

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?

bdon avatar Jul 10 '20 03:07 bdon