I am trying to cross compile from Manjaro to Windows, but to do so I need to install mingw-w64. How can I do this? It does not look like there is a package provided by Manjaro so I have been looking at the AUR repositories. I will be honest in saying I am not sure how to build packages from the AUR when dependencies are required.
What I have tried:
sudo pacman -Syu sudo pacman -Ss mingw
which yields no results. I then did this:
pamac search mingw-w64-gcc
mingw-w64-gcc-bin 10.1.0-1 AUR Cross GCC for the MinGW-w64 cross-compiler (pre-compiled)
But when I install:
pamac install mingw-w64-gcc-bin
Error: Failed to prepare transaction: target not found: mingw-w64-gcc-bin
I then tried from this post after installing yay:
yay -Ss mingw-w64 yay -S --needed mingw-w64-gcc mingw-w64-g++
which ends up with:
==> ERROR: PKGBUILD contains CRLF characters and cannot be sourced. error downloading sources: mingw-w64-crt-bin
Usually when I get this CRLF error I simply use dos2unix to convert the file, but this seems like the files downloaded have the error and I am unsure on how to change files being downloaded...
Any ideas on what steps I can take to install mingw-w64 on Manjaro?