To explain a bit better how this works, here is what each file from that link mean: Since pacman allows you to create new roots, what I did is to create an installer based on pacman. As an example installing gedit on Windows it is just a matter of installing msys2, update it and run “pacman -S mingw-w64-x86_64-gedit”Īs you see installing and or building an application is not that difficult anymore, but as like for the case of gedit you might want to create an installer which will make easy to distribute your application.If the package reach upstream you will not need to build it anymore in order to use it but you can simply install it by doing: pacman -S mingw-w64-x86_64-package-name.If that package your are trying to build is not already shipped by msys2 or if it is too old and you want to update it you can fork the MINGW-packages repository and add it to it and make a pull request.Install this package with pacman -U file.This will build your project and generate a package. Once you have the PKGBUILD file ready build it by running “makepkg-mingw -sL”.Or you can find more information on how to create this file on the Arch Linux wiki. Create a PKGBUILD file as you would do for Arch Linux for the package you would like to build for windows.To do so: pacman -S mingw-w64-x86_64-toolchain Install the toolchain, in my case I installed the x86_64 but you can install i686 or both.This will probably update msys2 so you will have to relaunch again the shell. Open the msys2_shell.bat that you can find in c:\msys64.Highlight that this is msys2, which compared with the previous msys system this one is fast and well maintained. Ensure to install it on a short directory path, i.e the default c:\msys64 should be fine. In this post I will explain the steps you have to do to easily build your application on Windows. For the last few years I have been working on getting gedit builds for Windows and it has never been as easy as now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |