-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[Package Request]: mingw-w64 #122962
Comments
This package should already be available under PackageId Can you give |
Checks with
Originally posted by @Dragon1573 in #123032 (comment) |
Right, but once you install msys2 -- you need to open their special msys2 console and then do a So like I said, you still need to use a second package manager and do a bunch of manual steps to fully install the full mingw toolchain to be usable from the regular console. I would like to see a single package that I can just install and then be able to call |
I see several vendors release their toolchains as compressed ZIP archives. Not only GCC, MSVC (mainly |
If a vendor provides MSI or EXE installation wizard for GCC, the wizard can run unattendedly and will automatically configure everything (especially envrionment variables) for us, this issue will be easier to solve. |
That's not really the same though... like it's just another cmd / powershell prompt with different settings. MSYS2 is requiring you to run bash, and even then, it's still not configured, you have to open up their special bash prompt and then run pacman to install the gcc packages there. |
skeeto/w64devkit may be better than MSYS2 in this case? Users only needs to decompress the zip file and launch
BUT you still have to launch another shell for using GCC toolchains. |
If it's just unzipping some exes, why do you need another command prompt? (I'm assuming it's some bash version and not the regular windows one?) |
Yes, it is. This package provides a As I said, |
In this case, use Scoop or Chocolatey may be better. As I know, manifests in Scoop are written in JSON. They all support adding "pre-install" and "post-install" script for setting environment variables or registry. They may be able to install what you want. |
I agree with this, installing a C or C++ compiler is still a nightmare. All my plugins for Neovim need a C++ compiler to work properly. Anything else, Python, Nodejs, Ruby, has worked flawlessly like it would on linux. |
For using Neovim/LazyVim plugins, I used clang as c++ compiler ( |
I'm also hoping for this. Looking at the official MinGW website and the Scoop package. It seems that the MinGW-W64-builds as listed on the official website would be ideal. These are available as compressed archives under https://github.com/niXman/mingw-builds-binaries/releases and provide pre-compiled binaries for gcc and g++, although they also provide quite a few other binaries too. Usually portable winget packages provide a few binaries, but this download provides a total of 59 which may not be quite what winget is hoping for. |
Warning
|
Thanks for the reply, yeah I'm aware of that actually, but my point is that this particular compressed archive contains a very large number of executables which would need to be registered in the winget package and would possibly be considered polution of the path. Indeed as you mentioned, the format of the archive is another problem. Cheers |
As most executables are located in
WinGet by default uses the Windows Shell API, which only supports zip, for decompressing archive (see microsoft/winget-cli#2899). Other archive types such as .rar and .7z are not directly supported at the moment. Right now you can use |
Thank you so much! |
How can we help?
I would like someone else to build the manifest.
Please read and ensure the following
Please provide the following information
Download Page Url: https://www.mingw-w64.org/downloads/, https://www.msys2.org/
Package Name: mingw-w64
Description: mingw gcc compilers for windows
Installer URL: https://github.com/msys2/msys2-installer/releases/download/2023-07-18/msys2-x86_64-20230718.exe
Right now installing mingw on Windows is a bear.
No, this does not meet the above requirements, but some cross collaboration between the MSYS2 and Winget teams would be really helpful.
Every other platform has a standard package manager that can install gcc. IMO, Windows really needs this.
Currently, we have to install a completely different package manager to get it installed... it's a lot of hoops to jump through just to compile some code.
The text was updated successfully, but these errors were encountered: