Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In search of the OG windows exe version! #2755

Closed
openSourcerer9000 opened this issue May 12, 2022 · 16 comments
Closed

In search of the OG windows exe version! #2755

openSourcerer9000 opened this issue May 12, 2022 · 16 comments
Labels
infrastructure Infrastructure Enhancement

Comments

@openSourcerer9000
Copy link

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

@openSourcerer9000 openSourcerer9000 added the infrastructure Infrastructure Enhancement label May 12, 2022
@alvesgu
Copy link

alvesgu commented Jun 1, 2022

@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
Copy link
Member

csytsma commented Jun 1, 2022 via email

@openSourcerer9000
Copy link
Author

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
Copy link
Author

Ah I just skipped over the OSX instructions lol

@csytsma
Copy link
Member

csytsma commented Jun 1, 2022 via email

@openSourcerer9000
Copy link
Author

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 [email protected] 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
Copy link
Author

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

@csytsma
Copy link
Member

csytsma commented Jun 14, 2022

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

@prusswan
Copy link

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
Copy link
Member

csytsma commented Jun 28, 2022 via email

@csytsma csytsma closed this as completed Jul 1, 2022
@mathisloge
Copy link

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
Copy link

prusswan commented Jul 6, 2022

@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
Copy link

@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
Copy link

prusswan commented Jul 7, 2022

@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
Copy link
Member

csytsma commented Oct 11, 2022 via email

@prusswan
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Infrastructure Enhancement
Projects
None yet
Development

No branches or pull requests

5 participants