tilemill-project / tilemill

TileMill is a modern map design studio
https://tilemill-project.github.io/tilemill/
BSD 3-Clause "New" or "Revised" License
3.1k stars 527 forks source link

In search of the OG windows exe version! #2755

Closed openSourcerer9000 closed 2 years ago

openSourcerer9000 commented 2 years ago

So I had been using this Windows standalone exe version and loving it. New computer, I need to install it again... and the installer is gone.

I had originally stumbled on it from here: https://ircama.github.io/osm-carto-tutorials/tilemill-osm-carto/

Install Tilemill


Install Tilemill; the latest working version at the moment should be http://tilemill.s3.amazonaws.com/dev/TileMill-v0.10.1-291-g31027ed-Setup.exe

Even if Tilemill has a [GitHub repository](https://github.com/tilemill-project/tilemill) including the most recent updates, with Windows it is suggested to proceed with the standard setup, which automatically installs and configures Mapnik/node-mapnik. A procedure to upgrade Tilemill and Mapnik over Windows without recompiling is not currently documented.

But this file is no longer available: http://tilemill.s3.amazonaws.com/dev/TileMill-v0.10.1-291-g31027ed-Setup.exe

Could someone who still has this file throw it up on github or somewhere so I can continue working with this fantastic piece of software? Thanks

alvesgu commented 2 years ago

@openSourcerer9000 I came here looking for this and ended up finding it in my Downloads folder backup. TileMill-v0.10.1-Setup.exe https://drive.google.com/file/d/1Mlw_2WS_tVRAdMgIR2nGoXQD4GKaKbEx/view?usp=sharing

csytsma commented 2 years ago

I uploaded this version to Releases https://github.com/tilemill-project/tilemill/releases, so it's easy to find in the future.

Have you guys tried the newer version, v1.1.0 using Node install? We've had very little feedback on how it installs or works on a Windows machine.

The newer version has some better Static Maps/Print options, if that's of any interest.

On Jun 1, 2022, at 12:42 PM, alvesgu @.***> wrote:

@openSourcerer9000 https://github.com/openSourcerer9000 I came here looking for this and ended up finding it in my Downloads folder backup. TileMill-v0.10.1-Setup.exe https://drive.google.com/file/d/1Mlw_2WS_tVRAdMgIR2nGoXQD4GKaKbEx/view?usp=sharing https://drive.google.com/file/d/1Mlw_2WS_tVRAdMgIR2nGoXQD4GKaKbEx/view?usp=sharing — Reply to this email directly, view it on GitHub https://github.com/tilemill-project/tilemill/issues/2755#issuecomment-1144059522, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA7ORGVFBLPZO6THLO25R3VM64I5ANCNFSM5VZUAWLA. You are receiving this because you are subscribed to this thread.

openSourcerer9000 commented 2 years ago

Hmm as in simply clone the repo, $ npm install, $ npm run ? I don't see that mentioned in the README.

Before I found tilemill I was trying to install mapnik and I had to use linux. Docker is also a nightmare in Windows. You need Docker Desktop, which breaks any VM's you have set up and is generally just spamware that pops up unannounced every few minutes.

openSourcerer9000 commented 2 years ago

Ah I just skipped over the OSX instructions lol

csytsma commented 2 years ago

Yeah, we don't have Windows machines, so aren't able to test it, but would love someone to test and provide feedback/improvements for installing on Windows with the bash scripts we wrote.

The bash scripts to do most of the installation and Postgres database setup for you. They were written for MacOS, so not sure how compatible on Windows 10's bash shell. https://tilemill-project.github.io/tilemill/docs/mac-install/ https://tilemill-project.github.io/tilemill/docs/mac-install/

On Jun 1, 2022, at 2:36 PM, Sean Micek @.***> wrote:

Ah I just skipped over the OSX instructions lol

— Reply to this email directly, view it on GitHub https://github.com/tilemill-project/tilemill/issues/2755#issuecomment-1144162279, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA7ORE62DLYMMKQTOPTIOLVM7JUJANCNFSM5VZUAWLA. You are receiving this because you commented.

openSourcerer9000 commented 2 years ago

Running from VSCode, which I have connected to my Github account already:

C:\tilemill>nvm use 8.17.0 
Now using node v8.17.0 (64-bit)

C:\tilemill>npm i
npm WARN tilemill@1.1.0 No license field.

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t git://github.com/tilemill-project/tilelive.git

I DL'd the source code from the latest release and then opened the folder to attempt the install (Windows 10).

openSourcerer9000 commented 2 years ago

Why not just update the .exe? It takes the guesswork out of it

csytsma commented 2 years ago

I have no idea how to update a windows .exe, but would love your help to do it for the project?

prusswan commented 2 years ago

I uploaded this version to Releases https://github.com/tilemill-project/tilemill/releases, so it's easy to find in the future. Have you guys tried the newer version, v1.1.0 using Node install? We've had very little feedback on how it installs or works on a Windows machine. The newer version has some better Static Maps/Print options, if that's of any interest.

Most of the problem has to do with building node-mapnik on Windows. mathisloge managed to do it with mapnik/node-mapnik#976 using vcpkg + cmake, so I am trying to build his fork and see how to proceed from there. One problem is that he seems to be building against latest mapnik so not sure how Tilemill will work, the other one is that it took hours to build mapnik on Windows (I am starting to see why Windows support was dropped)

csytsma commented 2 years ago

If we need to upgrade the Tilemill project to the latest Mapnik, we might be able to do that.

On Jun 25, 2022, at 12:17 PM, prusswan @.***> wrote:

I uploaded this version to Releases https://github.com/tilemill-project/tilemill/releases https://github.com/tilemill-project/tilemill/releases, so it's easy to find in the future. Have you guys tried the newer version, v1.1.0 using Node install? We've had very little feedback on how it installs or works on a Windows machine. The newer version has some better Static Maps/Print options, if that's of any interest.

Most of the problem has to do with building node-mapnik on Windows. mathisloge managed to do it with mapnik/node-mapnik#976 https://github.com/mapnik/node-mapnik/pull/976 using vcpkg + cmake, so I am trying to build his fork and see how to proceed from there. One problem is that he seems to be building against latest mapnik so not sure how Tilemill will work, the other one is that it took hours to build mapnik on Windows (I am starting to see why Windows support was dropped)

— Reply to this email directly, view it on GitHub https://github.com/tilemill-project/tilemill/issues/2755#issuecomment-1166347100, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA7ORF7N7FVHXLCU5KBT7DVQ5LMJANCNFSM5VZUAWLA. You are receiving this because you commented.

mathisloge commented 1 year ago

Most of the problem has to do with building node-mapnik on Windows. mathisloge managed to do it with mapnik/node-mapnik#976 using vcpkg + cmake, so I am trying to build his fork and see how to proceed from there. One problem is that he seems to be building against latest mapnik so not sure how Tilemill will work, the other one is that it took hours to build mapnik on Windows (I am starting to see why Windows support was dropped)

For me a full rebuild of mapnik are "just" 10 minutes on windows ^^. However I do understand that the build times on most machines are much longer. As an improvement I could change the CI@mapnik to upload the binaries. So each commit in the master branch would have the binaries.

One problem is that he seems to be building against latest mapnik so not sure how Tilemill will work

The "easy" cross platform build is only available with latest mapnik as it has now the cmake build. SCons just hadn't worked for me. furthermore a lot of dependency upgrades are done in mapnik and node-mapnik. That might be important for tilemill, too, as the dependencies itself are bringing a lot of breaking changes with it.

prusswan commented 1 year ago

@mathisloge could you update your branch such that npm install https://github.com/mathisloge/node-mapnik.git will just work? I believe there are some manual steps used to create https://www.npmjs.com/package/@mathisloge/mapnik (for example, while I was able to build your node-mapnik using VS2019 and latest vcpkg/Python, I did not understand how to force it to build/bundle with napi-v3). If that happens, you would have completed 90% of the work to get latest Tilemill to work on Windows. (cheers!)

mathisloge commented 1 year ago

@prusswan normally a npm install in node-mapnik should be enough. The problem with npm install https://github.com/mathisloge/node-mapnik.git is that it won't clone the submodules of the git repo. Furthermore the vcpkg git repo have to be manually cloned into the node-mapnik root.

I'm still not sure how to tackle these things in the best possible way.

As my life is currently a bit short on time for "free time projects" I think I can only work on this at the earliest in august... Sorry!

prusswan commented 1 year ago

@mathisloge thanks for the explanation. Also, I found a way to alias your package to mapnik so everything is good to go (other than the bug with mapnik.Projection causing kosmtik/kosmtik#336):

npm i mapnik@npm:@mathisloge/mapnik

https://stackoverflow.com/questions/59876585/npm-package-json-aliases-like-webpack

csytsma commented 1 year ago

Neither of us have a Windows machine, nor have experience creating windows executables. How about you update the .exe?

On Jun 1, 2022, at 2:50 PM, Sean Micek @.***> wrote:

Why not just update the .exe? It takes the guesswork out of it

— Reply to this email directly, view it on GitHub https://github.com/tilemill-project/tilemill/issues/2755#issuecomment-1144175378, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA7ORDP2G6VBLM5LJFZVSLVM7LLZANCNFSM5VZUAWLA. You are receiving this because you commented.

prusswan commented 1 year ago

@csytsma This will require the forked version of node-mapnik by mathisloge which has yet to be merged into the main node-map nik. Update of node version (to 12 at least) will be needed as well. If you or other maintainers are comfortable with this, you can prepare the node12 branch (check mine to see the stuff I had to upgrade) and get it to work with the forked node-mapnik in your environments. The packaging can come later.