I used the instructions step by step:
Get MSYS2
Follow the updating packages to update.That is you probably need to do:
pacman -Sy; pacman --needed -S bash pacman pacman-mirrors msys2-runtime
Restart the MSYS2 shell
pacman -Su
pacman -S base-devel git
pacman -S mingw-w64-x86_64-toolchain
cd ~; git clone https://github.com/Alexpux/MINGW-packages.git
cd ~/MINGW-packages/mingw-w64-kicad-git
makepkg-mingw -sLi
I found that several things in the download version of 4.0.0 Pre-release are not working.
So I tried to make a new build. Because I don’t really understood what’s going on building it, I didn’t understand how it works.
In the downloaded folder “mingw-w64-kicad-git” one will find the file “PKGBUILD” which contains all the base instruction to build.
I had to remove:
The source definition containing “git+https://github.com/blairbonnett-mirrors/kicad-doc.git”
1 ‘SKIP’ in the “md5sums” definition
The whole section containing the build of the docs ("${MINGW_PREFIX}/bin/cmake.exe -G “MSYS Makefiles” -DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} …/${_realname}-docs")
The package command (“make DESTDIR=${pkgdir} install”)
Then the build was working.
By the way:
What is “install” meaning ?
It does not produce any installation package nor even a working application. All the dll’s are missing. The executables are working but missing the dll’s.
Sure, one can copy the whole result over an existing installation and replace all the existing executables - it is working - but that’s not an installation.