(Translated by https://www.hiragana.jp/)
instructions unclear · Issue #6 · jibsen/pngquant-winbuild · GitHub
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

instructions unclear #6

Open
MaximilianKohler opened this issue Jul 25, 2023 · 3 comments
Open

instructions unclear #6

MaximilianKohler opened this issue Jul 25, 2023 · 3 comments

Comments

@MaximilianKohler
Copy link

In a Windows 10 powershell window I entered your first line of code:

git submodule update --init --recursive
fatal: not a git repository (or any of the parent directories): .git

I have no idea what the next line means:
And then build with mingw-w64 (make).

Your instructions are referenced here https://squidfunk.github.io/mkdocs-material/setup/dependencies/image-processing/#windows_1 - I did the previous steps without issue.

@jibsen
Copy link
Owner

jibsen commented Jul 27, 2023

You are right, the instructions in the README are not exactly detailed. The submodule command requires you to first clone the repository, something like

git clone https://github.com/jibsen/pngquant-winbuild
cd pngquant-winbuild
git submodule update --init --recursive

This just downloads the source, you then have to build it using some kind of GCC compiler toolchain (for instance mingw-w64 or MSYS2), the make command may be called mingw32-make, gmake, or plain make.

The releases on this repository have precompiled Win64 binaries, and I believe the pngquant website has up-to-date binaries as well.

@MaximilianKohler
Copy link
Author

MaximilianKohler commented Jul 27, 2023

The releases on this repository have precompiled Win64 binaries, and I believe the pngquant website has up-to-date binaries as well.

Does that mean we can install the program on Windows with with the Win64 binary? Or it runs standalone with that binary and we somehow have to associate that binary with the program that needs to use it (MKDocs in this case)?

I checked the pngquant site https://pngquant.org/ and I see they have a windows binary under Command-line, but no instructions on how to install/use it. I downloaded theirs and checked the readme but it only has info on how to use it on its own; no info on how to use it with another program like MKDocs.

@jibsen
Copy link
Owner

jibsen commented Jul 28, 2023

Usually "installing" a command line tool consists of either placing it in a folder that is on the path, or modifying the path to include where the executable is placed. I realize this all appears somewhat archaic.

Another option is to install pngquant using a package manager (like Chocolatey or Scoop), which should take care of things like setting up the path.

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

No branches or pull requests

2 participants