tilemaker icon indicating copy to clipboard operation
tilemaker copied to clipboard

Windows install instructions

Open cvpalms opened this issue 1 year ago • 8 comments

Just downloaded the repo and am trying to install on Windows. I looked in the install.md file but didn't see anything for Windows. Should I be looking in another location for those instructions?

Looking forward to trying this tool out.

cvpalms avatar Feb 24 '24 21:02 cvpalms

You can download the last release here.

t1geomatika avatar Feb 27 '24 07:02 t1geomatika

Unfortunately I think that release is broken on Windows. There have been fixes since, and I'll put out a v3.0.1 when I get a chance.

I don't have any Windows experience, but I think this should work (from the CI). It installs the dependencies, then creates a build directory and uses CMake to build it there.

vcpkg install --triplet=x64-windows-static-md lua shapelib zlib protobuf[zlib] sqlite3 boost-program-options boost-filesystem boost-geometry boost-system boost-asio boost-interprocess boost-iostreams boost-sort rapidjson
mkdir build        
cd build
cmake -DTILEMAKER_BUILD_STATIC=ON -DVCPKG_TARGET_TRIPLET="x64-windows-static-md" -DCMAKE_TOOLCHAIN_FILE="c:\vcpkg\scripts\buildsystems\vcpkg.cmake"  ..
cmake --build . --config RelWithDebInfo

systemed avatar Feb 27 '24 08:02 systemed

Hello, thank you for the info. Sorry it took me a while to respond but I finally got back around to testing the 3.0 version on WIndows 11. Although I got the exe to run with the monaco.pbf file, it does not create an output. I am more of a QGIS user with GIS Analyst background so I'm a novice at GitHub and tinkering with config files. I made some assumptions on how the files need to be arranged and renamed the json & lua to get it to work. Below is some detailed steps I took to get everything in one simplified folder. Sorry if I got something wrong or made it overly complicated:

Step 1: Create a test folder on your machine. For this example we will use F:\GIS\TileMakerTest

Step 2: Download TileMaker Release 3.0 from Github (https://github.com/systemed/tilemaker/releases/tag/v3.0.0). For windows this is the tilemaker-windows.zip file.

Step 3: In the zip file navigate to the build\RelWithDebInfo folder. Then copy the tilemaker.exe and two other .pdb files to your test folder from Step 1

Step 4: In the zip file navigate to the resources folder. This folder contains pre-made config.json and process.lua files for 4 different styles of output. For this test we will use the openmaptiles variation. Copy the files config-openmaptiles.json and process-openmaptiles.lua to the test folder you created in Step 1. Then rename them to config.json and process.json respectively.

Step 5: Download an OSM .pbf file from geofabrik. For this test we'll use the country of Monaco: https://download.geofabrik.de/europe/monaco.html. Save the downloaded .pbf to your test folder. The file should be named monaco-latest.osm.pbf

Step 6: Open Windows Command Line from the Windows Start Menu. Change the directory to your test folder by typing:
cd F:\GIS\TileMakerTest.

Step 7: Run the tilemaker.exe from Windows command line as follows: tilemaker.exe --input monaco-latest.osm.pbf --output TestTileMakerOutput.mbtiles

###Step 7 is where things didn't work. The tool runs for about 5 seconds and I get the progress in the provided screenshot. Then the tool finishes as I get the command prompt back, but there is not output file, nor did the progress text provide an error message.

---I assume this would be Step 8: Check your test folder, and you should have a new .mbtiles file. Add this file to your QGIS project as a layer to visualize it.

image

And here's what my test folder looks like:
image

cvpalms avatar May 25 '24 22:05 cvpalms

I tried using the windows release as well, and confirm that the tiles did not get generated.

pbelbin avatar May 28 '24 13:05 pbelbin

Just to repeat the comment from above, the Windows 3.0 release is known not to work at present - you will need to build from source for Windows. I will do a new version when I have time but right now I'm incredibly pushed for time I'm afraid.

systemed avatar May 28 '24 14:05 systemed

any update on releasing a working vresion of 3 on windows?

mtabdar avatar Nov 04 '24 14:11 mtabdar

@mtabdar Does WSL2 not work for you? If you're stuck, https://www.openstreetmap.org/user/SomeoneElse/diary/400833 may help (but there's shedloads of information elsewhere).

SomeoneElseOSM avatar Nov 04 '24 14:11 SomeoneElseOSM

@SomeoneElseOSM thanks for replying. no i didn't try WSL2 and it is not a way i like because i am working on an offline pc and installing WSL seems too much hassle! i continue using an older version till a working version be released.

mtabdar avatar Nov 06 '24 04:11 mtabdar